Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/data-binding/compilerCommon/src/test/java/android/databinding/tool/store/
DLocationTest.java52 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/base/location/tests/locationtests/src/android/location/
DLocationTest.java180 Location loc = new Location(""); in testAltitude() local
182 loc.setAltitude(1); in testAltitude()
184 assertEquals(message, loc.getAltitude(), 1, 0); in testAltitude()
186 assertTrue(message, loc.hasAltitude()); in testAltitude()
188 loc.removeAltitude(); in testAltitude()
190 assertFalse(message, loc.hasAltitude()); in testAltitude()
192 assertEquals(message, loc.getAltitude(), 0, 0); in testAltitude()
197 Location loc = new Location(""); in testSpeed() local
199 loc.setSpeed(1); in testSpeed()
201 assertEquals(message, loc.getSpeed(), 1, 0); in testSpeed()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGridDefault.java38 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 …]
DStaggeredGrid.java108 Location loc = mLocations.get(i); in debugPrint() local
109 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); in debugPrint()
166 Location loc = getLocation(itemIndex); in prependVisbleItemsWithCache() local
167 int rowIndex = loc.row; in prependVisbleItemsWithCache()
169 if (size != loc.size) { in prependVisbleItemsWithCache()
186 offset = loc.offset; in prependVisbleItemsWithCache()
205 Location loc = getLocation(cachedIndex); in calculateOffsetAfterLastItem() local
206 if (loc.row == row) { in calculateOffsetAfterLastItem()
247 Location loc = new Location(rowIndex, 0, 0); in prependVisibleItemToRow() local
248 mLocations.addFirst(loc); in prependVisibleItemToRow()
[all …]
/frameworks/base/core/java/android/transition/
DVisibilityPropagation.java50 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()
DCircularPropagation.java81 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()
DSidePropagation.java91 int[] loc = new int[2]; in getStartDelay() local
92 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
DVisibility.java146 int[] loc = new int[2]; in captureValues() local
147 transitionValues.view.getLocationOnScreen(loc); in captureValues()
148 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); in captureValues()
415 int[] loc = new int[2]; in onDisappear() local
416 sceneRoot.getLocationOnScreen(loc); in onDisappear()
417 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear()
418 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop()); in onDisappear()
/frameworks/support/transition/src/android/support/transition/
DVisibilityPropagation.java51 int[] loc = new int[2]; in captureValues() local
52 view.getLocationOnScreen(loc); in captureValues()
53 loc[0] += Math.round(view.getTranslationX()); in captureValues()
54 loc[0] += view.getWidth() / 2; in captureValues()
55 loc[1] += Math.round(view.getTranslationY()); in captureValues()
56 loc[1] += view.getHeight() / 2; in captureValues()
57 values.values.put(PROPNAME_VIEW_CENTER, loc); in captureValues()
DCircularPropagation.java81 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()
DSidePropagation.java91 int[] loc = new int[2]; in getStartDelay() local
92 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
DVisibility.java145 int[] loc = new int[2]; in captureValues() local
146 transitionValues.view.getLocationOnScreen(loc); in captureValues()
147 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); in captureValues()
393 int[] loc = new int[2]; in onDisappear() local
394 sceneRoot.getLocationOnScreen(loc); in onDisappear()
395 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear()
396 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop()); in onDisappear()
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp192 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/
DKMLFormatter.java48 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()
DTrackerEntry.java87 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()
DTrackerDataHelper.java83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry() argument
84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc)); in writeEntry()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DForwardingListener.java297 final int[] loc = mTmpLocation; in toLocalMotionEvent() local
298 view.getLocationOnScreen(loc); in toLocalMotionEvent()
299 event.offsetLocation(-loc[0], -loc[1]); in toLocalMotionEvent()
308 final int[] loc = mTmpLocation; in toGlobalMotionEvent() local
309 view.getLocationOnScreen(loc); in toGlobalMotionEvent()
310 event.offsetLocation(loc[0], loc[1]); in toGlobalMotionEvent()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScopedException.java124 Location loc; in createFromOutput() local
126 loc = Location.fromUserReadableString( in createFromOutput()
129 loc = Location.fromUserReadableString( in createFromOutput()
132 if (loc != null && loc.isValid()) { in createFromOutput()
133 locations.add(loc); in createFromOutput()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rs101 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/ml/nn/runtime/
DExecutionBuilder.cpp390 DataLocation& loc = info.locationAndLength; in allocatePointerArgumentsToPool() local
392 total += alignBytesNeeded(static_cast<uint32_t>(total), loc.length); in allocatePointerArgumentsToPool()
393 loc.poolIndex = nextPoolIndex; in allocatePointerArgumentsToPool()
394 loc.offset = static_cast<uint32_t>(total); in allocatePointerArgumentsToPool()
395 total += loc.length; in allocatePointerArgumentsToPool()
526 DataLocation& loc = info.locationAndLength; in startComputeOnDevice() local
532 memcpy(data + loc.offset, info.buffer, loc.length); in startComputeOnDevice()
586 DataLocation& loc = info.locationAndLength; in startComputeOnDevice() local
592 memcpy(info.buffer, data + loc.offset, loc.length); in startComputeOnDevice()
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentTransitionImpl.java74 int[] loc = new int[2]; in getBoundsOnScreen() local
75 view.getLocationOnScreen(loc); in getBoundsOnScreen()
76 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in getBoundsOnScreen()
/frameworks/support/design/tests/src/android/support/design/widget/
DSnackbarTest.java263 final int[] loc = new int[2]; in testSwipeUpDismissesViaTimeout()
264 view.getLocationOnScreen(loc); in testSwipeUpDismissesViaTimeout()
266 loc[0] + view.getWidth() / 2, in testSwipeUpDismissesViaTimeout()
267 loc[1] + view.getHeight() / 2}; in testSwipeUpDismissesViaTimeout()
273 final int[] loc = new int[2]; in testSwipeUpDismissesViaTimeout()
274 view.getLocationOnScreen(loc); in testSwipeUpDismissesViaTimeout()
276 loc[0] + view.getWidth() / 2, in testSwipeUpDismissesViaTimeout()
277 loc[1] - view.getHeight()}; in testSwipeUpDismissesViaTimeout()
/frameworks/base/core/java/android/widget/
DChronometer.java300 Locale loc = Locale.getDefault(); in updateText() local
301 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText()
302 mFormatterLocale = loc; in updateText()
303 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1465 public int setLanguage(final Locale loc) {
1469 if (loc == null) {
1474 language = loc.getISO3Language();
1476 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
1481 country = loc.getISO3Country();
1483 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e);
1487 String variant = loc.getVariant();
1775 public int isLanguageAvailable(final Locale loc) {
1782 language = loc.getISO3Language();
1784 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java1764 public void setLocale(@Nullable Locale loc) { in setLocale() argument
1765 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); in setLocale()
1827 public void setLayoutDirection(Locale loc) { in setLayoutDirection() argument
1830 final int layoutDirection = 1 + TextUtils.getLayoutDirectionFromLocale(loc); in setLayoutDirection()
1876 final Locale loc = locs.get(i); in localesToResourceQualifier() local
1877 final int l = loc.getLanguage().length(); in localesToResourceQualifier()
1881 final int s = loc.getScript().length(); in localesToResourceQualifier()
1882 final int c = loc.getCountry().length(); in localesToResourceQualifier()
1883 final int v = loc.getVariant().length(); in localesToResourceQualifier()
1891 sb.append(loc.getLanguage()); in localesToResourceQualifier()
[all …]

123