/aosp14/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
H A D | MyContentCaptureService.java | 55 final ServiceWatcher sw = sServiceWatcher; in clearServiceWatcher() local 56 if (sw != null) { in clearServiceWatcher() 57 if (sw.mReadyToClear) { in clearServiceWatcher() 58 sw.mService = null; in clearServiceWatcher() 61 sw.mReadyToClear = true; in clearServiceWatcher() 87 final ServiceWatcher sw = sServiceWatcher; in onDisconnected() local 88 Log.i(TAG, "onDisconnected: sServiceWatcher=" + sw); in onDisconnected() 89 if (sw == null) { in onDisconnected() 93 if (sw.mService == null) { in onDisconnected() 94 Log.e(TAG, "onDisconnected(): no service on " + sw); in onDisconnected() [all …]
|
/aosp14/frameworks/base/core/jni/android/opengl/ |
H A D | poly_clip.cpp | 71 tu = sign*COORD(u, index) - u->sw*k; in poly_clip_to_halfspace() 75 tv = sign*COORD(v, index) - v->sw*k; in poly_clip_to_halfspace() 115 float sw = v->sw; in poly_clip_to_frustum() local 116 if (v->sx < -sw) x0out++; /* out on left */ in poly_clip_to_frustum() 117 if (v->sx > sw) x1out++; /* out on right */ in poly_clip_to_frustum() 118 if (v->sy < -sw) y0out++; /* out on top */ in poly_clip_to_frustum() 119 if (v->sy > sw) y1out++; /* out on bottom */ in poly_clip_to_frustum() 120 if (v->sz < -sw) z0out++; /* out on near */ in poly_clip_to_frustum() 121 if (v->sz > sw) z1out++; /* out on far */ in poly_clip_to_frustum()
|
H A D | poly.h | 35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member
|
/aosp14/frameworks/base/core/java/com/android/internal/logging/ |
H A D | AndroidHandler.java | 93 StringWriter sw = new StringWriter(); 94 PrintWriter pw = new FastPrintWriter(sw, false, 256); 95 sw.write(r.getMessage()); 96 sw.write("\n"); 99 return sw.toString();
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
H A D | DumpableDumperRule.java | 94 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { 96 String[] dump = sw.toString().split(System.lineSeparator());
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
H A D | ManualTimeZoneSuggestionTest.java | 71 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in testPrintCommandLineOpts() argument 73 assertTrue(sw.getBuffer().length() > 0); in testPrintCommandLineOpts()
|
H A D | TelephonyTimeZoneSuggestionTest.java | 171 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in testPrintCommandLineOpts() argument 173 assertTrue(sw.getBuffer().length() > 0); in testPrintCommandLineOpts()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
H A D | AppTimeLimitControllerTests.java | 239 StringWriter sw = new StringWriter(); in testAppUsageObserver_RemoveMissingObserver() 241 sw.write(e.toString()); in testAppUsageObserver_RemoveMissingObserver() 242 PrintWriter pw = new PrintWriter(sw); in testAppUsageObserver_RemoveMissingObserver() 244 sw.write("\nTest Failed!"); in testAppUsageObserver_RemoveMissingObserver() 245 fail(sw.toString()); in testAppUsageObserver_RemoveMissingObserver() 259 sw.write(e.toString()); in testUsageSessionObserver_RemoveMissingObserver() 262 sw.write("\nTest Failed!"); in testUsageSessionObserver_RemoveMissingObserver() 263 fail(sw.toString()); in testUsageSessionObserver_RemoveMissingObserver() 277 sw.write(e.toString()); in testAppUsageLimitObserver_RemoveMissingObserver() 280 sw.write("\nTest Failed!"); in testAppUsageLimitObserver_RemoveMissingObserver() [all …]
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 120 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 122 this(appInfo, screenLayout, sw, forceCompat, 1f); in CompatibilityInfo() 125 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 165 } else if (largest != 0 && sw > largest) { in CompatibilityInfo() 170 } else if (compat >= sw) { in CompatibilityInfo() 670 float sw = width/(float)newWidth; in computeCompatibleScaling() local 672 float scale = sw < sh ? sw : sh; in computeCompatibleScaling()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SeamlessRotator.java | 130 StringWriter sw = new StringWriter(); in toString() local 131 dump(new PrintWriter(sw)); in toString() 132 return "ForcedSeamlessRotator" + sw.toString(); in toString()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/component/ |
H A D | ParsedActivityUtils.java | 569 TypedArray sw = res.obtainAttributes(attrs, R.styleable.AndroidManifestLayout); in parseActivityWindowLayout() local 575 final int widthType = sw.getType(R.styleable.AndroidManifestLayout_defaultWidth); in parseActivityWindowLayout() 577 widthFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultWidth, 1, 1, in parseActivityWindowLayout() 580 width = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_defaultWidth, in parseActivityWindowLayout() 583 final int heightType = sw.getType(R.styleable.AndroidManifestLayout_defaultHeight); in parseActivityWindowLayout() 585 heightFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultHeight, 1, in parseActivityWindowLayout() 588 height = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_defaultHeight, in parseActivityWindowLayout() 591 int gravity = sw.getInt(R.styleable.AndroidManifestLayout_gravity, Gravity.CENTER); in parseActivityWindowLayout() 593 int minHeight = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_minHeight, in parseActivityWindowLayout() 596 sw.getNonConfigurationString( in parseActivityWindowLayout() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
H A D | WakeLockLogTest.java | 234 StringWriter sw = new StringWriter(); in dumpLog() local 235 PrintWriter pw = new PrintWriter(sw); in dumpLog() 237 return sw.toString(); in dumpLog()
|
H A D | ShutdownCheckPointsTest.java | 340 StringWriter sw = new StringWriter(); in dumpToString() local 341 PrintWriter pw = new PrintWriter(sw); in dumpToString() 343 return sw.toString(); in dumpToString()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
H A D | DumpsysTableLoggerTest.kt | 128 private fun logLines(sw: StringWriter): List<String> { 129 return sw.toString().split("\n").filter { it.isNotBlank() }
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelCpuUidBpfMapReaderTest.java | 162 StringWriter sw = new StringWriter(); in testConcurrent() local 163 PrintWriter pw = new PrintWriter(sw); in testConcurrent() 166 assertTrue("All Exceptions:\n" + sw.toString(), errs.isEmpty()); in testConcurrent()
|
H A D | KernelCpuProcStringReaderTest.java | 312 StringWriter sw = new StringWriter(); in testConcurrent() local 313 PrintWriter pw = new PrintWriter(sw); in testConcurrent() 316 assertTrue("All Exceptions:\n" + sw.toString(), errs.isEmpty()); in testConcurrent()
|
/aosp14/frameworks/base/ |
H A D | .gitignore | 4 *.sw*
|
/aosp14/frameworks/base/test-runner/src/junit/runner/ |
H A D | BaseTestRunner.java | 296 StringWriter sw= new StringWriter(); in getFilteredTrace() 297 PrintWriter pw= new PrintWriter(sw); in getFilteredTrace() 313 return sw.toString(); in getFilteredTrace()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsTimeBaseTest.java | 309 StringWriter sw = new StringWriter(); in testDump() local 310 PrintWriter pw = new PrintWriter(sw); in testDump() 323 Assert.assertEquals(CORRECT, sw.toString()); in testDump()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | Log.java | 386 StringWriter sw = new StringWriter(); in getStackTraceString() local 387 PrintWriter pw = new FastPrintWriter(sw, false, 256); in getStackTraceString() 390 return sw.toString(); in getStackTraceString()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | DumpUtils.java | 65 final StringWriter sw = new StringWriter(); in dumpAsync() local 69 PrintWriter lpw = new FastPrintWriter(sw); in dumpAsync() 74 pw.print(sw.toString()); in dumpAsync()
|
/aosp14/system/core/toolbox/ |
H A D | getevent.c | 642 uint16_t sw; in getevent_main() local 643 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw); in getevent_main() 648 sw &= get_switch; in getevent_main() 649 printf("%04x%s", sw, newline); in getevent_main()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | ProcessCpuTracker.java | 824 StringWriter sw = new StringWriter(); 825 PrintWriter pw = new FastPrintWriter(sw, false, 128); 833 return sw.toString(); 853 StringWriter sw = new StringWriter(); 854 PrintWriter pw = new FastPrintWriter(sw, false, 1024); 912 return sw.toString();
|
/aosp14/frameworks/base/telephony/java/android/service/euicc/ |
H A D | EuiccService.java | 1065 final StringWriter sw = new StringWriter(); in dump() 1066 final PrintWriter pw = new PrintWriter(sw); in dump() 1068 callback.onComplete(sw.toString()); in dump()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ApplicationErrorReport.java | 358 StringWriter sw = new StringWriter(); in CrashInfo() local 359 PrintWriter pw = new FastPrintWriter(sw, false, 256); in CrashInfo() 362 stackTrace = sanitizeString(sw.toString()); in CrashInfo()
|