Home
last modified time | relevance | path

Searched refs:CommonUtils (Results 1 – 25 of 39) 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/Test/connectivity/sl4n/facades/test/
Dtest_facade.cpp67 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_bool_true_return_wrapper()
84 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_bool_false_return_wrapper()
101 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_null_return_wrapper()
118 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_string_empty_return_wrapper()
137 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_string_max_return_wrapper()
165 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_specific_param_naming_wrapper()
/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/Test/connectivity/sl4n/facades/bluetooth/
Dbt_binder_facade.cpp209 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_get_local_name_wrapper()
230 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_init_interface_wapper()
247 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_set_local_name_wrapper()
274 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_get_local_address_wrapper()
295 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_enable_wrapper()
312 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_register_ble_wrapper()
330 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_set_adv_settings_wrapper()
/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/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java40 import com.android.tv.common.util.CommonUtils;
169 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_trustedCallingPackage()
193 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_nonTrustedCallingPackage()
325 CommonUtils.createSetupIntent(new Intent(), inputId)) in createSetupActivityFor()
/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/src/com/android/tv/setup/
DSystemSetupActivity.java34 import com.android.tv.common.util.CommonUtils;
100 Intent intent = CommonUtils.createSetupIntent(input); in executeAction()
/packages/apps/Test/connectivity/sl4n/facades/wifi/
Dwifi_facade.cpp159 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_init_wrapper()
176 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_get_supported_feature_set_wrapper()
/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/TV/src/com/android/tv/onboarding/
DOnboardingActivity.java36 import com.android.tv.common.util.CommonUtils;
196 Intent intent = CommonUtils.createSetupIntent(input); in executeAction()
/packages/apps/TV/src/com/android/tv/util/
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/Test/connectivity/sl4n/utils/
Dcommon_utils.h22 class CommonUtils {
Dcommon_utils.cpp22 bool CommonUtils::IsParamLengthMatching(rapidjson::Document& doc, in IsParamLengthMatching()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java48 import com.android.tv.common.util.CommonUtils;
233 if (CommonUtils.isRunningInTest()) { in fetchImmediatelyIfNeeded()
323 if (!CommonUtils.isRunningInTest() && checkFetchPrerequisite()) { in executeFetchTaskIfPossible()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DBufferManager.java28 import com.android.tv.common.util.CommonUtils;
548 CommonUtils.toIsoDateTimeString(earliestChunk.getCreatedTimeMs()))); in maybeEvictChunk()

12