Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 262) sorted by relevance

1234567891011

/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger_test.cc106 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_)); in SetUp()
107 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_last_)); in SetUp()
108 ASSERT_FALSE(std::filesystem::exists(temp_snooz_log_)); in SetUp()
109 ASSERT_FALSE(std::filesystem::exists(temp_snooz_log_last_)); in SetUp()
119 if (std::filesystem::exists(temp_snoop_log_)) { in DeleteSnoopLogFiles()
122 if (std::filesystem::exists(temp_snoop_log_last_)) { in DeleteSnoopLogFiles()
125 if (std::filesystem::exists(temp_snooz_log_)) { in DeleteSnoopLogFiles()
128 if (std::filesystem::exists(temp_snooz_log_last_)) { in DeleteSnoopLogFiles()
149 ASSERT_TRUE(std::filesystem::exists(temp_snoop_log_)); in TEST_F()
150 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_last_)); in TEST_F()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DResultStoreTest.java96 assertThat(mTestInterimResultDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder()
97 assertThat(mTestMetricsReportDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder()
98 assertThat(mTestErrorResultDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder()
99 assertThat(mTestPublisherDataDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder()
134 assertThat(staleTestFile1.exists()).isFalse(); in testFlushToDisk_shouldRemoveStaleData()
135 assertThat(staleTestFile2.exists()).isFalse(); in testFlushToDisk_shouldRemoveStaleData()
136 assertThat(activeTestFile3.exists()).isTrue(); in testFlushToDisk_shouldRemoveStaleData()
180 assertThat(fileFoo.exists()).isFalse(); in testPutInterimResultAndFlushToDisk_shouldWriteDirtyResultsOnly()
252 assertThat(new File(mTestMetricsReportDir, testFinalFileName).exists()).isFalse(); in testGetMetricsReports_whenDeleteFlagTrue_shouldDeleteData()
355 assertThat(new File(mTestMetricsReportDir, metricsConfigName).exists()).isTrue(); in testPutMetricsReportAndFlushToDisk_shouldWriteToDisk()
[all …]
DMetricsConfigStoreTest.java54 assertThat(mTestMetricsConfigDir.exists()).isTrue(); in setUp()
84 assertThat(new File(mTestMetricsConfigDir, NAME_BAR).exists()).isFalse(); in testAddMetricsConfig_whenInvalidVersion_shouldNotWriteToDisk()
94 assertThat(new File(mTestMetricsConfigDir, NAME_BAR).exists()).isFalse(); in testRemoveMetricsConfig_shouldDeleteConfigFromDisk()
125 assertThat(file.exists()).isTrue(); in writeConfigToDisk()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java107 findSearchHistoryView().exists()); in assertSearchHistoryVisible()
111 findSearchHistoryView().exists()); in assertSearchHistoryVisible()
119 assertTrue(textField.exists()); in assertInputEquals()
127 assertTrue(textField.exists()); in assertInputFocused()
131 public void assertInputExists(boolean exists) in assertInputExists() argument
133 assertEquals(exists, findSearchViewTextField().exists()); in assertInputExists()
DDirectoryListBot.java88 if (!findDocument(label).exists()) { in assertDocumentsPresent()
101 if (findDocument(label).exists()) { in assertDocumentsAbsent()
111 …public void assertDocumentsCountOnList(boolean exists, int count) throws UiObjectNotFoundException… in assertDocumentsCountOnList() argument
113 assertEquals(exists, docsList.exists()); in assertDocumentsCountOnList()
114 if(docsList.exists()) { in assertDocumentsCountOnList()
128 assertTrue(messageTextView.exists()); in assertHasMessage()
130 assertFalse(messageTextView.exists()); in assertHasMessage()
151 assertTrue(messageTextView.exists()); in assertPlaceholderMessageText()
288 if (!findDocument(label).exists()) { in hasDocuments()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DDirectoryTests.java31 assertTrue(f.exists()); in testStatsActiveMetricDirectoryExists()
38 assertTrue(f.exists()); in testStatsDataDirectoryExists()
45 assertTrue(f.exists()); in testStatsMetadataDirectoryExists()
52 assertTrue(f.exists()); in testStatsServiceDirectoryExists()
59 assertTrue(f.exists()); in testTrainInfoDirectoryExists()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java127 assertFalse(exists(a)); in testPruneThumbnails()
128 assertFalse(exists(b)); in testPruneThumbnails()
129 assertTrue(exists(c)); in testPruneThumbnails()
130 assertFalse(exists(d)); in testPruneThumbnails()
141 assertFalse(exists(a)); in testPruneThumbnails()
142 assertFalse(exists(b)); in testPruneThumbnails()
143 assertFalse(exists(c)); in testPruneThumbnails()
144 assertFalse(exists(d)); in testPruneThumbnails()
301 assertFalse(exists(file)); in delete()
308 assertTrue(exists(file)); in touch()
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dstorage_module_test.cc112 ASSERT_FALSE(std::filesystem::exists(temp_config_)); in SetUp()
113 ASSERT_FALSE(std::filesystem::exists(temp_backup_config_)); in SetUp()
121 if (std::filesystem::exists(temp_config_)) { in DeleteConfigFiles()
124 if (std::filesystem::exists(temp_backup_config_)) { in DeleteConfigFiles()
144 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
228 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
283 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/util/
DCommonUtilsTest.java41 assertThat(file.exists()).isFalse(); in deleteDirOrFile_file()
50 assertThat(dir.exists()).isFalse(); in deleteDirOrFile_Dir()
62 assertThat(dir.exists()).isTrue(); in deleteDirOrFile_unreadableDir()
76 assertThat(dir.exists()).isTrue(); in deleteDirOrFile_unreadableSubDir()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java241 assertThat(getLocationCacheFile().exists()).isFalse(); in testDoesNotLoadLocationWhenNoFileExists()
395 assertFalse(getLocationCacheFile().exists()); in testDoesNotStoreNullLocation()
413 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
419 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
434 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
440 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
477 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
485 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java430 if (!nomediaFile.getParentFile().exists()) { in assertVisibleFolder()
436 if (!nomediaFile.exists()) { in assertVisibleFolder()
439 .that(nomediaFile.exists()) in assertVisibleFolder()
484 if (!nomediaDir.exists()) { in testVisibleRootWithNoMediaDirectory()
487 if (!file.exists()) { in testVisibleRootWithNoMediaDirectory()
489 assertTrue(file.exists()); in testVisibleRootWithNoMediaDirectory()
998 assertThat(audio.exists()).isTrue(); in testScan_deleteStaleRowWithExpiredPendingFile()
1012 assertThat(audio.exists()).isFalse(); in testScan_deleteStaleRowWithExpiredPendingFile()
1040 assertThat(audio.exists()).isTrue(); in testScan_keepStaleRowWithNonExpiredPendingFile()
1054 assertThat(audio.exists()).isFalse(); in testScan_keepStaleRowWithNonExpiredPendingFile()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/
DIoUtilsTest.java135 assertThat(stale1.exists()).isFalse(); in testDeleteStaleData()
136 assertThat(stale2.exists()).isFalse(); in testDeleteStaleData()
137 assertThat(active.exists()).isTrue(); in testDeleteStaleData()
151 .that(file.exists()).isTrue(); in writeBundleToFile()
/packages/modules/Bluetooth/android/pandora/test/
Drunner.py23 from genericpath import exists
50 if not pandora_apk_path.exists():
82 if not PANDORA_CF_APK.exists() or args.build:
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java62 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
68 args.putBoolean(ARG_EXISTS, exists); in show()
88 boolean exists = args.getBoolean(ARG_EXISTS); in onCreateDialog()
90 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
/packages/modules/Bluetooth/system/tools/scripts/
Ddump_metrics_ascii.py31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
43 if not os.path.exists(proto_path):
47 if not os.path.exists(output_dir):
/packages/services/Telephony/src/com/android/phone/
DCallTime.java200 if (file.exists() == false) { in startTrace()
208 if (file.exists() == true) { in startTrace()
213 if (file.exists() == true) { in startTrace()
/packages/modules/Bluetooth/android/pandora/
Dgen_cov.py123 if temp_path.exists():
221 if c.exists():
250 if temp_path.exists():
341 if (not trace_path.exists() or not trace_path.is_dir()):
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DAtomicFileHelper.java37 public static boolean exists(AtomicFile file) { in exists() method in AtomicFileHelper
38 return file.exists(); in exists()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java102 if (!directory.exists()) { in ensureOutputDirectory()
112 return getOutputDirectory(context).exists(); in dumpFileExists()
120 if (!file.exists()) return; in removeFileOrDirectory()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestExploreIntentChecker.java41 public void setViewHandlerExists(boolean exists) { in setViewHandlerExists() argument
42 mViewHandlerExists = exists; in setViewHandlerExists()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java59 Log.d(TAG, "Testing file " + dir + " exists=" + dir.exists() in makeDirectory()
62 if (dir.exists()) { in makeDirectory()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTaskTest.java116 assertFalse(SystemAppsSnapshot.getFolder(mContext).exists()); in testRun_nothingToMigrate()
182 assertFalse(legacyFolder.exists()); in assertFilesAreMigrated()
183 assertTrue(newFolder.exists()); in assertFilesAreMigrated()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreServiceTest.java289 Assert.assertFalse(Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
290 Assert.assertFalse(Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
291 Assert.assertFalse(Files.exists(Paths.get(CONFIG_BACKUP_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
/packages/modules/Bluetooth/system/blueberry/tests/pbap/
Dbluetooth_pbap_test.py95 if not self.pri_phone.aud(text=file_name).exists():
105 if self.pri_phone.aud(content_desc='Grid view').exists():
383 text=f'Incoming call via HFP {hfp_address}').exists():
389 self.derived_bt_device.aud(text=full_name).exists(),
/packages/modules/Bluetooth/tools/rootcanal/lmp/
Dbuild.rs25 if Path::new(packets_prebuilt.as_os_str()).exists() { in main()
47 if !Path::new(packetgen.as_os_str()).exists() { in generate_packets()

1234567891011