/cts/tests/app/WallpaperTest/testsdk33/src/android/app/cts/wallpapers/ |
D | WallpaperManagerSdk33Test.java | 166 ParcelFileDescriptor parcelFileDescriptor = sWallpaperManager.getWallpaperFile(FLAG_SYSTEM); in getWallpaperFile_system_noPermission_returnsDefault() local 167 if (parcelFileDescriptor != null) { in getWallpaperFile_system_noPermission_returnsDefault() 169 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_system_noPermission_returnsDefault() 181 ParcelFileDescriptor parcelFileDescriptor = sWallpaperManager.getWallpaperFile(FLAG_LOCK); in getWallpaperFile_lock_noPermission_returnsDefault() local 184 if (parcelFileDescriptor != null) { in getWallpaperFile_lock_noPermission_returnsDefault() 186 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_lock_noPermission_returnsDefault() 200 ParcelFileDescriptor parcelFileDescriptor = runWithShellPermissionIdentity( in getWallpaperFile_system_withPermission_returnsCurrent() local 203 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_system_withPermission_returnsCurrent() 214 ParcelFileDescriptor parcelFileDescriptor = runWithShellPermissionIdentity( in getWallpaperFile_lock_withPermission_doesNotReturnDefault() local 217 if (parcelFileDescriptor != null) { in getWallpaperFile_lock_withPermission_doesNotReturnDefault() [all …]
|
/cts/tests/tests/time/shell_utils/device/android/app/time/cts/shell/device/ |
D | InstrumentationShellCommandExecutor.java | 59 private static byte[] readBytesAndClose(ParcelFileDescriptor parcelFileDescriptor) in readBytesAndClose() argument 62 parcelFileDescriptor.getFileDescriptor())) { in readBytesAndClose()
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | FabricatedOverlayTest.java | 263 final ParcelFileDescriptor parcelFileDescriptor = in setResourceValue_multipleEntries_shouldSucceed() local 266 parcelFileDescriptor, 0, parcelFileDescriptor.getStatSize()); in setResourceValue_multipleEntries_shouldSucceed() 276 overlay.setResourceValue("raw/demo", parcelFileDescriptor, null /* configuration */); in setResourceValue_multipleEntries_shouldSucceed() 278 "raw/demo", parcelFileDescriptor, null /* configuration */); in setResourceValue_multipleEntries_shouldSucceed()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | StorageOwnedFilesTest.java | 210 try (ParcelFileDescriptor parcelFileDescriptor = sContentResolver.openFileDescriptor( in assertInsertFile() argument 212 assertThat(parcelFileDescriptor).isNotNull(); in assertInsertFile() 213 Os.write(parcelFileDescriptor.getFileDescriptor(), ByteBuffer.wrap(BYTES_DATA1)); in assertInsertFile() 214 assertFileContent(parcelFileDescriptor.getFileDescriptor(), BYTES_DATA1); in assertInsertFile()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 141 static byte[] read(ParcelFileDescriptor parcelFileDescriptor, int byteCount, int fileOffset) in read() argument 146 Os.lseek(parcelFileDescriptor.getFileDescriptor(), fileOffset, OsConstants.SEEK_SET); in read() 149 int numBytesRead = Os.read(parcelFileDescriptor.getFileDescriptor(), bytes, in read() 155 static void write(ParcelFileDescriptor parcelFileDescriptor, byte[] bytes, int byteCount, in write() argument 160 Os.lseek(parcelFileDescriptor.getFileDescriptor(), fileOffset, OsConstants.SEEK_SET); in write() 162 int numBytesWritten = Os.write(parcelFileDescriptor.getFileDescriptor(), bytes, in write()
|
/cts/tests/wearable/src/android/wearable/cts/ |
D | CtsWearableSensingService.java | 64 public void onDataStreamProvided(ParcelFileDescriptor parcelFileDescriptor, in onDataStreamProvided() argument 67 sParcelFileDescriptor = parcelFileDescriptor; in onDataStreamProvided()
|
D | CtsIsolatedWearableSensingService.java | 135 ParcelFileDescriptor parcelFileDescriptor, Consumer<Integer> statusConsumer) { in onDataStreamProvided() argument
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderTestBase.kt | 120 ResourcesProvider.loadFromApk(asset.parcelFileDescriptor, asset.startOffset, in <lambda>() 134 ResourcesProvider.loadFromTable(asset.parcelFileDescriptor, asset.startOffset, in <lambda>()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 695 final ParcelFileDescriptor parcelFileDescriptor = in executeShellCommand() local 698 try (InputStream in = new FileInputStream(parcelFileDescriptor.getFileDescriptor())) { in executeShellCommand() 710 closeQuietly(parcelFileDescriptor); in executeShellCommand()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainWearableSensingService.java | 253 ParcelFileDescriptor parcelFileDescriptor, Consumer<Integer> statusConsumer) {} in onDataStreamProvided() argument
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | VoicemailContractTest.java | 586 final ParcelFileDescriptor parcelFileDescriptor = in executeShellCommand() local 589 try (InputStream in = new FileInputStream(parcelFileDescriptor.getFileDescriptor())) { in executeShellCommand() 601 closeQuietly(parcelFileDescriptor); in executeShellCommand()
|