/frameworks/data-binding/compilerCommon/src/test/java/android/databinding/tool/store/ |
D | LocationTest.java | 52 Location loc = new Location(1, 2, 3, 4); in testAbsolute() local 53 assertEquals(loc, loc.toAbsoluteLocation()); in testAbsolute() 58 Location loc = new Location(1, 2, 3, 4); in testAbsoluteWithInvalidParent() local 59 loc.setParentLocation(new Location()); in testAbsoluteWithInvalidParent() 60 assertEquals(loc, loc.toAbsoluteLocation()); in testAbsoluteWithInvalidParent() 65 Location loc = new Location(1, 2, 3, 4); in testAbsoluteWithParent() local 66 loc.setParentLocation(new Location(10, 0, 20, 0)); in testAbsoluteWithParent() 67 assertEquals(new Location(11, 2, 13, 4), loc.toAbsoluteLocation()); in testAbsoluteWithParent() 72 Location loc = new Location(1, 2, 3, 4); in testAbsoluteWith2Parents() local 75 loc.setParentLocation(parent1); in testAbsoluteWith2Parents() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | StaggeredGridDefault.java | 38 Location loc = getLocation(i); in getRowMax() local 39 edge += loc.offset; in getRowMax() 40 if (loc.row == rowIndex) { in getRowMax() 46 Location loc = getLocation(mLastVisibleIndex); in getRowMax() local 47 if (loc.row == rowIndex) { in getRowMax() 48 return edge + loc.size; in getRowMax() 51 edge -= loc.offset; in getRowMax() 52 loc = getLocation(i); in getRowMax() 53 if (loc.row == rowIndex) { in getRowMax() 54 return edge + loc.size; in getRowMax() [all …]
|
D | StaggeredGrid.java | 111 Location loc = mLocations.get(i); in debugPrint() local 112 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); in debugPrint() 170 Location loc = getLocation(itemIndex); in prependVisbleItemsWithCache() local 171 int rowIndex = loc.row; in prependVisbleItemsWithCache() 173 if (size != loc.size) { in prependVisbleItemsWithCache() 190 offset = loc.offset; in prependVisbleItemsWithCache() 209 Location loc = getLocation(cachedIndex); in calculateOffsetAfterLastItem() local 210 if (loc.row == row) { in calculateOffsetAfterLastItem() 251 Location loc = new Location(rowIndex, 0, 0); in prependVisibleItemToRow() local 252 mLocations.addFirst(loc); in prependVisibleItemToRow() [all …]
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 179 Location loc = new Location(""); in testAltitude() local 181 loc.setAltitude(1); in testAltitude() 183 assertEquals(message, loc.getAltitude(), 1, 0); in testAltitude() 185 assertTrue(message, loc.hasAltitude()); in testAltitude() 187 loc.removeAltitude(); in testAltitude() 189 assertFalse(message, loc.hasAltitude()); in testAltitude() 191 assertEquals(message, loc.getAltitude(), 0, 0); in testAltitude() 196 Location loc = new Location(""); in testSpeed() local 198 loc.setSpeed(1); in testSpeed() 200 assertEquals(message, loc.getSpeed(), 1, 0); in testSpeed() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | VisibilityPropagation.java | 50 int[] loc = new int[2]; in captureValues() local 51 view.getLocationOnScreen(loc); in captureValues() 52 loc[0] += Math.round(view.getTranslationX()); in captureValues() 53 loc[0] += view.getWidth() / 2; in captureValues() 54 loc[1] += Math.round(view.getTranslationY()); in captureValues() 55 loc[1] += view.getHeight() / 2; in captureValues() 56 values.values.put(PROPNAME_VIEW_CENTER, loc); in captureValues()
|
D | CircularPropagation.java | 81 int[] loc = new int[2]; in getStartDelay() local 82 sceneRoot.getLocationOnScreen(loc); in getStartDelay() 83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay() 85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
|
D | SidePropagation.java | 90 int[] loc = new int[2]; in getStartDelay() local 91 sceneRoot.getLocationOnScreen(loc); in getStartDelay() 92 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay() 93 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
|
D | Visibility.java | 134 int[] loc = new int[2]; in captureValues() local 135 transitionValues.view.getLocationOnScreen(loc); in captureValues() 136 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); in captureValues() 419 int[] loc = new int[2]; in onDisappear() local 420 sceneRoot.getLocationOnScreen(loc); in onDisappear() 421 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear() 422 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop()); in onDisappear()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | NinePatch_Delegate.java | 173 /*package*/ static void nativeDraw(long canvas_instance, RectF loc, Bitmap bitmap_instance, in nativeDraw() argument 176 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, in nativeDraw() 182 /*package*/ static void nativeDraw(long canvas_instance, Rect loc, Bitmap bitmap_instance, in nativeDraw() argument 185 loc.left, loc.top, loc.right, loc.bottom, in nativeDraw()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 192 GLint loc = glGetUniformLocation(pgm, var); in randUniform() local 193 if (loc >= 0) { in randUniform() 198 glUniform4f(loc, x, y, z, w); in randUniform() 214 GLint loc = glGetUniformLocation(pgm, "u_texOff"); in doLoop() local 215 glUniform2f(loc, ((float)ct) / passCount, ((float)ct) / 2.f / passCount); in doLoop() 274 GLint loc = glGetUniformLocation(pgm, "u_tex0"); in doSingleTest() local 275 if (loc >= 0) glUniform1i(loc, 0); in doSingleTest() 276 loc = glGetUniformLocation(pgm, "u_tex1"); in doSingleTest() 277 if (loc >= 0) glUniform1i(loc, 1); in doSingleTest()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | KMLFormatter.java | 48 Location loc = entry.getLocation(); in getOutput() local 51 builder.addLine("accuracy = " + loc.getAccuracy()); in getOutput() 60 builder.addLine(loc.getLongitude() + "," + loc.getLatitude() + "," in getOutput() 61 + loc.getAltitude()); in getOutput()
|
D | TrackerEntry.java | 87 private TrackerEntry(Location loc) { in TrackerEntry() argument 88 this(loc.getProvider(), EntryType.LOCATION_TYPE); in TrackerEntry() 89 mLocation = new Location(loc); in TrackerEntry() 95 static TrackerEntry createEntry(Location loc, float distFromNetLocation) { in createEntry() argument 96 TrackerEntry entry = new TrackerEntry(loc); in createEntry()
|
D | TrackerDataHelper.java | 83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry() argument 84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc)); in writeEntry()
|
/frameworks/base/docs/html/sdk/ |
D | download.jd | 54 var loc = window.location.href; 55 if (loc.indexOf('?v=') != -1) { 56 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 81 var loc = window.location.href; 82 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
D | ScopedException.java | 119 Location loc; in createFromOutput() local 121 loc = Location.fromUserReadableString( in createFromOutput() 124 loc = Location.fromUserReadableString( in createFromOutput() 127 if (loc != null && loc.isValid()) { in createFromOutput() 128 locations.add(loc); in createFromOutput()
|
D | Scope.java | 124 LocationScopeProvider loc = (LocationScopeProvider) provider; in produceScopeLog() local 126 List<Location> locations = loc.provideScopeLocation(); in produceScopeLog()
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
D | rasterize.rs | 101 float2 loc; 102 loc.x = x; 103 loc.y = y; 105 float2 d1 = loc - p1[i]; 106 float2 d2 = loc - p2[i]; 107 float2 d3 = loc - p3[i]; 117 float2 delta = slope[i] * loc;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 296 final Locale loc = conf.locale; in getLocaleData() local 297 String localeString = loc.getLanguage(); in getLocaleData() 298 String country = loc.getCountry(); in getLocaleData() 324 Locale loc = null; in setLocaleData() local 327 loc = Locale.forLanguageTag(localeCode); in setLocaleData() 331 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData() 336 config.locale = loc; in setLocaleData()
|
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
D | SimpleCompilationTest.java | 73 Location loc = report.getLocations().get(0); in singleFileErrorTest() local 75 String extract = extract(targetFile, loc); in singleFileErrorTest() 118 Location loc = report.getLocations().get(0); in testMultipleExceptionsInDifferentFiles() local 119 String extract = extract(expectedErrorFile, loc); in testMultipleExceptionsInDifferentFiles()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 236 Locale loc = Locale.getDefault(); in updateText() local 237 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText() 238 mFormatterLocale = loc; in updateText() 239 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeech.java | 1455 public int setLanguage(final Locale loc) { 1459 if (loc == null) { 1464 language = loc.getISO3Language(); 1466 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); 1471 country = loc.getISO3Country(); 1473 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e); 1477 String variant = loc.getVariant(); 1765 public int isLanguageAvailable(final Locale loc) { 1772 language = loc.getISO3Language(); 1774 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); [all …]
|
/frameworks/support/v4/api21/android/support/v4/app/ |
D | FragmentTransitionCompat21.java | 298 int[] loc = new int[2]; in getBoundsOnScreen() local 299 view.getLocationOnScreen(loc); in getBoundsOnScreen() 301 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in getBoundsOnScreen()
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 276 private static native void nativeDraw(long canvas_instance, RectF loc, Bitmap bitmap_instance, in nativeDraw() argument 278 private static native void nativeDraw(long canvas_instance, Rect loc, Bitmap bitmap_instance, in nativeDraw() argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
D | StaticLayout_Delegate.java | 143 int loc; in nComputeLineBreaks() local 145 while ((loc = it.next()) != BreakIterator.DONE) { in nComputeLineBreaks() 146 breaks.add(loc); in nComputeLineBreaks()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ListPopupWindow.java | 1459 final int[] loc = mTmpLocation; 1460 view.getLocationOnScreen(loc); 1461 event.offsetLocation(-loc[0], -loc[1]); 1470 final int[] loc = mTmpLocation; 1471 view.getLocationOnScreen(loc); 1472 event.offsetLocation(loc[0], loc[1]);
|