Home
last modified time | relevance | path

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

1234567891011

/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java26 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.open;
138 ParcelFileDescriptor pfdOriginal = open(modernFile, false); in testTranscoded_FilePath()
141 ParcelFileDescriptor pfdTranscoded = open(modernFile, false); in testTranscoded_FilePath()
167 ParcelFileDescriptor pfdOriginal1 = open(modernFile, false); in testNoTranscodeOutsideCamera_FilePath()
173 ParcelFileDescriptor pfdOriginal2 = open(file, false); in testNoTranscodeOutsideCamera_FilePath()
195 ParcelFileDescriptor pfdTranscoded1 = open(modernFile, false); in testSameTranscoded_FilePath()
196 ParcelFileDescriptor pfdTranscoded2 = open(modernFile, false); in testSameTranscoded_FilePath()
214 ParcelFileDescriptor pfdOriginal = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver()
218 ParcelFileDescriptor pfdTranscoded = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver()
245 ParcelFileDescriptor pfdOriginal1 = open(uri, false, null /* bundle */); in testNoTranscodeOutsideCamera_ConentResolver()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java48 owner.open(); in testEnabled_OpenNotClosed()
55 owner.open(); in testEnabled_OpenThenClosed()
63 closeGuard.open(null); in testOpen_withNullMethodName_throwsNPE()
88 public void open() { in open() method in CloseGuardTest.ResourceOwner
89 mCloseGuard.open("close"); in open()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DApplicationMediaCapabilitiesTest.java108 InputStream xmlIs = mContext.getAssets().open("MediaCapabilities.xml"); in testReadFromCorrectXmlWithInputStreamInAssets()
131 InputStream xmlIs = mContext.getAssets().open("SupportAllHdr.xml"); in testReadMediaCapabilitiesXmlWithSupportAllHdr()
159 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag.xml"); in testReadFromWrongMediaCapabilityXml()
175 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag2.xml"); in testReadFromWrongMediaCapabilityXml2()
190 InputStream xmlIs = mContext.getAssets().open("WrongBooleanValue.xml"); in testReadFromXmlWithWrongBoolean()
205 InputStream xmlIs = mContext.getAssets().open("SupportHdrWithoutHevc.xml"); in testReadXmlSupportHdrWithoutSupportHevc()
221 InputStream xmlIs = mContext.getAssets().open("ConflictSupportedValue.xml"); in testReadXmlConflictSupportedValue()
236 InputStream xmlIs = mContext.getAssets().open("EmptyFormat.xml"); in testReadXmlWithEmptyFormat()
251 InputStream xmlIs = mContext.getAssets().open("FormatWithoutSupported.xml"); in testReadXmlFormatWithoutSupported()
266 InputStream xmlIs = mContext.getAssets().open("SupportedWithoutFormat.xml"); in testReadXmlSupportedWithoutFormat()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java164 private static ParcelFileDescriptor open(int resId, int offset) throws FileNotFoundException { in open() method in AImageDecoderTest
168 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in open()
174 private static ParcelFileDescriptor open(int resId) throws FileNotFoundException { in open() method in AImageDecoderTest
175 return open(resId, 0); in open()
181 try (ParcelFileDescriptor pfd = open(record.resId)) { in testCreateFdResources()
196 try (ParcelFileDescriptor pfd = open(record.resId, offset)) { in testCreateFdOffset()
236 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetFormatResources()
258 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetUnpremulResources()
279 try (ParcelFileDescriptor pfd = open(record.resId)) { in testGetMinimumStrideResources()
334 try (ParcelFileDescriptor pfd = open(record.resId)) { in testDecodeResources()
[all …]
DBitmapColorSpaceTest.java238 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3()
260 try (InputStream in = mResources.getAssets().open("blue-16bit-srgb.png")) { in extendedSRGB()
283 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
292 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
324 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure()
356 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse()
365 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse()
385 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel()
431 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels()
474 try (InputStream in = mResources.getAssets().open(fileName)) { in verifySetPixel()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java46 mConditionVariable.open(); in testConditionVariable()
67 mConditionVariable.open(); in testConditionVariable()
86 mConditionVariable.open(); in testConditionVariable()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/
DLooperStatsTests.java95 .isIn(Range.open(0L, 1000000L)); in testLooperStats()
96 assertThat(stats.getRecordedTotalCpuMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
97 assertThat(stats.getRecordedMaxLatencyMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
98 assertThat(stats.getRecordedMaxCpuMicros()).isIn(Range.open(0L, 1000000L)); in testLooperStats()
/cts/tests/tests/media/src/android/media/cts/
DAudioNativeTest.java111 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData()
234 boolean ok = track.open(channelCount, in testOutputChannelMasks()
277 boolean ok = recorder.open(channelCount, in testInputChannelMasksPreQ()
288 boolean res = recorder.open(1, 1 | CHANNEL_INDEX_MASK_MAGIC, 16000, false, 2); in testInputChannelMasksPostQ()
325 boolean ok = recorder.open(channelCount, in testInputChannelMasksPostQ()
345 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
DAudioRecordNative.java44 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() method in AudioRecordNative
45 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open()
48 public boolean open(int numChannels, int channelMask, int sampleRate, in open() method in AudioRecordNative
DAudioTrackNative.java46 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() method in AudioTrackNative
47 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
50 public boolean open(int numChannels, int channelMask, int sampleRate, in open() method in AudioTrackNative
/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/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/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/tests/graphics/src/android/graphics/fonts/
DFontTest.java87 try (InputStream is = am.open(path)) { in mmap()
277 try (InputStream is = am.open(path)) { in testBuilder_file()
304 try (InputStream is = am.open(path)) { in testBuilder_file_ttc()
332 try (InputStream is = am.open(path)) { in testBuilder_file_vf()
359 try (InputStream is = am.open(path)) { in testBuilder_file_override()
379 try (InputStream is = am.open(path)) { in testBuilder_file_override()
417 try (InputStream is = am.open(path)) { in testBuilder_fd()
420 try (ParcelFileDescriptor fd = ParcelFileDescriptor.open(file, in testBuilder_fd()
447 try (InputStream is = am.open(path)) { in testBuilder_fd_ttc()
450 try (ParcelFileDescriptor fd = ParcelFileDescriptor.open(file, in testBuilder_fd_ttc()
[all …]
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/tests/camera/src/android/hardware/camera2/cts/
DCamera2SurfaceViewCtsActivity.java146 surfaceStateDone.open(); in surfaceCreated()
156 surfaceChangedDone.open(); in surfaceChanged()
165 surfaceStateDone.open(); in surfaceDestroyed()
/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/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()
/cts/tools/incremental-cts/
Dincremental_deqp.py260 with open(test_file, 'r') as f:
266 with open(log_file, 'r') as f:
308 with open(dump, 'r') as f:
496 with open(file_name, 'w') as f:
521 with open(extra_deqp_deps_file, 'r') as f:
565 with open(os.path.join(out_dir, 'incremental_deqp.xml'), 'w') as f:
578 with open(os.path.join(work_dir, 'extra_deqp_dependency.txt'), 'r') as f:
/cts/tests/tests/media/libaudiojni/
DGate.h49 Gate(bool open = false) :
50 mOpen(open), in mOpen() argument
/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/apps/CameraITS/tools/
Drun_sensor_fusion.py62 with open(file_path) as f:
161 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'w') as fp:
165 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'r') as _:
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSipManagerTest.java64 mSipManager.open(sipProfile1); in testGetProfiles()
65 mSipManager.open(sipProfile2); in testGetProfiles()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseOutputStreamTest.java57 ParcelFileDescriptor fd = ParcelFileDescriptor.open(file, in testAutoCloseOutputStream()
69 fd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_WRITE); in testAutoCloseOutputStream()

1234567891011