Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/cmds/idmap/
Dscan.cpp42 FILE* fout = fopen(filename, "a"); in writePackagesList() local
43 if (fout == NULL) { in writePackagesList()
47 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList()
48 fclose(fout); in writePackagesList()
52 if (TEMP_FAILURE_RETRY(ftruncate(fileno(fout), 0)) != 0) { in writePackagesList()
53 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
54 fclose(fout); in writePackagesList()
60 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
63 TEMP_FAILURE_RETRY(fflush(fout)); in writePackagesList()
64 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp109 std::ofstream fout(idmap_path); in Create() local
110 if (fout.fail()) { in Create()
113 BinaryStreamVisitor visitor(fout); in Create()
115 fout.close(); in Create()
116 if (fout.fail()) { in Create()
/frameworks/av/media/libeffects/downmix/tests/
Ddownmixtest.cpp114 FILE *fout) { in DownmixExecute() argument
162 fout); in DownmixExecute()
170 FILE *fout) { in DowmixMainProcess() argument
191 err = DownmixExecute(pDescriptor, finp, fout); in DowmixMainProcess()
290 FILE *fout = fopen(outfile, "wb"); in main() local
291 if (fout == nullptr) { in main()
297 const int err = DowmixMainProcess(&descriptor, finp, fout); in main()
300 fclose(fout); in main()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java3404 final IndentingPrintWriter fout = new IndentingPrintWriter(writer, " "); in dump()
3420 fout.println("Cleared snooze timestamps"); in dump()
3424 fout.print("System ready: "); fout.println(mSystemReady); in dump()
3425 fout.print("Restrict background: "); fout.println(mRestrictBackground); in dump()
3426 fout.print("Restrict power: "); fout.println(mRestrictPower); in dump()
3427 fout.print("Device idle: "); fout.println(mDeviceIdleMode); in dump()
3428 fout.print("Metered ifaces: "); fout.println(String.valueOf(mMeteredIfaces)); in dump()
3430 fout.println(); in dump()
3431 fout.println("Network policies:"); in dump()
3432 fout.increaseIndent(); in dump()
[all …]
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp147 std::ofstream fout(idmap_path); in createIdmap() local
148 if (fout.fail()) { in createIdmap()
151 BinaryStreamVisitor visitor(fout); in createIdmap()
153 fout.close(); in createIdmap()
154 if (fout.fail()) { in createIdmap()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java1161 protected void dump(FileDescriptor fd, final PrintWriter fout, String[] args) {
1162 if (!DumpUtils.checkDumpPermission(mContext, TAG, fout)) return;
1164 fout.println("disabled because the system is in safe mode.");
1168 fout.println("disabled because the third-party apps can't run yet.");
1175 fout.println("Trust manager state:");
1177 dumpUser(fout, user, user.id == mCurrentUser);
1183 private void dumpUser(PrintWriter fout, UserInfo user, boolean isCurrent) {
1184 fout.printf(" User \"%s\" (id=%d, flags=%#x)",
1187 fout.println("(managed profile)");
1188 fout.println(" disabled because switching to this user is not possible.");
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerFilePersistedSettings.java64 try (FileOutputStream fout = new FileOutputStream(stage)) { in writeBackupEnableState() argument
65 fout.write(enable ? 1 : 0); in writeBackupEnableState()
66 fout.close(); in writeBackupEnableState()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dvignette_approx_f.rsh53 float4 fout;
54 fout.rgb = in.rgb * lumen;
55 fout.w = in.w;
56 return fout;
Dvignette_f.rsh53 float4 fout;
54 fout.rgb = in.rgb * lumen;
55 fout.w = in.w;
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dvignette.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
Dvignette_approx.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dvignette_approx.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
Dvignette.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dvignette_approx.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
Dvignette.rsh54 float4 fout;
55 fout.rgb = fin.rgb * lumen;
56 fout.w = fin.w;
57 return convert_uchar4(fout);
/frameworks/base/packages/SystemUI/scripts/
Dnew_merge.py136 fout = open(outFile, "w")
144 fout.write(line.replace(replace, withText))
146 fout.write(line)
148 fout.close()
/frameworks/base/services/core/java/com/android/server/notification/
DPulledStats.java55 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream( in toParcelFileDescriptor()
57 final ProtoOutputStream proto = new ProtoOutputStream(fout); in toParcelFileDescriptor()
60 fout.close(); in toParcelFileDescriptor()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp325 float4 *fout = (float4 *)buf; in kernelU4() local
329 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU4()
333 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU4()
334 fout++; in kernelU4()
391 float *fout = (float *)buf; in kernelU1() local
395 OneVFU1(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU1()
399 OneVU1(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU1()
400 fout++; in kernelU1()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp654 io::FileOutputStream fout(id_map_path); in WriteStableIdMapToPath() local
655 if (fout.HadError()) { in WriteStableIdMapToPath()
656 diag->Error(DiagMessage(id_map_path) << "failed to open: " << fout.GetError()); in WriteStableIdMapToPath()
660 text::Printer printer(&fout); in WriteStableIdMapToPath()
668 fout.Flush(); in WriteStableIdMapToPath()
670 if (fout.HadError()) { in WriteStableIdMapToPath()
671 diag->Error(DiagMessage(id_map_path) << "failed writing to file: " << fout.GetError()); in WriteStableIdMapToPath()
1084 std::unique_ptr<io::FileOutputStream> fout; local
1096 fout = util::make_unique<io::FileOutputStream>(out_path);
1097 if (fout->HadError()) {
[all …]
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp466 FILE* fout = fdopen(out, "w"); in onTransact() local
469 if (fin == NULL || fout == NULL || ferr == NULL) { in onTransact()
472 err = command(fin, fout, ferr, args); in onTransact()
480 if (fout != NULL) { in onTransact()
481 fflush(fout); in onTransact()
482 fclose(fout); in onTransact()
484 if (fout != NULL) { in onTransact()
/frameworks/base/core/java/android/os/
DBinder.java822 FileOutputStream fout = new FileOutputStream(fd); in dump() local
823 PrintWriter pw = new FastPrintWriter(fout); in dump()
858 final FileOutputStream fout = new FileOutputStream(fd); in dumpAsync() local
859 final PrintWriter pw = new FastPrintWriter(fout); in dumpAsync()
880 protected void dump(@NonNull FileDescriptor fd, @NonNull PrintWriter fout, in dump() argument
913 FileOutputStream fout = new FileOutputStream(err != null ? err : out); in onShellCommand() local
914 PrintWriter pw = new FastPrintWriter(fout); in onShellCommand()
/frameworks/base/tools/aapt2/
DMain.cpp168 aapt::io::FileOutputStream fout(STDOUT_FILENO, kStdOutBufferSize); in MainImpl() local
169 aapt::text::Printer printer(&fout); in MainImpl()
176 aapt::util::make_unique<aapt::DaemonCommand>(&fout, &diagnostics)); in MainImpl()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodWrapper.java234 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
242 fout.println("Permission Denial: can't dump InputMethodManager from from pid=" in dump()
250 fd, fout, args, latch)); in dump()
253 fout.println("Timeout waiting for dump"); in dump()
256 fout.println("Interrupted waiting for dump"); in dump()
/frameworks/base/services/core/java/com/android/server/
DCountryDetectorService.java242 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
243 if (!DumpUtils.checkDumpPermission(mContext, TAG, fout)) return; in dump()
246 final Printer p = new PrintWriterPrinter(fout); in dump()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTracker.java526 public void dump(PrintWriter fout) { in dump() argument
527 fout.println("PackageTrackerState: " + toString()); in dump()
528 mPackageStatusStorage.dump(fout); in dump()

123