@Test public void checkBuildModeEnum() { for (InstantRunBuildMode mode : InstantRunBuildMode.values()) { assertEquals(mode.toString(), InstantRunAnalyticsHelper.convert(mode).toString()); } }
@VisibleForTesting @NonNull static AndroidStudioStats.InstantRunStatus.BuildMode convert( @NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return AndroidStudioStats.InstantRunStatus.BuildMode.HOT_WARM; case COLD: return AndroidStudioStats.InstantRunStatus.BuildMode.COLD; case FULL: return AndroidStudioStats.InstantRunStatus.BuildMode.FULL; default: return AndroidStudioStats.InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } }
InstantRunAnalyticsHelper { @VisibleForTesting @NonNull static AndroidStudioStats.InstantRunStatus.BuildMode convert( @NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return AndroidStudioStats.InstantRunStatus.BuildMode.HOT_WARM; case COLD: return AndroidStudioStats.InstantRunStatus.BuildMode.COLD; case FULL: return AndroidStudioStats.InstantRunStatus.BuildMode.FULL; default: return AndroidStudioStats.InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } } }
InstantRunAnalyticsHelper { @VisibleForTesting @NonNull static AndroidStudioStats.InstantRunStatus.BuildMode convert( @NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return AndroidStudioStats.InstantRunStatus.BuildMode.HOT_WARM; case COLD: return AndroidStudioStats.InstantRunStatus.BuildMode.COLD; case FULL: return AndroidStudioStats.InstantRunStatus.BuildMode.FULL; default: return AndroidStudioStats.InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } } private  InstantRunAnalyticsHelper(); }
InstantRunAnalyticsHelper { @VisibleForTesting @NonNull static AndroidStudioStats.InstantRunStatus.BuildMode convert( @NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return AndroidStudioStats.InstantRunStatus.BuildMode.HOT_WARM; case COLD: return AndroidStudioStats.InstantRunStatus.BuildMode.COLD; case FULL: return AndroidStudioStats.InstantRunStatus.BuildMode.FULL; default: return AndroidStudioStats.InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } } private  InstantRunAnalyticsHelper(); @NonNull static AndroidStudioStats.InstantRunStatus generateAnalyticsProto(
            @NonNull InstantRunBuildContext instantRunBuildContext); }
InstantRunAnalyticsHelper { @VisibleForTesting @NonNull static AndroidStudioStats.InstantRunStatus.BuildMode convert( @NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return AndroidStudioStats.InstantRunStatus.BuildMode.HOT_WARM; case COLD: return AndroidStudioStats.InstantRunStatus.BuildMode.COLD; case FULL: return AndroidStudioStats.InstantRunStatus.BuildMode.FULL; default: return AndroidStudioStats.InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } } private  InstantRunAnalyticsHelper(); @NonNull static AndroidStudioStats.InstantRunStatus generateAnalyticsProto(
            @NonNull InstantRunBuildContext instantRunBuildContext);  }