Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/rs/tests/java_api/RSUnitTests/
DRSUnitTests.py322 with open(in_path, 'r') as in_file, open(out_path, 'w') as out_file:
338 with open(out_path, 'w') as out_file:
343 with open(in_path, 'r') as in_file:
353 with open(os.path.join(SupportLibGenTestDir(), shared_rsh), 'a') as shared:
421 with open(SupportLib19MakefileLocation(), 'w') as gen_file:
578 with open(ForwardMakefileLocation(build_tool_version_name), 'w') as gen_file:
582 with open(ForwardAndroidManifestLocation(build_tool_version_name), 'w') as gen_file:
587 with open(ForwardJavaApiVersionLocation(build_tool_version_name), 'w') as gen_file:
591 with open(ForwardMakeTargetsLocation(), 'w') as gen_file:
683 with open(BackwardJavaFileLocation(), 'w') as gen_file:
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java66 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte()
82 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges()
104 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile()
117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite()
174 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart()
186 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset()
198 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionStart()
210 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionEnd()
222 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeOutsideRedaction()
234 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeMultipleRedactions()
/frameworks/base/core/tests/coretests/src/android/util/
DCloseGuardTest.java40 owner.open(); in testEnabled_OpenNotClosed()
47 owner.open(); in testEnabled_OpenThenClosed()
55 closeGuard.open(null); in testOpen_withNullMethodName_throwsNPE()
80 public void open() { in open() method in CloseGuardTest.ResourceOwner
81 mCloseGuard.open("close"); in open()
/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp60 int fd = ::open(mFilename.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetUp()
75 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F()
84 fd = ::open(mFilename.string(), O_RDONLY); in TEST_F()
117 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F()
125 fd = ::open(mFilename.string(), O_RDONLY); in TEST_F()
165 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F()
175 fd = ::open(mFilename.string(), O_RDONLY); in TEST_F()
220 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F()
227 fd = ::open(mFilename.string(), O_RDONLY); in TEST_F()
259 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F()
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DCommonTransitions.java83 .runBeforeAll(testApp::open) in openAppWarm()
87 .run(testApp::open) in openAppWarm()
99 .runBefore(testApp::open) in closeAppWithBackKey()
114 .runBefore(testApp::open) in closeAppWithHomeKey()
134 .run(testApp::open) in openAppCold()
148 .runBeforeAll(testApp::open) in changeAppRotation()
187 .runBefore(testApp::open) in appToSplitScreen()
201 .runBefore(testApp::open) in splitScreenToLauncher()
218 .runBefore(testApp::open) in editTextSetFocus()
237 .runBefore(testAppBottom::open) in resizeSplitScreen()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuProcStringReaderTest.java91 assertEquals(null, mReader.open()); in testReadInvalidFile()
100 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit()
109 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit()
115 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit()
123 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit()
144 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLine()
179 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testMultipleRead()
196 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLineToArray()
233 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadOverLimit()
265 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testConcurrent()
[all …]
DKernelCpuUidBpfMapReaderTest.java71 assertEquals(null, mReader.open()); in testUnsuccessfulRead()
80 try (BpfMapIterator iter = mReader.open()) { in testReadErrorsLimit()
93 try (BpfMapIterator iter = mReader.open(true)) { in testReadErrorsLimit()
98 try (BpfMapIterator iter = mReader.open(true)) { in testReadErrorsLimit()
198 try (BpfMapIterator iter = mReader.open()) { in testOpenAndReadData()
/frameworks/base/services/core/java/com/android/server/net/
DDelayedDiskWrite.java44 public void write(final String filePath, final Writer w, final boolean open) { in write() argument
61 doWrite(filePath, w, open); in write()
66 private void doWrite(String filePath, Writer w, boolean open) { in doWrite() argument
69 if (open) { in doWrite()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java98 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_emptyInput_throwsEOFException()
119 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
139 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
156 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_notEnoughData_throwsEOFException()
179 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_oneSmallChunk_writesOutputCorrectly()
199 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_oneLargeChunk_writesOutputCorrectly()
224 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_twoSmallChunks_writesOutputCorrectly()
249 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_twoLargeChunks_writesOutputCorrectly()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc3 "can not open input file `%0': %1",
4 "can not open input file `%0' : %1")
7 "cannot open output file `%0': %1",
8 "cannot open output file `%0': %1")
11 "can not open search directory `-L%0'",
12 "can not open search directory `-L%0'")
112 "cannot open file `%0': %1.",
113 "cannot open file `%0': %1.")
128 "cannot open memory mapped file %0 from offset %1 to length %2.",
129 "cannot open memoory mpped file %0 from offset %1 to length %2.")
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_UsbDeviceManager.cpp63 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAccessoryStrings()
85 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_openAccessory()
102 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_isStartRequested()
114 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAudioMode()
132 fd = TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP0 : FFS_MTP_EP0, O_RDWR)); in android_server_UsbDeviceManager_openControl()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DInputPort.java42 public void open() { in open() method in InputPort
43 super.open(); in open()
45 mSourcePort.open(); in open()
DOutputPort.java44 public void open() { in open() method in OutputPort
45 super.open(); in open()
47 mTargetPort.open(); in open()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DTestAssetRepository.java39 private static InputStream open(String path) throws FileNotFoundException { in open() method in TestAssetRepository
55 return open(mAssetPath + path); in openAsset()
60 return open(path); in openNonAsset()
/frameworks/base/core/java/android/speech/tts/
DAudioPlaybackQueueItem.java71 mDone.open(); in run()
79 mDone.open(); in run()
89 mDone.open(); in run()
127 mDone.open(); in stop()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DIfElseFilterTest.java59 Bitmap videoBitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); in testIfElseFilterTrue()
61 Bitmap imageBitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); in testIfElseFilterTrue()
90 Bitmap videoBitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); in testIfElseFilterFalse()
92 Bitmap imageBitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); in testIfElseFilterFalse()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuUidTimeReader.java216 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
254 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
488 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readDeltaImpl()
497 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
515 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readAbsoluteImpl()
525 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
646 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readDeltaImpl()
655 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
680 try (BpfMapIterator iter = mBpfReader.open(!mThrottle)) { in readAbsoluteImpl()
689 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
[all …]
/frameworks/base/media/apex/java/android/media/
DCloseGuard.java220 public void open(String closer) { in open() method in CloseGuard
235 tracker.open(stack); in open()
286 void open(Throwable allocationSite); in open() method
/frameworks/base/core/java/android/util/
DCloseGuard.java129 public void open(@NonNull String closeMethodName) { in open() method in CloseGuard
130 mImpl.open(closeMethodName); in open()
/frameworks/base/tests/AmSlam/src/test/amslam/subreceivers/
Dgen.py43 f = open('PingReceiver{:03d}.java'.format(i), 'w')
47 manifest = open('AppendToManifest.xml', 'w')
/frameworks/compile/mclinker/unittests/
DFileHandleTest.cpp43 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F()
62 int fd = ::open(path.native().c_str(), O_RDONLY); in TEST_F()
85 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F()
/frameworks/compile/libbcc/lib/
DFileBase.cpp69 open(); in FileBase()
78 bool FileBase::open() { in open() function in FileBase
82 mFD = ::open(mName.c_str(), mOpenFlags, 0644); in open()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java93 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
94 startDone.open(); in initializeMessageLooper()
132 mPreviewDone.open(); in onPreviewFrame()
169 mSnapshotDone.open(); in onPictureTaken()
/frameworks/av/media/libstagefright/flac/dec/test/
DFlacDecoderTest.cpp71 eleInfo.open(infoFileName); in getInfo()
206 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
210 ostrm.open(OUTPUT_FILE_NAME, std::ofstream::binary); in TEST_P()
235 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
239 ostrm.open(OUTPUT_FILE_NAME, std::ofstream::binary); in TEST_P()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
DRemoteCallTest.java130 scheduled.open(); in testCall_whenTimesOutBeforeCallbackIsCalled_returnsTimeOut()
149 RemoteCall remoteCall = new RemoteCall(callback -> scheduled.open(), 500); in testCall_whenTimesOutBeforeCancelIsCalled_returnsTimeOut()
167 scheduled.open(); in testCall_whenCallbackIsCalledBeforeTimeOut_returnsResult()
211 RemoteCall remoteCall = new RemoteCall(callback -> scheduled.open(), 1000); in testCall_whenCancelIsCalledBeforeTimeOutButAfterCall_returnsCancel()
243 scheduled.open(); in testExecute_whenTimesOutBeforeCallback_returnsTimeOut()

12345678910>>...24