/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderForFuseTest.java | 107 file.getPath(), sTestUid)).isEqualTo(0); in testTypicalChangeDirectory() 109 sTestDir.getPath(), sTestUid))).contains(file.getName()); in testTypicalChangeDirectory() 116 file.getPath(), in testTypicalChangeDirectory() 117 file.getPath(), in testTypicalChangeDirectory() 133 file.getPath(), renamed.getPath(), sTestUid)).isEqualTo(0); in testTypicalChangeDirectory() 135 sTestDir.getPath(), sTestUid))).doesNotContain(file.getName()); in testTypicalChangeDirectory() 137 targetDir.getPath(), sTestUid))).contains(renamed.getName()); in testTypicalChangeDirectory() 141 renamed.getPath(), sTestUid)).isEqualTo(0); in testTypicalChangeDirectory() 143 targetDir.getPath(), sTestUid))).doesNotContain(renamed.getName()); in testTypicalChangeDirectory() 152 file.getPath(), sTestUid)).isEqualTo(0); in testTypical() [all …]
|
D | PublicVolumeTest.java | 80 if (!volume.isPrimary() && volume.getPath().startsWith("/storage")) { in testPublicVolumeDefaultFolders() 81 assertTrue(pollContainsDefaultFolders(volume.getPath())); in testPublicVolumeDefaultFolders() 92 if (!volume.isPrimary() && volume.getPath().startsWith("/storage")) { in testPublicVolumeDefaultFolders() 93 assertTrue(pollContainsDefaultFolders(volume.getPath())); in testPublicVolumeDefaultFolders()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | SilentModeHandlerUnitTest.java | 72 mFeatureFlags, mFileHwStateMonitoring.getFile().getPath(), in testSilentModeHwStateMonitoring() 73 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testSilentModeHwStateMonitoring() 88 mFeatureFlags, mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedSilentMode() 89 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_SILENT); in testRebootForForcedSilentMode() 102 mFeatureFlags, mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedNonSilentMode() 103 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_NON_SILENT); in testRebootForForcedNonSilentMode() 116 mFeatureFlags, mFileHwStateMonitoring.getFile().getPath(), in testUpdateKernelSilentMode() 117 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testUpdateKernelSilentMode() 122 String contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode() 127 contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/ |
D | EthernetConfigStoreTest.java | 75 mApexTestDir = new File(baseDir.getPath() + "/apex"); in createTestDir() 78 mLegacyTestDir = new File(baseDir.getPath() + "/legacy"); in createTestDir() 111 mApexConfigFile = new File(mApexTestDir.getPath(), "test.txt"); in testWriteIpConfigToApexFilePathAndRead() 112 mEthernetConfigStore.write("eth0", APEX_IP_CONFIG, mApexConfigFile.getPath()); in testWriteIpConfigToApexFilePathAndRead() 115 mEthernetConfigStore.read(mApexTestDir.getPath(), mLegacyTestDir.getPath(), "/test.txt"); in testWriteIpConfigToApexFilePathAndRead() 128 mEthernetConfigStore.write("0", LEGACY_IP_CONFIG, mLegacyConfigFile.getPath()); in testWriteIpConfigToLegacyFilePathAndRead() 131 mEthernetConfigStore.read(mApexTestDir.getPath(), mLegacyTestDir.getPath(), "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead() 137 assertConfigFileExist(mApexTestDir.getPath() + "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead() 139 final File apexConfigFile = new File(mApexTestDir.getPath() + "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | LastMileLoggerTest.java | 66 FileUtils.stringToFile(mTraceEnableFile.getPath(), "0"); in setUp() 67 mLastMileLogger = new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), in setUp() 68 mTraceEnableFile.getPath(), mTraceReleaseFile.getPath()); in setUp() 77 new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), mTraceEnableFile.getPath(), in ctorDoesNotCrash() 78 mTraceReleaseFile.getPath()); in ctorDoesNotCrash() 172 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in multipleIfaces() 204 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpShowsFailureTrace() 214 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpShowsPendingConnectionTrace() 223 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect try #1"); in dumpShowsLastFailureTraceAndPendingConnectionTrace() 226 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect try #2"); in dumpShowsLastFailureTraceAndPendingConnectionTrace() [all …]
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | BaselinePerfTest.java | 185 if (DECISION_LOGIC_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_executionHeavyJS_success() 187 } else if (BUYER_BIDDING_LOGIC_URI_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_executionHeavyJS_success() 189 } else if (BUYER_REPORTING_PATH.equals(request.getPath()) in testAdSelectionAndReporting_executionHeavyJS_success() 190 || SELLER_REPORTING_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_executionHeavyJS_success() 192 } else if (request.getPath().startsWith(TRUSTED_SCORING_SIGNAL_PATH)) { in testAdSelectionAndReporting_executionHeavyJS_success() 194 } else if (request.getPath().startsWith(VALID_TRUSTED_BIDDING_URI_PATH)) { in testAdSelectionAndReporting_executionHeavyJS_success() 267 if (DECISION_LOGIC_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_memoryHeavyJS_success() 269 } else if (BUYER_BIDDING_LOGIC_URI_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_memoryHeavyJS_success() 271 } else if (BUYER_REPORTING_PATH.equals(request.getPath()) in testAdSelectionAndReporting_memoryHeavyJS_success() 272 || SELLER_REPORTING_PATH.equals(request.getPath())) { in testAdSelectionAndReporting_memoryHeavyJS_success() [all …]
|
D | AbstractPerfTest.java | 207 if (DECISION_LOGIC_PATH.equals(request.getPath())) { in setup() 209 } else if (BUYER_BIDDING_LOGIC_URI_PATH.equals(request.getPath())) { in setup() 211 } else if (BUYER_REPORTING_PATH.equals(request.getPath()) in setup() 212 || SELLER_REPORTING_PATH.equals(request.getPath())) { in setup() 214 } else if (request.getPath().startsWith(TRUSTED_SCORING_SIGNAL_PATH)) { in setup() 216 } else if (request.getPath().startsWith(VALID_TRUSTED_BIDDING_URI_PATH)) { in setup()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportAndRegisterEventFallbackImplTest.java | 297 ImmutableList.of(server.takeRequest().getPath(), server.takeRequest().getPath()); in testImplSuccessfullyReportsRegisteredEvents() 327 if (request.getPath().contains(reportingUri.getPath())) { in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 361 assertThat(server.takeRequest().getPath()) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 380 if (request.getPath().contains(reportingUri.getPath())) { in testImplDoesNotCrashAfterSellerReportingAndRegisteringThrowsAnException() 418 ImmutableList.of(server.takeRequest().getPath(), server.takeRequest().getPath()); in testImplDoesNotCrashAfterSellerReportingAndRegisteringThrowsAnException() 448 if (request.getPath().contains(reportingUri.getPath())) { in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 482 assertThat(server.takeRequest().getPath()) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 501 if (request.getPath().contains(reportingUri.getPath())) { in testImplDoesNotCrashAfterBuyerReportingAndRegisteringThrowsAnException() 539 ImmutableList.of(server.takeRequest().getPath(), server.takeRequest().getPath()); in testImplDoesNotCrashAfterBuyerReportingAndRegisteringThrowsAnException() 557 if (request.getPath() in testImplOnlyReportsBuyersRegisteredEvents() [all …]
|
D | AdSelectionE2ETest.java | 359 if (SELLER_DECISION_LOGIC_URI_PATH.equals(request.getPath())) { 362 .equals(request.getPath()) 364 .equals(request.getPath())) { 366 } else if (request.getPath().equals(SELECTION_PICK_HIGHEST_LOGIC_JS_PATH)) { 368 } else if (request.getPath().equals(SELECTION_PICK_NONE_LOGIC_JS_PATH)) { 370 } else if (request.getPath().equals(SELECTION_WATERFALL_LOGIC_JS_PATH)) { 372 } else if (request.getPath().startsWith(BUYER_TRUSTED_SIGNAL_URI_PATH)) { 374 Uri.parse(request.getPath()) 386 if (request.getPath() 392 sLogger.w("Unexpected call to MockWebServer " + request.getPath()); [all …]
|
D | ReportEventImplTest.java | 318 ImmutableList.of(server.takeRequest().getPath(), server.takeRequest().getPath()); in testImplSuccessfullyReportsRegisteredInteractions() 368 if (request.getPath() in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 408 BUYER_INTERACTION_REPORTING_PATH + CLICK_EVENT, server.takeRequest().getPath()); in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 453 if (request.getPath() in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 493 SELLER_INTERACTION_REPORTING_PATH + CLICK_EVENT, server.takeRequest().getPath()); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 531 if (request.getPath() in testImplOnlyReportsBuyersRegisteredInteractions() 564 BUYER_INTERACTION_REPORTING_PATH + CLICK_EVENT, server.takeRequest().getPath()); in testImplOnlyReportsBuyersRegisteredInteractions() 602 if (request.getPath() in testImplOnlyReportsSellerRegisteredInteractions() 635 SELLER_INTERACTION_REPORTING_PATH + CLICK_EVENT, server.takeRequest().getPath()); in testImplOnlyReportsSellerRegisteredInteractions() 727 assertTrue(recordedRequest.getPath().contains(CLICK_EVENT)); in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() [all …]
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/ |
D | MockWebServerDispatcherFactory.java | 161 if (DECISION_LOGIC_PATH.equals(request.getPath())) { in create() 173 } else if (BUYER_BIDDING_LOGIC_URI_PATH.equals(request.getPath())) { in create() 185 } else if (BUYER_BIDDING_LOGIC_URI_PATH_FIXED_BID.equals((request.getPath()))) { in create() 198 } else if (BUYER_REPORTING_PATH.equals(request.getPath()) in create() 199 || SELLER_REPORTING_PATH.equals(request.getPath())) { in create() 201 } else if (request.getPath().startsWith(TRUSTED_SCORING_SIGNAL_PATH)) { in create() 208 } else if (request.getPath().startsWith(TRUSTED_BIDDING_SIGNALS_PATH)) { in create()
|
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
D | DownloadCompletionReceiver.java | 52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile() 60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 235 private Path getPath(int index) { in getPath() method in PhotoDataAdapter 238 return item.getPath(); in getPath() 266 mPaths[i] = getPath(mCurrentIndex + i - SCREEN_NAIL_MAX); in fireDataChange() 320 if (path == getPath(mCurrentIndex + i)) { in updateScreenNail() 341 if (path == getPath(mCurrentIndex)) { in updateFullImage() 401 mItemPath = item == null ? null : item.getPath(); in updateCurrentIndex() 421 ImageEntry e = mImageCache.get(item.getPath()); in uploadScreenNail() 454 ImageEntry entry = mImageCache.get(item.getPath()); in getScreenNail() 524 ImageEntry entry = mImageCache.get(getPath(mCurrentIndex + offset)); in getLoadingState() 586 if (item != null && item.getPath() != path) { in setCurrentPhoto() [all …]
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 864 assertEquals(4, path.getPath().size()); in testFindDocumentPath_singleStorage_toRoot() 865 assertEquals("1", path.getPath().get(0)); in testFindDocumentPath_singleStorage_toRoot() 866 assertEquals("3", path.getPath().get(1)); in testFindDocumentPath_singleStorage_toRoot() 867 assertEquals("6", path.getPath().get(2)); in testFindDocumentPath_singleStorage_toRoot() 868 assertEquals("15", path.getPath().get(3)); in testFindDocumentPath_singleStorage_toRoot() 878 assertEquals(3, path.getPath().size()); in testFindDocumentPath_singleStorage_toDoc() 879 assertEquals("3", path.getPath().get(0)); in testFindDocumentPath_singleStorage_toDoc() 880 assertEquals("7", path.getPath().get(1)); in testFindDocumentPath_singleStorage_toDoc() 881 assertEquals("18", path.getPath().get(2)); in testFindDocumentPath_singleStorage_toDoc() 893 assertEquals(4, path.getPath().size()); in testFindDocumentPath_multiStorage_toRoot() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 62 assertNull(u.getPath()); in testBuildUpon() 96 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 127 assertEquals("/path", uri.getPath()); in testStringUri() 132 assertEquals("\\.example.com/path", uri.getPath()); in testStringUri() 139 assertEquals("/foo", uri.getPath()); in testStringUri() 148 assertEquals("/", uri.getPath()); in testStringUri() 158 assertEquals("/foo", uri.getPath()); in testStringUri() 324 assertEquals("/a/b/c", withC.getPath()); in testPathOperations() 363 assertNull(uri.getPath()); in testOpaqueUri() 481 assertEquals(path, uri.getPath()); in compareHierarchical()
|
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/ |
D | DeviceConfigBootstrapValues.java | 58 if (getPath().toFile().exists()) { in applyValuesIfNeeded() 78 Path path = getPath(); in parseAndApplyBootstrapValues() 123 private Path getPath() { in getPath() method in DeviceConfigBootstrapValues
|
/packages/modules/Profiling/tests/cts/src/android/profiling/cts/ |
D | ProfilingServiceTests.java | 684 mContext.getFilesDir().getPath(), in testQueuedResult_InvalidState() 723 mContext.getFilesDir().getPath(), in testQueuedResult_OverMaxRetries() 761 mContext.getFilesDir().getPath(), in testQueuedResult_ProfilingFinished() 800 mContext.getFilesDir().getPath(), in testQueuedResult_TraceUnredacted() 838 mContext.getFilesDir().getPath(), in testQueuedResult_TraceRedacted() 881 mContext.getFilesDir().getPath(), in testQueuedResult_AlreadyCopied() 918 mContext.getFilesDir().getPath(), in testQueuedResult_Cleanup() 948 File directory = new File(mContext.getFilesDir().getPath()); in testTemporaryDirectoryCleanup_inActiveSession() 962 mContext.getFilesDir().getPath(), in testTemporaryDirectoryCleanup_inActiveSession() 973 mProfilingService.cleanupTemporaryDirectoryLocked(directory.getPath()); in testTemporaryDirectoryCleanup_inActiveSession() [all …]
|
/packages/modules/common/javatests/com/android/modules/conformanceframework/ |
D | DuplicateClassesTest.java | 99 .map(entry -> entry.getJar().getPath()) in setupOnce() 103 jarsToClasses.putAll(entry.getJar().getPath(), entry.getClassesList()); in setupOnce() 109 .map(entry -> entry.getJar().getPath()) in setupOnce() 113 jarsToClasses.putAll(entry.getJar().getPath(), entry.getClassesList()); in setupOnce()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | VolumeCache.java | 108 return volume.getPath(); in getVolumePath() 148 if (FileUtils.contains(volume.getPath(), file)) { in findVolumeForFile() 154 Log.w(TAG, "Didn't find any volume for getVolume(" + file.getPath() + ")"); in findVolumeForFile() 179 if (volume.getPath() != null) { in updateExternalVolumesForUserLocked()
|
D | MediaService.java | 153 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName) && volume.getPath() == null) { in onScanVolume() 181 broadcastUri = Uri.fromFile(volume.getPath()); in onScanVolume() 207 provider.scanDirectory(volume.getPath(), reason); in onScanVolume() 221 final File file = new File(uri.getPath()).getCanonicalFile(); in onScanFile()
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpService.java | 74 if (volume.getPath().equals(path)) { 143 mVolumeMap.put(v.getPath(), v); in onStartCommand() 179 …" with storage " + primary.getPath() + (mUnlocked ? " unlocked" : "") + " as user " + UserHandle.m… in startServer() 221 Log.v(TAG, "Adding MTP storage:" + volume.getPath()); in addStorage()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | UriImage.java | 50 return mUri.getPath(); in getDataPath() 56 return new java.io.FileInputStream(mUri.getPath()); in getInputStream() 68 String path = mUri.getPath(); in getPFD()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/load/utils/ |
D | MeasurementMockServerDispatcher.java | 36 switch (request.getPath()) { in dispatch() 44 throw new IllegalStateException("Unexpected value: " + request.getPath()); in dispatch()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SyntheticPathUtils.java | 50 return buildPath(/* base */ null, TRANSFORMS_DIR, SYNTHETIC_DIR, REDACTED_DIR).getPath(); in getRedactedRelativePath() 58 pickerSegmentType).getPath(); in getPickerRelativePath() 128 return buildPath(/* base */ null, TRANSFORMS_DIR, SYNTHETIC_DIR).getPath(); in getSyntheticRelativePath()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DownloadsDeletionType.java | 168 mUncheckedFiles.remove(file.getPath()); in setFileChecked() 170 mUncheckedFiles.add(file.getPath()); in setFileChecked() 199 return !mUncheckedFiles.contains(file.getPath()); in isChecked()
|