/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/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | BpfDumpTest.java | 100 final StringWriter sw = new StringWriter(); in getDumpMap() local 101 BpfDump.dumpMap(map, new PrintWriter(sw), "mapName", "header", in getDumpMap() 103 return sw.toString(); in getDumpMap() 133 final StringWriter sw = new StringWriter(); in getDumpMapStatus() local 134 BpfDump.dumpMapStatus(map, new PrintWriter(sw), "mapName", "mapPath"); in getDumpMapStatus() 135 return sw.toString(); in getDumpMapStatus()
|
/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/core/tests/coretests/src/android/app/timezonedetector/ |
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()
|
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()
|
/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/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/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/base/core/java/android/content/res/ |
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()
|
/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/services/core/java/com/android/server/pm/pkg/component/ |
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() 592 int minWidth = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_minWidth, -1); in parseActivityWindowLayout() 593 int minHeight = sw.getDimensionPixelSize(R.styleable.AndroidManifestLayout_minHeight, in parseActivityWindowLayout() [all …]
|
/frameworks/base/ |
D | .gitignore | 4 *.sw*
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
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()
|
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()
|
/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 | 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()
|
/frameworks/base/test-runner/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/services/tests/servicestests/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/core/java/com/android/internal/util/ |
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()
|