/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
H A D | FileUtil.java | 44 FileOutputStream fos = new FileOutputStream(file); 45 fos.write(sDateFormat.format(new Date()).getBytes()); 46 fos.write('\n'); 47 fos.flush(); 48 fos.close();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | LeakDetectorTest.java | 111 FileOutputStream fos = new FileOutputStream("/dev/null"); 112 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); 127 FileOutputStream fos = new FileOutputStream("/dev/null"); 128 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]);
|
/frameworks/base/keystore/java/android/security/ |
H A D | SystemKeyStore.java | 92 FileOutputStream fos = new FileOutputStream(keyFile); 93 fos.write(retKey); 94 fos.flush(); 95 FileUtils.sync(fos); 96 fos.close();
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsXml.java | 79 FileOutputStream fos = file.startWrite(); 81 write(fos, stats); 82 file.finishWrite(fos); 83 fos = null; 85 // When fos is null (successful write), this will no-op 86 file.failWrite(fos);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
H A D | BackupPasswordManagerTest.java | 200 FileOutputStream fos = null; 205 fos = new FileOutputStream(passwordHash); 206 dos = new DataOutputStream(fos); 213 if (fos != null) fos.close(); 218 FileOutputStream fos = null; 223 fos = new FileOutputStream(passwordVersion); 224 dos = new DataOutputStream(fos); 229 if (fos != null) fos [all...] |
H A D | DataChangedJournalTest.java | 68 FileInputStream fos = new FileInputStream(mFile); 69 DataInputStream dos = new DataInputStream(fos);
|
H A D | ProcessedPackagesJournalTest.java | 158 try (FileOutputStream fos = new FileOutputStream(journal); 159 DataOutputStream dos = new DataOutputStream(fos)) {
|
/frameworks/support/room/migration/src/main/java/androidx/room/migration/bundle/ |
H A D | SchemaBundle.java | 89 FileOutputStream fos = new FileOutputStream(file, false); 90 OutputStreamWriter osw = new OutputStreamWriter(fos, CHARSET); 95 safeClose(fos);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestHelper.java | 68 FileOutputStream fos = null; 72 fos = new FileOutputStream(String.format("%s/%s/%s-%d.jpg", 75 fos.write(data); 82 if (fos != null) { 83 fos.close();
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | AtomicFile.java | 124 FileOutputStream fos = new FileOutputStream(mBaseName); 125 FileUtils.sync(fos); 126 fos.close();
|
H A D | TransferPipe.java | 250 final OutputStream fos; 259 fos = getNewOutputStream(); 274 fos.write(buffer, 0, size); 280 fos.write(buffer, start, i-start); 284 fos.write(bufferPrefix); 296 fos.write(buffer, start, size-start);
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/ |
H A D | DataBindingBuilder.java | 165 FileOutputStream fos = null; 167 fos = new FileOutputStream(f); 168 IOUtils.write(contents, fos); 172 IOUtils.closeQuietly(fos);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotPersister.java | 325 FileOutputStream fos = null; 327 fos = atomicFile.startWrite(); 328 fos.write(bytes); 329 atomicFile.finishWrite(fos); 331 atomicFile.failWrite(fos); 368 FileOutputStream fos = new FileOutputStream(file); 369 swBitmap.compress(JPEG, QUALITY, fos); 370 fos.close();
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | SystemUpdateManagerService.java | 215 FileOutputStream fos = null; 217 fos = mFile.startWrite(); 220 out.setOutput(fos, StandardCharsets.UTF_8.name()); 228 mFile.finishWrite(fos); 232 if (fos != null) { 233 mFile.failWrite(fos);
|
/frameworks/base/core/java/android/util/ |
H A D | AtomicFile.java | 192 FileOutputStream fos = new FileOutputStream(mBaseName); 193 FileUtils.sync(fos); 194 fos.close();
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | BandwidthTestUtil.java | 108 FileOutputStream fos = new FileOutputStream(file); 109 fos.write(baf.toByteArray()); 110 fos.close();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | LeakReporter.java | 73 try (FileOutputStream fos = new FileOutputStream(dumpFile)) { 74 PrintWriter w = new PrintWriter(fos); 78 mLeakDetector.dump(fos.getFD(), w, new String[0]);
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
H A D | PackageStatusStorage.java | 315 FileOutputStream fos = null; 317 fos = mPackageStatusFile.startWrite(); 319 serializer.setOutput(fos, StandardCharsets.UTF_8.name()); 338 mPackageStatusFile.finishWrite(fos); 340 if (fos != null) { 341 mPackageStatusFile.failWrite(fos);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | FontFallbackSetup.java | 69 try (FileOutputStream fos = new FileOutputStream(testFontsXml)) { 70 fos.write(mXml.getBytes(Charset.forName("UTF-8")));
|
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/ |
H A D | MockFontProvider.java | 244 FileOutputStream fos = null; 246 fos = new FileOutputStream(file, false); 250 fos.write(buffer, 0, readLen); 253 if (fos != null) { 254 fos.close();
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppWarnings.java | 472 FileOutputStream fos = null; 474 fos = mConfigFile.startWrite(); 477 out.setOutput(fos, StandardCharsets.UTF_8.name()); 497 mConfigFile.finishWrite(fos); 500 if (fos != null) { 501 mConfigFile.failWrite(fos);
|
H A D | CompatModePackages.java | 387 FileOutputStream fos = null; 390 fos = mFile.startWrite(); 392 out.setOutput(fos, StandardCharsets.UTF_8.name()); 434 mFile.finishWrite(fos); 437 if (fos != null) { 438 mFile.failWrite(fos);
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 1159 FileOutputStream fos = null; 1162 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); 1163 copyStreamToWallpaperFile(resources.openRawResource(resid), fos); 1166 fos.close(); 1171 IoUtils.closeQuietly(fos); 1286 FileOutputStream fos = null; 1288 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); 1289 fullImage.compress(Bitmap.CompressFormat.PNG, 90, fos); 1290 fos.close(); 1293 IoUtils.closeQuietly(fos); 1334 copyStreamToWallpaperFile(InputStream data, FileOutputStream fos) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | LocalSocketImpl.java | 39 private SocketOutputStream fos; field in class:LocalSocketImpl 377 if (fos == null) { 378 fos = new SocketOutputStream(); 381 return fos;
|
/frameworks/base/test-runner/src/junit/runner/ |
H A D | BaseTestRunner.java | 57 FileOutputStream fos= new FileOutputStream(getPreferencesFile()); 59 getPreferences().store(fos, ""); 61 fos.close();
|