Home
last modified time | relevance | path

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

12

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java179 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/
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.java83 int[] loc = new int[2]; in getStartDelay() local
84 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
85 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
87 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
DSidePropagation.java92 int[] loc = new int[2]; in getStartDelay() local
93 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
94 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
95 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
DVisibility.java135 int[] loc = new int[2]; in captureValues() local
136 transitionValues.view.getLocationOnScreen(loc); in captureValues()
137 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); in captureValues()
414 int[] loc = new int[2]; in onDisappear() local
415 sceneRoot.getLocationOnScreen(loc); in onDisappear()
416 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear()
417 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop()); in onDisappear()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DNinePatch_Delegate.java176 /*package*/ static void nativeDraw(long canvas_instance, RectF loc, long bitmap_instance, in nativeDraw() argument
179 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, in nativeDraw()
185 /*package*/ static void nativeDraw(long canvas_instance, Rect loc, long bitmap_instance, in nativeDraw() argument
188 loc.left, loc.top, loc.right, loc.bottom, in nativeDraw()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGrid.java214 Location loc = mLocations.get(i); in debugPrint() local
215 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); in debugPrint()
242 Location loc = new Location(rowIndex); in appendItemToRow() local
246 mLocations.addLast(loc); in appendItemToRow()
248 return loc; in appendItemToRow()
277 Location loc = new Location(rowIndex); in prependItemToRow() local
279 mLocations.addFirst(loc); in prependItemToRow()
281 return loc; in prependItemToRow()
DStaggeredGridDefault.java144 Location loc = getLocation(itemIndex); in stripDownTo() local
145 if (loc == null) { in stripDownTo()
150 int row = loc.row; in stripDownTo()
/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/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/base/core/jni/
Dandroid_text_StaticLayout.cpp78 for (int loc = breakIterator->first(); loc != BreakIterator::DONE; in nLineBreakOpportunities() local
79 loc = breakIterator->next()) { in nLineBreakOpportunities()
80 breaks.push_back(loc); in nLineBreakOpportunities()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java204 final Locale loc = conf.locale; in getLocaleData() local
205 String localeString = loc.getLanguage(); in getLocaleData()
206 String country = loc.getCountry(); in getLocaleData()
232 Locale loc = null; in setLocaleData() local
235 loc = Locale.forLanguageTag(localeCode); in setLocaleData()
239 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData()
244 config.locale = loc; in setLocaleData()
/frameworks/base/core/java/android/widget/
DChronometer.java234 Locale loc = Locale.getDefault(); in updateText() local
235 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText()
236 mFormatterLocale = loc; in updateText()
237 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
/frameworks/support/v4/api21/android/support/v4/app/
DFragmentTransitionCompat21.java227 int[] loc = new int[2]; in getBoundsOnScreen() local
228 view.getLocationOnScreen(loc); in getBoundsOnScreen()
230 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in getBoundsOnScreen()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1455 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();
1737 public int isLanguageAvailable(final Locale loc) {
1744 language = loc.getISO3Language();
1746 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
[all …]
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java276 private static native void nativeDraw(long canvas_instance, RectF loc, long bitmap_instance, in nativeDraw() argument
278 private static native void nativeDraw(long canvas_instance, Rect loc, long bitmap_instance, in nativeDraw() argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListPopupWindow.java1457 final int[] loc = mTmpLocation;
1458 view.getLocationOnScreen(loc);
1459 event.offsetLocation(-loc[0], -loc[1]);
1468 final int[] loc = mTmpLocation;
1469 view.getLocationOnScreen(loc);
1470 event.offsetLocation(loc[0], loc[1]);
/frameworks/base/location/java/android/location/
DLocationManager.java1256 public void setTestProviderLocation(String provider, Location loc) { in setTestProviderLocation() argument
1257 if (!loc.isComplete()) { in setTestProviderLocation()
1259 "Incomplete location object, missing timestamp or accuracy? " + loc); in setTestProviderLocation()
1263 loc.makeComplete(); in setTestProviderLocation()
1271 mService.setTestProviderLocation(provider, loc); in setTestProviderLocation()
DILocationManager.aidl82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument
/frameworks/base/docs/html/training/app-indexing/
Denabling-app-indexing.jd54 your web page by using the {@code &lt;loc&gt;} tag, and a corresponding deep
62 &lt;loc&gt;example://gizmos&lt;/loc&gt;
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java1065 int[] loc = mTmpLocation; in onComputeInsets() local
1067 mInputFrame.getLocationInWindow(loc); in onComputeInsets()
1070 loc[1] = decor.getHeight(); in onComputeInsets()
1077 outInsets.contentTopInsets = loc[1]; in onComputeInsets()
1080 mCandidatesFrame.getLocationInWindow(loc); in onComputeInsets()
1082 outInsets.visibleTopInsets = loc[1]; in onComputeInsets()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java1326 void walk(int loc) { in topologicalSort() argument
1327 switch (visited[loc]) { in topologicalSort()
1329 visited[loc] = PENDING; in topologicalSort()
1330 for (Arc arc : arcsByVertex[loc]) { in topologicalSort()
1334 visited[loc] = COMPLETE; in topologicalSort()
1349 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort()
1350 walk(loc); in topologicalSort()

12