Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java23 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.open;
135 ParcelFileDescriptor pfdOriginal = open(modernFile, false); in testTranscoded_FilePath()
138 ParcelFileDescriptor pfdTranscoded = open(modernFile, false); in testTranscoded_FilePath()
164 ParcelFileDescriptor pfdOriginal1 = open(modernFile, false); in testNoTranscodeOutsideCamera_FilePath()
170 ParcelFileDescriptor pfdOriginal2 = open(file, false); in testNoTranscodeOutsideCamera_FilePath()
192 ParcelFileDescriptor pfdTranscoded1 = open(modernFile, false); in testSameTranscoded_FilePath()
193 ParcelFileDescriptor pfdTranscoded2 = open(modernFile, false); in testSameTranscoded_FilePath()
211 ParcelFileDescriptor pfdOriginal = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver()
215 ParcelFileDescriptor pfdTranscoded = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver()
242 ParcelFileDescriptor pfdOriginal1 = open(uri, false, null /* bundle */); in testNoTranscodeOutsideCamera_ConentResolver()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java55 owner.open(); in testEnabled_OpenNotClosed()
62 owner.open(); in testEnabled_OpenThenClosed()
70 closeGuard.open(null); in testOpen_withNullMethodName_throwsNPE()
95 public void open() { in open() method in CloseGuardTest.ResourceOwner
96 mCloseGuard.open("close"); in open()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DApplicationMediaCapabilitiesTest.java112 InputStream xmlIs = mContext.getAssets().open("MediaCapabilities.xml"); in testReadFromCorrectXmlWithInputStreamInAssets()
135 InputStream xmlIs = mContext.getAssets().open("SupportAllHdr.xml"); in testReadMediaCapabilitiesXmlWithSupportAllHdr()
163 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag.xml"); in testReadFromWrongMediaCapabilityXml()
179 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag2.xml"); in testReadFromWrongMediaCapabilityXml2()
194 InputStream xmlIs = mContext.getAssets().open("WrongBooleanValue.xml"); in testReadFromXmlWithWrongBoolean()
209 InputStream xmlIs = mContext.getAssets().open("SupportHdrWithoutHevc.xml"); in testReadXmlSupportHdrWithoutSupportHevc()
225 InputStream xmlIs = mContext.getAssets().open("ConflictSupportedValue.xml"); in testReadXmlConflictSupportedValue()
240 InputStream xmlIs = mContext.getAssets().open("EmptyFormat.xml"); in testReadXmlWithEmptyFormat()
255 InputStream xmlIs = mContext.getAssets().open("FormatWithoutSupported.xml"); in testReadXmlFormatWithoutSupported()
270 InputStream xmlIs = mContext.getAssets().open("SupportedWithoutFormat.xml"); in testReadXmlSupportedWithoutFormat()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioNativeTest.java119 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData()
244 boolean ok = track.open(channelCount, in testOutputChannelMasks()
288 boolean ok = recorder.open(channelCount, in testInputChannelMasksPreQ()
299 boolean res = recorder.open(1, 1 | CHANNEL_INDEX_MASK_MAGIC, 16000, false, 2); in testInputChannelMasksPostQ()
336 boolean ok = recorder.open(channelCount, in testInputChannelMasksPostQ()
356 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
409 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() method in AudioNativeTest.AudioRecordAuditNative
410 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
411 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
DAudioTrackNative.java43 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() method in AudioTrackNative
44 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
47 public boolean open(int numChannels, int channelMask, int sampleRate, in open() method in AudioTrackNative
/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java48 mConditionVariable.open(); in testConditionVariable()
69 mConditionVariable.open(); in testConditionVariable()
88 mConditionVariable.open(); in testConditionVariable()
/cts/hostsidetests/packagemanager/parsing/processing/
DApkGenerator.py41 packageNamesOutput = open(f"{outDir}/{GENERATED_APK_PACKAGE_NAMES_FILE}", "w")
46 text = open(inputFile, "r").read()
82 outputFile = open(outputPath, "w")
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/
Dpoc.c39 fd_dbg = open("/dev/nvhost-dbg-gpu",0x0ul,0x101000ul); in thr()
50 fd_gpu = open("/dev/nvhost-gpu",0x0ul,0x2000ul); in thr()
/cts/tests/app/src/android/app/cts/
DForceStopTest.java164 gotRestarted.open(); in testPackageRestartedBroadcast()
209 gotUnstopped.open(); in testPackageUnstoppedBroadcast()
252 gotLockedBoot.open(); in testBootCompletedBroadcasts_activity()
254 gotBoot.open(); in testBootCompletedBroadcasts_activity()
257 gotActivityStarted.open(); in testBootCompletedBroadcasts_activity()
296 gotLockedBoot.open(); in testBootCompletedBroadcasts_broadcast()
298 gotBoot.open(); in testBootCompletedBroadcasts_broadcast()
309 appStarted.open(); in testBootCompletedBroadcasts_broadcast()
378 gotActivityStarted.open(); in testApplicationStartInfoWasForceStopped_activity()
414 serviceConnected.open(); in getStartReasonFromAppPackageService()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/
DLooperStatsTests.java96 .isIn(Range.open(0L, 1000000L)); in testLooperStats()
97 assertThat(stats.getRecordedTotalCpuMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
98 assertThat(stats.getRecordedMaxLatencyMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
99 assertThat(stats.getRecordedMaxCpuMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java187 private static ParcelFileDescriptor open(int resId, int offset) throws FileNotFoundException { in open() method in AImageDecoderTest
191 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in open()
197 private static ParcelFileDescriptor open(int resId) throws FileNotFoundException { in open() method in AImageDecoderTest
198 return open(resId, 0); in open()
204 try (ParcelFileDescriptor pfd = open(record.resId)) { in testCreateFdResources()
219 try (ParcelFileDescriptor pfd = open(record.resId, offset)) { in testCreateFdOffset()
259 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetFormatResources()
281 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetUnpremulResources()
302 try (ParcelFileDescriptor pfd = open(record.resId)) { in testGetMinimumStrideResources()
366 try (ParcelFileDescriptor pfd = open(resId)) { in testDecode10BitHeif()
[all …]
DBitmapColorSpaceTest.java240 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3()
262 try (InputStream in = mResources.getAssets().open("blue-16bit-srgb.png")) { in extendedSRGB()
285 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
294 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
326 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure()
358 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse()
367 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse()
387 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel()
433 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels()
476 try (InputStream in = mResources.getAssets().open(fileName)) { in verifySetPixel()
[all …]
/cts/tools/incremental-cts/
Dtarget_file_handler.py38 with zip_file.open(real_file_name) as f:
49 with zip_file.open('SYSTEM/build.prop') as build_prop:
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionMultiDetectorTest.java94 mIsTestServiceReady.open(); in setUp()
102 mIsTestServiceShutdown.open(); in setUp()
129 availabilityChanged.open(); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
170 availabilityChanged.open(); in testAlwaysOnHotwordDetectorCreate_rejectMultipleDetectorsOfTheSameType()
183 availabilityChanged.open(); in testAlwaysOnHotwordDetectorCreate_rejectMultipleDetectorsOfTheSameType()
/cts/apps/CameraITS/tools/
Drun_sensor_fusion.py63 with open(file_path) as f:
162 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'w') as fp:
166 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'r') as _:
172 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'r') as file:
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java48 try (InputStream in = assets.open("linear-rgba16f.png")) { in testTransferFunctions()
69 try (InputStream in = assets.open("linear-rgba16f.png")) { in testAlpha()
93 try (InputStream in = assets.open("linear-rgba16f.png")) { in testMasked()
127 try (InputStream in = assets.open("linear-rgba16f.png")) { in testTransferFunctionsShader()
/cts/tests/tests/os/src/android/os/health/cts/
DPowerMonitorsTest.java63 done.open(); in testGetPowerMonitorsAsync()
95 done.open(); in testGetPowerMonitorsAsync()
101 done.open(); in testGetPowerMonitorsAsync()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCamera2SurfaceViewCtsActivity.java146 surfaceStateDone.open(); in surfaceCreated()
156 surfaceChangedDone.open(); in surfaceChanged()
165 surfaceStateDone.open(); in surfaceDestroyed()
/cts/tests/tests/media/audio/jni/
DGate.h49 Gate(bool open = false) :
50 mOpen(open), in mOpen() argument
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java52 Os.open(FONT_DATA_DIR + "/test.txt", O_CREAT | O_RDWR, S_IRWXU); in testDataFontDirNotOpenableForWrite()
65 Os.open(FONT_DATA_FILES_DIR + "/test.txt", O_CREAT | O_RDWR, S_IRWXU); in testDataFontFilesDirNotOpenableForWrite()
/cts/hostsidetests/multidevices/tools/
Drun_all_tests.py51 with open(CONFIG_FILE) as file:
138 with open(summary_file_path, 'w+') as fp:
156 with open(test_summary_file) as file:
/cts/tools/utils/
Dcertificates.py35 with open(path, "w") as f:
40 with open(path, "w") as f:
45 with open(path) as f:
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/
Dpoc.c82 fd = open("/dev/xt_qtaguid", O_RDONLY); in main()
87 ctrl_fd = open("/proc/net/xt_qtaguid/ctrl", O_RDWR); in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraContentJobService.java98 mCondition.open(); in notifyExecution()
104 mCondition.open(); in cancelWait()
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java82 try (InputStream is = manager.open("syscalls_allowed.json")) { in initializeSyscallMap()
85 try (InputStream is = manager.open("syscalls_blocked.json")) { in initializeSyscallMap()
124 mResultCondition.open(); in handleMessage()
138 mConnectedCondition.open(); in onServiceConnected()

12345678910>>...14