Lines Matching refs:TranscodeTestUtils
21 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.assertFileContent;
22 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.assertTranscode;
23 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.executeShellCommand;
24 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.installAppWithStoragePermission…
25 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.isAppIoBlocked;
26 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.open;
27 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.openFileAs;
28 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.uninstallApp;
117 TranscodeTestUtils.isAVCHWEncoderSupported()); in setUp()
119 TranscodeTestUtils.pollForExternalStorageState(); in setUp()
120 TranscodeTestUtils.grantPermission(getContext().getPackageName(), in setUp()
122 TranscodeTestUtils.pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, true); in setUp()
127 TranscodeTestUtils.disableTranscodingForAllPackages(); in tearDown()
138 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscoded_FilePath()
142 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_FilePath()
165 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testNoTranscodeOutsideCamera_FilePath()
167 TranscodeTestUtils.stageHEVCVideoFile(file); in testNoTranscodeOutsideCamera_FilePath()
171 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_FilePath()
194 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testSameTranscoded_FilePath()
196 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscoded_FilePath()
214 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscoded_ContentResolver()
218 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_ContentResolver()
241 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testNoTranscodeOutsideCamera_ConentResolver()
244 noTranscodeUris.add(TranscodeTestUtils.stageHEVCVideoFile(file)); in testNoTranscodeOutsideCamera_ConentResolver()
249 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_ConentResolver()
274 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testSameTranscodedFile_ContentResolver()
276 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscodedFile_ContentResolver()
295 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testDeleteTranscodedFile_FilePath()
297 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testDeleteTranscodedFile_FilePath()
302 TranscodeTestUtils.disableTranscodingForAllPackages(); in testDeleteTranscodedFile_FilePath()
319 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testRenameTranscodedFile_FilePath()
321 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testRenameTranscodedFile_FilePath()
327 TranscodeTestUtils.disableTranscodingForAllPackages(); in testRenameTranscodedFile_FilePath()
345 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testLazyTranscodedFile_FilePath()
349 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testLazyTranscodedFile_FilePath()
365 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodedCacheReuse_FilePath()
366 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedCacheReuse_FilePath()
383 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodedCacheReuse_ContentResolver()
384 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedCacheReuse_ContentResolver()
402 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodedCacheReuse_ContentResolverFilePath()
403 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedCacheReuse_ContentResolverFilePath()
421 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodedCacheReuse_FilePathContentResolver()
422 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedCacheReuse_FilePathContentResolver()
440 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodedCacheReuseAfterRename_FilePath()
441 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedCacheReuseAfterRename_FilePath()
458 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraAcceptOriginalFormatTrue_ContentResolver()
462 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraAcceptOriginalFormatTrue_ContentResolver()
478 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraAcceptOriginalFormatFalse_ContentResolver()
482 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraAcceptOriginalFormatFalse_ContentResolver()
498 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraMediaCapabilitiesHevcSupportedTrue_ContentResolver()
502 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraMediaCapabilitiesHevcSupportedTrue_ContentResolver()
521 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraMediaCapabilitiesHevcUnsupportedFalse_ContentResolver()
525 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraMediaCapabilitiesHevcUnsupportedFalse_ContentResolver()
544 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraMediaCapabilitiesHevcUnspecifiedFalse_ContentResolver()
548 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraMediaCapabilitiesHevcUnspecifiedFalse_ContentResolver()
567 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testExtraAcceptOriginalTrueAndMediaCapabilitiesHevcFalse_ContentResolver()
571 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testExtraAcceptOriginalTrueAndMediaCapabilitiesHevcFalse_ContentResolver()
594 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testMediaCapabilitiesManifestHevc()
598 TranscodeTestUtils.enableTranscodingForPackage(TEST_APP_HEVC.getPackageName()); in testMediaCapabilitiesManifestHevc()
621 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testMediaCapabilitiesManifestSlowMotion()
625 TranscodeTestUtils.enableTranscodingForPackage(TEST_APP_SLOW_MOTION.getPackageName()); in testMediaCapabilitiesManifestSlowMotion()
648 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testAppCompatNoTranscodeHevc()
652 TranscodeTestUtils.enableTranscodingForPackage(packageName); in testAppCompatNoTranscodeHevc()
654 TranscodeTestUtils.forceEnableAppCompatHevc(packageName); in testAppCompatNoTranscodeHevc()
667 TranscodeTestUtils.resetAppCompat(packageName); in testAppCompatNoTranscodeHevc()
680 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testAppCompatTranscodeHevc()
685 TranscodeTestUtils.forceDisableAppCompatHevc(packageName); in testAppCompatTranscodeHevc()
696 TranscodeTestUtils.resetAppCompat(packageName); in testAppCompatTranscodeHevc()
710 TranscodeTestUtils.stageLegacyVideoFile(legacyFile); in testTranscodedNotInitiatedForLegacy_UsingBytesRead()
714 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedNotInitiatedForLegacy_UsingBytesRead()
736 TranscodeTestUtils.stageLegacyVideoFile(legacyFile); in testTranscodedNotInitiatedForLegacy_UsingTiming()
737 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodedNotInitiatedForLegacy_UsingTiming()
756 TranscodeTestUtils.stageSmallHevcVideoFile(modernFile); in testNoTranscodeTimeoutForSmallHevcVideos()
759 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeTimeoutForSmallHevcVideos()
780 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testOriginalCallingUid_modernAppPassLegacyAppUid()
825 Uri uri = TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testOriginalCallingUid_legacyAppPassModernAppUid()
828 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testOriginalCallingUid_legacyAppPassModernAppUid()
868 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testGetOriginalMediaFormatFileDescriptor_onSuccess_returnsOriginalFileDescriptor()
872 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testGetOriginalMediaFormatFileDescriptor_onSuccess_returnsOriginalFileDescriptor()
897 TranscodeTestUtils.stageHEVCVideoFile(file); in testGetOriginalMediaFormatFileDescriptor_onFailure_throwsIOException()
913 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodingCacheClear()
914 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodingCacheClear()
939 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testWriteSuccessfulToTranscodedContent()
940 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testWriteSuccessfulToTranscodedContent()
947 byte[] readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
955 TranscodeTestUtils.write(pfdTranscodedContent, writeBytes, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
958 readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
975 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in testTranscodeDirectoryNotAccessible()
976 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscodeDirectoryNotAccessible()
978 TranscodeTestUtils.read(pfdTranscodedContent, 512, 0); in testTranscodeDirectoryNotAccessible()
1086 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in openFile()
1089 TranscodeTestUtils.stageMediumHevcVideoFile(modernFile); in openFile()
1092 TranscodeTestUtils.stageLongHevcVideoFile(modernFile); in openFile()
1098 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in openFile()
1127 TranscodeTestUtils.stageHEVCVideoFile(modernFile); in test_IsAppIoBlocked()
1130 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in test_IsAppIoBlocked()