Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/idmap/
Dscan.cpp41 FILE* fout = fopen(filename, "a"); in writePackagesList() local
42 if (fout == NULL) { in writePackagesList()
46 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList()
47 fclose(fout); in writePackagesList()
51 if (TEMP_FAILURE_RETRY(ftruncate(fileno(fout), 0)) != 0) { in writePackagesList()
52 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
53 fclose(fout); in writePackagesList()
59 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
62 TEMP_FAILURE_RETRY(fflush(fout)); in writePackagesList()
63 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
[all …]
/frameworks/base/services/core/java/com/android/server/
DGraphicsStatsService.java168 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
173 fout.print("Package: "); in dump()
174 fout.print(buffer.mPackageName); in dump()
175 fout.flush(); in dump()
180 fout.println("Failed to dump"); in dump()
182 fout.println(); in dump()
186 fout.print("Package: "); in dump()
187 fout.print(buffer.mPackageName); in dump()
188 fout.flush(); in dump()
190 fout.println(); in dump()
DCountryDetectorService.java210 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
215 final Printer p = new PrintWriterPrinter(fout); in dump()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2325 final IndentingPrintWriter fout = new IndentingPrintWriter(writer, " "); in dump() local
2345 fout.println("Cleared snooze timestamps"); in dump()
2349 fout.print("System ready: "); fout.println(mSystemReady); in dump()
2350 fout.print("Restrict background: "); fout.println(mRestrictBackground); in dump()
2351 fout.print("Restrict power: "); fout.println(mRestrictPower); in dump()
2352 fout.print("Device idle: "); fout.println(mDeviceIdleMode); in dump()
2353 fout.println("Network policies:"); in dump()
2354 fout.increaseIndent(); in dump()
2356 fout.println(mNetworkPolicy.valueAt(i).toString()); in dump()
2358 fout.decreaseIndent(); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java747 protected void dump(FileDescriptor fd, final PrintWriter fout, String[] args) {
751 fout.println("disabled because the system is in safe mode.");
755 fout.println("disabled because the third-party apps can't run yet.");
762 fout.println("Trust manager state:");
764 dumpUser(fout, user, user.id == mCurrentUser);
770 private void dumpUser(PrintWriter fout, UserInfo user, boolean isCurrent) {
771 fout.printf(" User \"%s\" (id=%d, flags=%#x)",
774 fout.println("(managed profile)");
775 fout.println(" disabled because switching to this user is not possible.");
779 fout.print(" (current)");
[all …]
/frameworks/rs/java/tests/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;
Dfisheye_approx_f.rsh58 const float4 fout = rsSample(in_alloc, sampler, new_coord);
59 return fout;
/frameworks/base/packages/Keyguard/scripts/
Dnew_merge.py136 fout = open(outFile, "w")
144 fout.write(line.replace(replace, withText))
146 fout.write(line)
148 fout.close()
/frameworks/rs/java/tests/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);
Dfisheye_approx.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
Dfisheye.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
/frameworks/rs/java/tests/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);
Dfisheye_approx.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
Dfisheye.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
/frameworks/rs/java/tests/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);
Dfisheye.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
Dfisheye_approx.rsh55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
56 return rsPackColorTo8888(fout);
/frameworks/base/core/java/android/os/
DBinder.java393 FileOutputStream fout = new FileOutputStream(fd); in dump() local
394 PrintWriter pw = new FastPrintWriter(fout); in dump()
432 final FileOutputStream fout = new FileOutputStream(fd); in dumpAsync() local
433 final PrintWriter pw = new FastPrintWriter(fout); in dumpAsync()
454 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
481 FileOutputStream fout = new FileOutputStream(err != null ? err : out); in onShellCommand() local
482 PrintWriter pw = new FastPrintWriter(fout); in onShellCommand()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp317 float4 *fout = (float4 *)buf; in kernelU4() local
321 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU4()
325 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU4()
326 fout++; in kernelU4()
383 float *fout = (float *)buf; in kernelU1() local
387 OneVFU1(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU1()
391 OneVU1(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU1()
392 fout++; in kernelU1()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodWrapper.java219 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
227 fout.println("Permission Denial: can't dump InputMethodManager from from pid=" in dump()
235 fd, fout, args, latch)); in dump()
238 fout.println("Timeout waiting for dump"); in dump()
241 fout.println("Interrupted waiting for dump"); in dump()
/frameworks/base/tools/aapt2/link/
DLink.cpp741 std::ofstream fout(outPath, std::ofstream::binary); in writeJavaFile() local
742 if (!fout) { in writeJavaFile()
749 if (!generator.generate(packageNameToGenerate, outPackage, &fout)) { in writeJavaFile()
754 if (!fout) { in writeJavaFile()
799 std::ofstream fout(outPath, std::ofstream::binary); in writeManifestJavaFile() local
800 if (!fout) { in writeManifestJavaFile()
806 if (!ClassDefinition::writeJavaFile(manifestClass.get(), packageUtf8, true, &fout)) { in writeManifestJavaFile()
820 std::ofstream fout(outPath, std::ofstream::binary); in writeProguardFile() local
821 if (!fout) { in writeProguardFile()
827 proguard::writeKeepSet(&fout, keepSet); in writeProguardFile()
[all …]

12