Home
last modified time | relevance | path

Searched refs:parcelFileDescriptor (Results 1 – 11 of 11) sorted by relevance

/cts/tests/app/WallpaperTest/testsdk33/src/android/app/cts/wallpapers/
DWallpaperManagerSdk33Test.java166 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/
DInstrumentationShellCommandExecutor.java59 private static byte[] readBytesAndClose(ParcelFileDescriptor parcelFileDescriptor) in readBytesAndClose() argument
62 parcelFileDescriptor.getFileDescriptor())) { in readBytesAndClose()
/cts/tests/tests/content/src/android/content/om/cts/
DFabricatedOverlayTest.java263 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/
DStorageOwnedFilesTest.java210 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/
DTranscodeTestUtils.java141 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/
DCtsWearableSensingService.java64 public void onDataStreamProvided(ParcelFileDescriptor parcelFileDescriptor, in onDataStreamProvided() argument
67 sParcelFileDescriptor = parcelFileDescriptor; in onDataStreamProvided()
DCtsIsolatedWearableSensingService.java135 ParcelFileDescriptor parcelFileDescriptor, Consumer<Integer> statusConsumer) { in onDataStreamProvided() argument
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderTestBase.kt120 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/
DVisualVoicemailServiceTest.java695 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/
DMainWearableSensingService.java253 ParcelFileDescriptor parcelFileDescriptor, Consumer<Integer> statusConsumer) {} in onDataStreamProvided() argument
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java586 final ParcelFileDescriptor parcelFileDescriptor = in executeShellCommand() local
589 try (InputStream in = new FileInputStream(parcelFileDescriptor.getFileDescriptor())) { in executeShellCommand()
601 closeQuietly(parcelFileDescriptor); in executeShellCommand()