/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuProcStringReaderTest.java | 100 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() method 106 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadErrorsLimit() method 109 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() method 115 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() method 120 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadErrorsLimit() method 123 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() method 141 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadLine() method 144 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLine() method 175 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testMultipleRead() method 179 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testMultipleRead() method [all …]
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 78 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnCreate() method 95 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnCreate_Finished() method 113 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnStart() method 131 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnStart_Finished() method 150 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnResume() method 169 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnPause() method 189 try (ClientMockSession clientSession = new ClientMockSession()) { in testWindowVisibilityChange_OnStop() method 210 try (ClientMockSession clientSession = new ClientMockSession()) { in testLifecycleAfterFinished_OnCreate() method 237 try (ClientMockSession clientSession = new ClientMockSession()) { in testLifecycleAfterFinished_OnStart() method 262 try (ClientMockSession clientSession = new ClientMockSession()) { in testLifecycleAfterFinished_OnResume() method
|
/frameworks/base/core/java/android/content/ |
D | LoggingContentInterface.java | 95 try (Logger l = new Logger("query", uri, projection, queryArgs, cancellationSignal)) { in query() method 107 try (Logger l = new Logger("getType", uri)) { in getType() method 120 try (Logger l = new Logger("getStreamTypes", uri, mimeTypeFilter)) { in getStreamTypes() method 132 try (Logger l = new Logger("canonicalize", uri)) { in canonicalize() method 144 try (Logger l = new Logger("uncanonicalize", uri)) { in uncanonicalize() method 157 try (Logger l = new Logger("refresh", uri, args, cancellationSignal)) { in refresh() method 170 try (Logger l = new Logger("insert", uri, initialValues)) { in insert() method 183 try (Logger l = new Logger("bulkInsert", uri, initialValues)) { in bulkInsert() method 196 try (Logger l = new Logger("delete", uri, selection, selectionArgs)) { in delete() method 209 try (Logger l = new Logger("update", uri, values, selection, selectionArgs)) { in update() method [all …]
|
/frameworks/base/core/tests/benchmarks/src/android/os/ |
D | FileUtilsBenchmark.java | 48 try (FileOutputStream os = new FileOutputStream(mSrc)) { in setUp() method 55 try (FileInputStream in = new FileInputStream(mSrc); in timeRegularUserspace() method 64 try (FileInputStream in = new FileInputStream(mSrc); in timeRegularSendfile() method 73 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceUserspace() method 82 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceSplice() method 91 try (FileInputStream in = new FileInputStream(mSrc); in timePipeSinkUserspace() method 100 try (FileInputStream in = new FileInputStream(mSrc); in timePipeSinkSplice() method
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 153 try (final Cursor cursor = mProvider.queryRoots(columns)) { in testOpenDeviceOnDemand() method 164 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, (String) null)) {} in testOpenDeviceOnDemand() method 497 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, (String) null)) { in testQueryChildDocuments_documentError() method 561 try (final ParcelFileDescriptor fd = mProvider.openDocument("3", "r", null)) { in testOpenDocument() method 599 try (final ParcelFileDescriptor fd = mProvider.openDocument("3", "r", null)) { in testOpenDocument_shortBytes() method 613 try (ParcelFileDescriptor.AutoCloseOutputStream stream = in testOpenDocument_writing() method 621 try (ParcelFileDescriptor.AutoCloseInputStream stream = in testOpenDocument_writing() method 646 try (final Cursor cursor = mProvider.queryRoots(null)) { in testBusyDevice() method 650 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, (String) null)) { in testBusyDevice() method 667 try (final Cursor cursor = mProvider.queryRoots(null)) { in testLockedDevice() method [all …]
|
D | MtpDatabaseTest.java | 280 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() method 297 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() method 313 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() method 627 try (final Cursor cursor = mDatabase.queryRoots(resources, rootColumns)) { in testClearMtpIdentifierBeforeResolveRootDocuments() method 767 try (final Cursor oldCursor = in testFailToReplaceExisitingUnmappedRoots() method 785 try (final Cursor newCursor = mDatabase.queryChildDocuments( in testFailToReplaceExisitingUnmappedRoots() method 964 try (final Cursor cursor = mDatabase.queryRoots(resources, columns)) { in testGetClosedDevice() method 986 try (final Cursor cursor = in testMappingWithoutKey() method 1011 try (final Cursor cursor = in testMappingFailsWithoutKey() method 1073 try (final Cursor cursor = mDatabase.queryChildDocuments( in testCleanDatabase() method [all …]
|
D | DocumentLoaderTest.java | 118 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectHandles() method 139 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectInfo() method 154 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask() method 171 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask() method
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 139 try (FileInputStream in = new FileInputStream(src); in testCopy_FileToFile() method 159 try (FileInputStream in = new FileInputStream(src); in testCopy_FileToPipe() method 178 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToFile() method 195 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToPipe() method 216 try (MemoryPipe in = MemoryPipe.createSource(source); in testCopy_ShortPipeToFile() method 587 try (FileOutputStream out = new FileOutputStream(file)) { in writeFile() method 593 try (FileInputStream in = new FileInputStream(file); in readFile() method
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsStateTest.java | 66 try (final InsetsModeSession session = in testCalculateInsets() method 86 try (final InsetsModeSession session = in testCalculateInsets_imeAndNav() method 105 try (final InsetsModeSession session = in testCalculateInsets_navRightStatusTop() method
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | RandomAccessFileUtils.java | 36 try (RandomAccessFile af = getRandomAccessFile(file)) { in writeBoolean() method 45 try (RandomAccessFile af = getRandomAccessFile(file)) { in readBoolean() method
|
D | DataStreamFileCodec.java | 54 try ( in deserialize() method 69 try ( in serialize() method
|
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/ |
D | DexMetadataHelperTest.java | 83 try (FileOutputStream fos = new FileOutputStream(dmFile)) { in createDexMetadataFile() method 84 try (ZipOutputStream zipOs = new ZipOutputStream(fos)) { in createDexMetadataFile() method 95 try (InputStream is = context.getResources().openRawResource(apkResourceId)) { in copyApkToToTmpDir() method 225 try (FileInputStream is = new FileInputStream(base)) { in testPackageSizeWithPartialPackageLite() method
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
D | SQLiteDatabasePerfTest.java | 84 try (Cursor cursor = mDatabase.rawQuery("SELECT _ID, COL_A, COL_B, COL_C FROM T1 " in testSelect() method 104 try (Cursor cursor = mDatabase.rawQuery("SELECT _ID, COL_A, COL_B, COL_C FROM T1 " in testSelectMultipleRows() method 129 try (Cursor cursor = mDatabase in testCursorIterateForward() method 152 try (Cursor cursor = mDatabase in testCursorIterateBackwards() method 181 try (Cursor cursor = mDatabase.rawQuery( in testInnerJoin() method
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuUidTimeReader.java | 203 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() method 241 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() method 282 try (FileWriter writer = new FileWriter(REMOVE_UID_PROC_FILE)) { in removeUidsFromKernelModule() method 374 try (BufferedReader reader = Files.newBufferedReader(mProcFilePath)) { in readFreqs() method 427 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() method 467 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() method 557 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() method 586 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() method 677 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() method 716 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() method
|
D | KernelCpuSpeedReader.java | 68 try (BufferedReader reader = new BufferedReader(new FileReader(mProcFile))) { in readDelta() method 103 try (BufferedReader reader = new BufferedReader(new FileReader(mProcFile))) { in readAbsolute() method
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | ConfigurationProcessor.java | 40 try (InputStreamReader confReader = new InputStreamReader(xml)) { in processExcludedDeviceNames() method 92 try (InputStreamReader confReader = new InputStreamReader(xml)) { in processInputPortAssociations() method
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerFilePersistedSettings.java | 46 try (FileInputStream fin = new FileInputStream(enableFile)) { in readBackupEnableState() method 64 try (FileOutputStream fout = new FileOutputStream(stage)) { in writeBackupEnableState() method
|
D | ProcessedPackagesJournal.java | 96 try (RandomAccessFile out = new RandomAccessFile(journalFile, "rws")) { in addPackage() method 135 try (DataInputStream oldJournal = new DataInputStream( in loadFromDisk() method
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | FontFileUtilTest.java | 64 try (InputStream is = am.open(path)) { in mmap() method 78 try (FileInputStream fis = new FileInputStream(file)) { in mmap() method 87 try (FileOutputStream os = new FileOutputStream(file, false)) { in copyToFile() method
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutDumpFiles.java | 60 try (PrintWriter pw = new PrintWriter(new BufferedOutputStream( in save() method 93 try (BufferedReader reader = new BufferedReader(new InputStreamReader( in dumpAll() method
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureSchemeV2Verifier.java | 92 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature() method 131 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() method 401 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash() method 411 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity() method 420 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerityRootHash() method
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | RcsMessageStoreUtil.java | 42 try (Cursor cursor = getValueFromTableRow(tableUri, valueColumn, idColumn, idValue)) { in getIntValueFromTableRow() method 54 try (Cursor cursor = getValueFromTableRow(tableUri, valueColumn, idColumn, idValue)) { in getLongValueFromTableRow() method 66 try (Cursor cursor = getValueFromTableRow(tableUri, valueColumn, idColumn, idValue)) { in getDoubleValueFromTableRow() method 78 try (Cursor cursor = getValueFromTableRow(tableUri, valueColumn, idColumn, idValue)) { in getStringValueFromTableRow() method 90 try (Cursor cursor = getValueFromTableRow(tableUri, valueColumn, idColumn, idValue)) { in getUriValueFromTableRow() method
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | CheckToken.java | 47 try (DataOutputStream dos = new DataOutputStream(baos)) { in toByteArray() method 59 try (DataInputStream dis = new DataInputStream(bais)) { in fromByteArray() method
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | CertificateMonitor.java | 90 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert() method 102 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts() method 116 try (KeyChainConnection conn = mInjector.keyChainBindAsUser(userHandle)) { in getInstalledCaCertificates() method
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FastXmlSerializerTest.java | 67 try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in checkPreserved() method 90 try (final ByteArrayInputStream baos = new ByteArrayInputStream(data)) { in checkPreserved() method
|