/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 …]
|
D | ThemePreviewNavigationBar.java | 52 protected int getSidePadding(float sw) { in getSidePadding() argument 53 if (sw >= 600) { in getSidePadding() 56 return super.getSidePadding(sw); in getSidePadding()
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiDiagnosticsTest.java | 402 StringWriter sw = new StringWriter(); in dumpFetchesFates() local 403 PrintWriter pw = new PrintWriter(sw); in dumpFetchesFates() 417 StringWriter sw = new StringWriter(); in dumpSucceedsWhenNoFatesHaveNotBeenFetched() local 418 PrintWriter pw = new PrintWriter(sw); in dumpSucceedsWhenNoFatesHaveNotBeenFetched() 421 String fateDumpString = sw.toString(); in dumpSucceedsWhenNoFatesHaveNotBeenFetched() 441 StringWriter sw = new StringWriter(); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty() local 442 PrintWriter pw = new PrintWriter(sw); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty() 445 String fateDumpString = sw.toString(); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty() 485 StringWriter sw = new StringWriter(); in getDumpString() local 486 PrintWriter pw = new PrintWriter(sw); in getDumpString() [all …]
|
D | WifiCountryCodeTest.java | 206 StringWriter sw = new StringWriter(); in dumpDoesNotFail() local 207 PrintWriter pw = new PrintWriter(sw); in dumpDoesNotFail() 215 String dumpCountryCodeStr = sw.toString(); in dumpDoesNotFail()
|
D | LastMileLoggerTest.java | 261 StringWriter sw = new StringWriter(); in getDumpString() local 262 PrintWriter pw = new PrintWriter(sw); in getDumpString() 264 return sw.toString(); in getDumpString()
|
/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/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/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 219 StringWriter sw = new StringWriter(); in testAppUsageObserver_RemoveMissingObserver() 220 sw.write("Hit exception trying to remove nonexistent observer:\n"); in testAppUsageObserver_RemoveMissingObserver() 221 sw.write(e.toString()); in testAppUsageObserver_RemoveMissingObserver() 222 PrintWriter pw = new PrintWriter(sw); in testAppUsageObserver_RemoveMissingObserver() 224 sw.write("\nTest Failed!"); in testAppUsageObserver_RemoveMissingObserver() 225 fail(sw.toString()); in testAppUsageObserver_RemoveMissingObserver() 237 StringWriter sw = new StringWriter(); in testUsageSessionObserver_RemoveMissingObserver() 238 sw.write("Hit exception trying to remove nonexistent observer:"); in testUsageSessionObserver_RemoveMissingObserver() 239 sw.write(e.toString()); in testUsageSessionObserver_RemoveMissingObserver() 240 PrintWriter pw = new PrintWriter(sw); in testUsageSessionObserver_RemoveMissingObserver() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SeamlessRotator.java | 116 StringWriter sw = new StringWriter(); in toString() local 117 dump(new PrintWriter(sw)); in toString() 118 return "ForcedSeamlessRotator" + sw.toString(); in toString()
|
D | PolicyControl.java | 243 StringWriter sw = new StringWriter(); in toString() local 244 dump(new PrintWriter(sw, true)); in toString() 245 return sw.toString(); in toString()
|
/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/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/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 106 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 137 } else if (largest != 0 && sw > largest) { in CompatibilityInfo() 142 } else if (compat >= sw) { in CompatibilityInfo() 536 float sw = width/(float)newWidth; in computeCompatibleScaling() local 538 float scale = sw < sh ? sw : sh; in computeCompatibleScaling()
|
/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/util/ |
D | DumpUtils.java | 64 final StringWriter sw = new StringWriter(); in dumpAsync() local 68 PrintWriter lpw = new FastPrintWriter(sw); in dumpAsync() 73 pw.print(sw.toString()); in dumpAsync()
|
/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()
|
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()
|
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()
|
/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/core/java/android/util/ |
D | Log.java | 360 StringWriter sw = new StringWriter(); in getStackTraceString() local 361 PrintWriter pw = new FastPrintWriter(sw, false, 256); in getStackTraceString() 364 return sw.toString(); in getStackTraceString()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | ViewMatrix.java | 196 double sw = mScreenDim[0] / 2 - 0.5; in calcMatrix() local 199 m[3] = mEyePoint[0] - (m[0] * sw + m[1] * sh + m[2] * sz); in calcMatrix() 200 m[7] = mEyePoint[1] - (m[4] * sw + m[5] * sh + m[6] * sz); in calcMatrix() 201 m[11] = mEyePoint[2] - (m[8] * sw + m[9] * sh + m[10] * sz); in calcMatrix()
|