Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 64) 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.java111 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/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/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.java275 final int[] loc = mTmpLocation; in toLocalMotionEvent() local
276 view.getLocationOnScreen(loc); in toLocalMotionEvent()
277 event.offsetLocation(-loc[0], -loc[1]); in toLocalMotionEvent()
286 final int[] loc = mTmpLocation; in toGlobalMotionEvent() local
287 view.getLocationOnScreen(loc); in toGlobalMotionEvent()
288 event.offsetLocation(loc[0], loc[1]); in toGlobalMotionEvent()
/frameworks/base/docs/html/sdk/
Ddownload.jd54 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/
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()
DScope.java124 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/
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/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java309 final Locale loc = conf.locale; in getLocaleData() local
310 String localeString = loc.getLanguage(); in getLocaleData()
311 String country = loc.getCountry(); in getLocaleData()
337 Locale loc = null; in setLocaleData() local
340 loc = Locale.forLanguageTag(localeCode); in setLocaleData()
344 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData()
349 config.locale = loc; in setLocaleData()
/frameworks/av/media/libstagefright/
DOMXClient.cpp243 node_location loc = mNodeLocation.valueFor(node); in getOMX_l() local
244 if (loc == LOCAL) { in getOMX_l()
246 } else if (loc == MEDIAPROCESS) { in getOMX_l()
248 } else if (loc == CODECPROCESS) { in getOMX_l()
251 ALOGE("Couldn't determine node location for node %d: %d, using local", node, loc); in getOMX_l()
277 node_location loc = getPreferredCodecLocation(name); in allocateNode() local
278 if (loc == CODECPROCESS) { in allocateNode()
280 } else if (loc == MEDIAPROCESS) { in allocateNode()
298 mNodeLocation.add(*node, loc); in allocateNode()
/frameworks/base/core/java/android/widget/
DChronometer.java271 Locale loc = Locale.getDefault(); in updateText() local
272 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText()
273 mFormatterLocale = loc; in updateText()
274 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/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
DSimpleCompilationTest.java106 Location loc = report.getLocations().get(0); in singleFileErrorTest() local
108 String extract = extract(targetFile, loc); in singleFileErrorTest()
151 Location loc = report.getLocations().get(0); in testMultipleExceptionsInDifferentFiles() local
152 String extract = extract(expectedErrorFile, loc); in testMultipleExceptionsInDifferentFiles()
/frameworks/support/v4/api21/android/support/v4/app/
DFragmentTransitionCompat21.java337 int[] loc = new int[2]; in getBoundsOnScreen() local
338 view.getLocationOnScreen(loc); in getBoundsOnScreen()
340 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in getBoundsOnScreen()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1483 public void setLocale(@Nullable Locale loc) { in setLocale() argument
1484 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); in setLocale()
1519 public void setLayoutDirection(Locale loc) { in setLayoutDirection() argument
1522 final int layoutDirection = 1 + TextUtils.getLayoutDirectionFromLocale(loc); in setLayoutDirection()
1548 Locale loc = locs.get(i); in localesToResourceQualifier() local
1549 boolean l = (loc.getLanguage().length() != 0); in localesToResourceQualifier()
1550 boolean c = (loc.getCountry().length() != 0); in localesToResourceQualifier()
1551 boolean s = (loc.getScript().length() != 0); in localesToResourceQualifier()
1552 boolean v = (loc.getVariant().length() != 0); in localesToResourceQualifier()
1558 sb.append(loc.getLanguage()); in localesToResourceQualifier()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DStaticLayout_Delegate.java144 int loc; in nComputeLineBreaks() local
146 while ((loc = it.next()) != BreakIterator.DONE) { in nComputeLineBreaks()
147 breaks.add(loc); in nComputeLineBreaks()

123