Home
last modified time | relevance | path

Searched refs:CommonUtils (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/TV/common/src/com/android/tv/common/feature/
DTestableFeature.java22 import com.android.tv.common.util.CommonUtils;
59 if (!CommonUtils.isRunningInTest()) { in enableForTest()
68 if (!CommonUtils.isRunningInTest()) { in disableForTests()
80 if (!CommonUtils.isRunningInTest()) { in resetForTests()
89 if (CommonUtils.isRunningInTest() && mTestValue != null) { in isEnabled()
98 if (CommonUtils.isRunningInTest()) { in toString()
DFeatureUtils.java20 import com.android.tv.common.util.CommonUtils;
126 return CommonUtils.isRoboTest();
/packages/apps/Settings/tests/componenttests/src/com/android/settings/notification/
DAppNotificationComponentTest.java37 import com.android.settings.testutils.CommonUtils;
78 CommonUtils.getResId("recycler_view")); in test_special_app_could_not_disable_notification()
83 CommonUtils.getResId("recycler_view"))); in test_special_app_could_not_disable_notification()
89 () -> recyclerView.findViewById(CommonUtils.getResId("recycler_view")) in test_special_app_could_not_disable_notification()
93 CommonUtils.getResId("main_switch_bar")); in test_special_app_could_not_disable_notification()
112 CommonUtils.getResId("switchWidget")); in test_special_app_could_not_disable_notification()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/util/
DCommonUtilsTest.java40 assertThat(CommonUtils.deleteDirOrFile(file)).isTrue(); in deleteDirOrFile_file()
49 assertThat(CommonUtils.deleteDirOrFile(dir)).isTrue(); in deleteDirOrFile_Dir()
61 assertThat(CommonUtils.deleteDirOrFile(dir)).isFalse(); in deleteDirOrFile_unreadableDir()
75 assertThat(CommonUtils.deleteDirOrFile(dir)).isFalse(); in deleteDirOrFile_unreadableSubDir()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/wifi/
DWifiSettings2ActivityTest.java42 import com.android.settings.testutils.CommonUtils;
104 assertThat(CommonUtils.connectToURL(url)).isTrue(); in test_connect_to_wifi()
110 assertThat(CommonUtils.connectToURL(url)).isFalse(); in test_connect_to_wifi()
124 assertThat(CommonUtils.connectToURL(url)).isTrue(); in test_connect_to_wifi()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerComponentTest.java19 import static com.android.settings.testutils.CommonUtils.set_wifi_enabled;
44 import com.android.settings.testutils.CommonUtils;
141 () -> CommonUtils.connectToURL(url))).isTrue(); in test_disable_mobile_network()
153 () -> CommonUtils.connectToURL(url))).isFalse(); in test_disable_mobile_network()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerStorageCleanUpService.java30 import com.android.tv.common.util.CommonUtils;
117 if (!CommonUtils.isInBundledPackageSet(packageName) in getRecordedProgramsDirs()
159 if (!CommonUtils.deleteDirOrFile(recordingDir)) { in doInBackground()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrStorageStatusManager.java32 import com.android.tv.common.util.CommonUtils;
117 if (CommonUtils.isBundledInput(info.getId()) && dvrManager != null) { in onPostExecute()
155 if (!CommonUtils.isInBundledPackageSet(packageName) in getDeleteOps()
DDvrManager.java44 import com.android.tv.common.util.CommonUtils;
852 if (CommonUtils.deleteDirOrFile(recordedProgramPath)) { in removeRecordedData()
871 return CommonUtils.isInBundledPackageSet(mRecordedProgram.getPackageName()); in isFromBundledInput()
/packages/apps/TV/common/src/com/android/tv/common/
DBaseApplication.java29 import com.android.tv.common.util.CommonUtils;
87 if (!CommonUtils.isRunningInTest()) { in onCreate()
DSoftPreconditions.java24 import com.android.tv.common.util.CommonUtils;
195 if (BuildConfig.ENG && !CommonUtils.isRunningInTest()) { in warn()
DCommonPreferences.java32 import com.android.tv.common.util.CommonUtils;
147 return CommonUtils.isPackagedWithLiveChannels(context); in useContentProvider()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCommonUtils.java35 public final class CommonUtils { class
59 private CommonUtils() {} in CommonUtils() method in CommonUtils
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java41 import com.android.tv.common.util.CommonUtils;
168 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_trustedCallingPackage()
191 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_nonTrustedCallingPackage()
213 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_nullCallingPackage()
345 CommonUtils.createSetupIntent(new Intent(), inputId)); in createSetupActivityFor()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/display/darkmode/
DDarkThemeScheduleComponentTest.java38 import com.android.settings.testutils.CommonUtils;
88 CommonUtils.reopenScreen(); in test_step_for_custom_time()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DScheduledProgramReaperTest.java27 import com.android.tv.common.util.CommonUtils;
122 + CommonUtils.toIsoDateTimeString(mFakeClock.currentTimeMillis()), in testRun_oneRecordingsExpired()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DCommonUtils.java43 public class CommonUtils { class
44 private static final String TAG = CommonUtils.class.getSimpleName();
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java39 import com.android.tv.common.util.CommonUtils;
415 return CommonUtils.createSetupIntent(overlaySetupIntent, inputId); in createSetupIntent()
419 return CommonUtils.createSetupIntent(input); in createSetupIntent()
DTvInputManagerHelper.java42 import com.android.tv.common.util.CommonUtils;
434 && CommonUtils.isInBundledPackageSet( in isBundledInput()
639 if (CommonUtils.isRoboTest()) return false; in isBlocked()
640 if (CommonUtils.isRunningInTest()) { in isBlocked()
/packages/apps/TV/src/com/android/tv/search/
DLocalSearchProvider.java34 import com.android.tv.common.util.CommonUtils;
107 SoftPreconditions.checkState(CommonUtils.isRunningInTest()); in setSearchInterface()
/packages/apps/TV/src/com/android/tv/menu/
DMenu.java34 import com.android.tv.common.util.CommonUtils;
327 if (!CommonUtils.isRunningInTest()) { in disableAnimationForTest()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrDetailsFragment.java42 import com.android.tv.common.util.CommonUtils;
200 if (CommonUtils.isInBundledPackageSet(recordedProgram.getPackageName()) in startPlayback()
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/
DUtils.java30 import com.android.tv.common.util.CommonUtils;
/packages/apps/TV/src/com/android/tv/setup/
DSystemSetupActivity.java34 import com.android.tv.common.util.CommonUtils;
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java28 import com.android.tv.common.util.CommonUtils;
544 CommonUtils.toIsoDateTimeString(earliestChunk.getCreatedTimeMs()))); in maybeEvictChunk()

12