Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/idmap/
Dscan.cpp43 FILE* fout = fopen(filename, "a"); in writePackagesList() local
44 if (fout == NULL) { in writePackagesList()
48 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList()
49 fclose(fout); in writePackagesList()
53 if (TEMP_FAILURE_RETRY(ftruncate(fileno(fout), 0)) != 0) { in writePackagesList()
54 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
55 fclose(fout); in writePackagesList()
61 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
64 TEMP_FAILURE_RETRY(fflush(fout)); in writePackagesList()
65 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java859 protected void dump(FileDescriptor fd, final PrintWriter fout, String[] args) {
860 if (!DumpUtils.checkDumpPermission(mContext, TAG, fout)) return;
862 fout.println("disabled because the system is in safe mode.");
866 fout.println("disabled because the third-party apps can't run yet.");
873 fout.println("Trust manager state:");
875 dumpUser(fout, user, user.id == mCurrentUser);
881 private void dumpUser(PrintWriter fout, UserInfo user, boolean isCurrent) {
882 fout.printf(" User \"%s\" (id=%d, flags=%#x)",
885 fout.println("(managed profile)");
886 fout.println(" disabled because switching to this user is not possible.");
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2577 final IndentingPrintWriter fout = new IndentingPrintWriter(writer, " "); in dump()
2593 fout.println("Cleared snooze timestamps"); in dump()
2597 fout.print("System ready: "); fout.println(mSystemReady); in dump()
2598 fout.print("Restrict background: "); fout.println(mRestrictBackground); in dump()
2599 fout.print("Restrict power: "); fout.println(mRestrictPower); in dump()
2600 fout.print("Device idle: "); fout.println(mDeviceIdleMode); in dump()
2601 fout.println("Network policies:"); in dump()
2602 fout.increaseIndent(); in dump()
2604 fout.println(mNetworkPolicy.valueAt(i).toString()); in dump()
2606 fout.decreaseIndent(); in dump()
[all …]
/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;
Dfisheye_approx_f.rsh58 const float4 fout = rsSample(in_alloc, sampler, new_coord);
59 return 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);
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/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/rs/tests/java_api/ImageProcessing/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/rs/tests/java_api/ImageProcessing2/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/base/core/java/android/os/
DBinder.java499 FileOutputStream fout = new FileOutputStream(fd); in dump() local
500 PrintWriter pw = new FastPrintWriter(fout); in dump()
535 final FileOutputStream fout = new FileOutputStream(fd); in dumpAsync() local
536 final PrintWriter pw = new FastPrintWriter(fout); in dumpAsync()
557 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
586 FileOutputStream fout = new FileOutputStream(err != null ? err : out); in onShellCommand() local
587 PrintWriter pw = new FastPrintWriter(fout); in onShellCommand()
/frameworks/base/services/core/java/com/android/server/
DCountryDetectorService.java211 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
212 if (!DumpUtils.checkDumpPermission(mContext, TAG, fout)) return; in dump()
215 final Printer p = new PrintWriterPrinter(fout); in dump()
/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/core/java/android/inputmethodservice/
DIInputMethodWrapper.java209 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
217 fout.println("Permission Denial: can't dump InputMethodManager from from pid=" in dump()
225 fd, fout, args, latch)); in dump()
228 fout.println("Timeout waiting for dump"); in dump()
231 fout.println("Interrupted waiting for dump"); in dump()
/frameworks/base/services/core/java/com/android/server/accounts/
DIAccountAuthenticatorCache.java55 void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId); in dump() argument
/frameworks/base/tools/aapt2/cmd/
DLink.cpp612 std::ofstream fout(id_map_path, std::ofstream::binary); in WriteStableIdMapToPath() local
613 if (!fout) { in WriteStableIdMapToPath()
621 fout << name << " = " << id << "\n"; in WriteStableIdMapToPath()
624 if (!fout) { in WriteStableIdMapToPath()
933 std::ofstream fout(out_path, std::ofstream::binary); local
934 if (!fout) {
954 if (!generator.Generate(package_name_to_generate, out_package, &fout, fout_text.get())) {
959 if (!fout) {
1005 std::ofstream fout(out_path, std::ofstream::binary); in WriteManifestJavaFile() local
1006 if (!fout) { in WriteManifestJavaFile()
[all …]

12