Home
last modified time | relevance | path

Searched refs:sw (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java85 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 …]
DThemePreviewNavigationBar.java52 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/
Dpoly_clip.cpp71 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()
Dpoly.h35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiDiagnosticsTest.java402 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 …]
DWifiCountryCodeTest.java206 StringWriter sw = new StringWriter(); in dumpDoesNotFail() local
207 PrintWriter pw = new PrintWriter(sw); in dumpDoesNotFail()
215 String dumpCountryCodeStr = sw.toString(); in dumpDoesNotFail()
DLastMileLoggerTest.java261 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/
DAndroidHandler.java93 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/
DLog.java55 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/
DManualTimeZoneSuggestionTest.java71 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in testPrintCommandLineOpts() argument
73 assertTrue(sw.getBuffer().length() > 0); in testPrintCommandLineOpts()
DTelephonyTimeZoneSuggestionTest.java171 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/
DAppTimeLimitControllerTests.java219 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/
DSeamlessRotator.java116 StringWriter sw = new StringWriter(); in toString() local
117 dump(new PrintWriter(sw)); in toString()
118 return "ForcedSeamlessRotator" + sw.toString(); in toString()
DPolicyControl.java243 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/
DLog.java195 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/
DMainActivity.java95 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/
DCompatibilityInfo.java106 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/
DMainActivity.java95 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/
DDumpUtils.java64 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/
DKernelCpuUidBpfMapReaderTest.java162 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()
DBatteryStatsTimeBaseTest.java309 StringWriter sw = new StringWriter(); in testDump() local
310 PrintWriter pw = new PrintWriter(sw); in testDump()
323 Assert.assertEquals(CORRECT, sw.toString()); in testDump()
DKernelCpuProcStringReaderTest.java312 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/
DBaseTestRunner.java296 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/
DLog.java360 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/
DViewMatrix.java196 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()

123