/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 85 float sw = getShortestWidth(context); in setupNavBar() local 88 setSize(context, leftPadding, orientation, getSidePadding(sw)); in setupNavBar() 89 setSize(context, rightPadding, orientation, getSidePadding(sw)); in setupNavBar() 90 int navButtonWidth = getWidth(sw); in setupNavBar() 95 if (sw >= 600) { in setupNavBar() 112 protected int getSidePadding(float sw) { in getSidePadding() argument 113 if (sw >= 400) { in getSidePadding() 116 if (sw >= 360) { in getSidePadding() 122 private static int getWidth(float sw) { in getWidth() argument 123 if (sw >= 600) { in getWidth() [all …]
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
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 …]
|
/frameworks/base/core/jni/android/opengl/ |
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()
|
D | poly.h | 35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member
|
/frameworks/base/core/java/com/android/internal/logging/ |
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();
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | Log.java | 55 StringWriter sw = new StringWriter(); in exception() local 56 PrintWriter pw = new PrintWriter(sw); in exception() 59 error(format + "\n" + sw.toString(), args); in exception()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DumpableDumperRule.java | 94 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { 96 String[] dump = sw.toString().split(System.lineSeparator());
|
/frameworks/base/core/tests/timetests/src/android/app/timezonedetector/ |
D | ManualTimeZoneSuggestionTest.java | 79 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in testPrintCommandLineOpts() argument 81 assertTrue(sw.getBuffer().length() > 0); in testPrintCommandLineOpts()
|
D | TelephonyTimeZoneSuggestionTest.java | 179 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in testPrintCommandLineOpts() argument 181 assertTrue(sw.getBuffer().length() > 0); in testPrintCommandLineOpts()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 138 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 140 this(appInfo, screenLayout, sw, forceCompat, 1f); in CompatibilityInfo() 143 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 145 this(appInfo, screenLayout, sw, forceCompat, scaleFactor, scaleFactor); in CompatibilityInfo() 148 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 190 } else if (largest != 0 && sw > largest) { in CompatibilityInfo() 195 } else if (compat >= sw) { in CompatibilityInfo() 728 float sw = width/(float)newWidth; in computeCompatibleScaling() local 730 float scale = sw < sh ? sw : sh; in computeCompatibleScaling()
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | TimeUtilsTest.java | 117 final StringWriter sw = new StringWriter(); in runWithPrintWriter() local 118 consumer.accept(new PrintWriter(sw)); in runWithPrintWriter() 119 return sw.toString(); in runWithPrintWriter()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 239 StringWriter sw = new StringWriter(); in testAppUsageObserver_RemoveMissingObserver() 240 sw.write("Hit exception trying to remove nonexistent observer:\n"); 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() 257 StringWriter sw = new StringWriter(); in testUsageSessionObserver_RemoveMissingObserver() 258 sw.write("Hit exception trying to remove nonexistent observer:"); in testUsageSessionObserver_RemoveMissingObserver() 259 sw.write(e.toString()); in testUsageSessionObserver_RemoveMissingObserver() 260 PrintWriter pw = new PrintWriter(sw); in testUsageSessionObserver_RemoveMissingObserver() [all …]
|
/frameworks/multidex/library/test/src/android/util/ |
D | Log.java | 195 StringWriter sw = new StringWriter(); in getStackTraceString() local 196 PrintWriter pw = new PrintWriter(sw); in getStackTraceString() 199 return sw.toString(); in getStackTraceString()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
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()
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | MainActivity.java | 95 int sw = mImgView.getWidth(); in onCreate() 126 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih); in onCreate() 127 mXOffset = mDownXOffset + 2 * (dx / (sw - scale * iw)); in onCreate() 196 int sw = mImgView.getWidth(); in updateMatrix() local 203 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih); in updateMatrix() 204 mMatrix.postTranslate((1 + mXOffset) * (sw - iw * scale) / 2, in updateMatrix()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | MainActivity.java | 95 int sw = mImgView.getWidth(); in onCreate() 126 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih); in onCreate() 127 mXOffset = mDownXOffset + 2 * (dx / (sw - scale * iw)); in onCreate() 196 int sw = mImgView.getWidth(); in updateMatrix() local 203 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih); in updateMatrix() 204 mMatrix.postTranslate((1 + mXOffset) * (sw - iw * scale) / 2, in updateMatrix()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedActivityUtils.java | 576 TypedArray sw = res.obtainAttributes(attrs, R.styleable.AndroidManifestLayout); in parseActivityWindowLayout() local 582 final int widthType = sw.getType(R.styleable.AndroidManifestLayout_defaultWidth); in parseActivityWindowLayout() 584 widthFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultWidth, 1, 1, in parseActivityWindowLayout() 587 width = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_defaultWidth, in parseActivityWindowLayout() 590 final int heightType = sw.getType(R.styleable.AndroidManifestLayout_defaultHeight); in parseActivityWindowLayout() 592 heightFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultHeight, 1, in parseActivityWindowLayout() 595 height = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_defaultHeight, in parseActivityWindowLayout() 598 int gravity = sw.getInt(R.styleable.AndroidManifestLayout_gravity, Gravity.CENTER); in parseActivityWindowLayout() 599 int minWidth = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_minWidth, -1); in parseActivityWindowLayout() 600 int minHeight = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_minHeight, in parseActivityWindowLayout() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/base/viewmodel/ |
D | QSTileViewModelImplTest.kt | 111 val sw = StringWriter() in dumpWritesState() constant 112 PrintWriter(sw).use { underTest.dump(it, emptyArray()) } in dumpWritesState() 114 assertThat(sw.buffer.toString()) in dumpWritesState()
|
/frameworks/base/ |
D | .gitignore | 4 *.sw*
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
D | DumpsysTableLoggerTest.kt | 128 private fun logLines(sw: StringWriter): List<String> { in <lambda>() 129 return sw.toString().split("\n").filter { it.isNotBlank() } in <lambda>()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidBpfMapReaderTest.java | 170 StringWriter sw = new StringWriter(); in testConcurrent() local 171 PrintWriter pw = new PrintWriter(sw); in testConcurrent() 174 assertTrue("All Exceptions:\n" + sw.toString(), errs.isEmpty()); in testConcurrent()
|
/frameworks/base/test-junit/src/junit/runner/ |
D | BaseTestRunner.java | 296 StringWriter sw= new StringWriter(); in getFilteredTrace() 297 PrintWriter pw= new PrintWriter(sw); in getFilteredTrace() 313 return sw.toString(); in getFilteredTrace()
|
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/ |
D | AttestationVerificationPeerDeviceVerifierTest.kt | 234 val sw = StringWriter() in getDump() constant 235 this.dumpTo(IndentingPrintWriter(PrintWriter(sw), " ")) in getDump() 236 return sw.toString() in getDump()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
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()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | AggregatedPowerStats.java | 287 StringWriter sw = new StringWriter(); in toString() local 288 dump(new IndentingPrintWriter(sw)); in toString() 289 return sw.toString(); in toString()
|