Home
last modified time | relevance | path

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

12

/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.java152 int[] loc = new int[2]; in captureValues() local
153 transitionValues.view.getLocationOnScreen(loc); in captureValues()
154 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); in captureValues()
446 int[] loc = new int[2]; in onDisappear() local
447 sceneRoot.getLocationOnScreen(loc); in onDisappear()
448 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear()
449 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/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java315 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Fine() local
316 mProvider.setProviderLocation(loc); in testGetLastLocation_Fine()
318 PERMISSION_FINE)).isEqualTo(loc); in testGetLastLocation_Fine()
326 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Coarse() local
327 mProvider.setProviderLocation(loc); in testGetLastLocation_Coarse()
330 assertThat(coarse).isNotEqualTo(loc); in testGetLastLocation_Coarse()
331 assertThat(coarse).isNearby(loc, 5000); in testGetLastLocation_Coarse()
346 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass() local
347 mProvider.setProviderLocation(loc); in testGetLastLocation_Bypass()
349 PERMISSION_FINE)).isEqualTo(loc); in testGetLastLocation_Bypass()
[all …]
DStationaryThrottlingLocationProviderTest.java194 LocationResult loc = LocationResult.wrap(l); in testNoThrottle_oldLocation() local
195 mDelegateProvider.reportLocation(loc); in testNoThrottle_oldLocation()
196 verify(mListener, times(1)).onReportLocation(loc); in testNoThrottle_oldLocation()
212 LocationResult loc = createLocationResult("test_provider", mRandom); in testNoThrottle_locationSettingsIgnored() local
213 mDelegateProvider.reportLocation(loc); in testNoThrottle_locationSettingsIgnored()
214 verify(mListener, times(1)).onReportLocation(loc); in testNoThrottle_locationSettingsIgnored()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript101 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/libs/net/common/device/com/android/net/module/util/netlink/
DStructInetDiagSockId.java54 public StructInetDiagSockId(InetSocketAddress loc, InetSocketAddress rem) { in StructInetDiagSockId() argument
55 mLocSocketAddress = loc; in StructInetDiagSockId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileViewModel.kt54 loc: StatusBarLocation, in viewModelForLocation()
56 when (loc) { in viewModelForLocation()
/frameworks/base/core/java/com/android/internal/content/
DInstallLocationUtils.java496 public static int getInstallationErrorCode(int loc) { in getInstallationErrorCode() argument
497 if (loc == RECOMMEND_FAILED_INVALID_LOCATION) { in getInstallationErrorCode()
499 } else if (loc == RECOMMEND_FAILED_ALREADY_EXISTS) { in getInstallationErrorCode()
501 } else if (loc == RECOMMEND_FAILED_INSUFFICIENT_STORAGE) { in getInstallationErrorCode()
503 } else if (loc == RECOMMEND_FAILED_INVALID_APK) { in getInstallationErrorCode()
505 } else if (loc == RECOMMEND_FAILED_INVALID_URI) { in getInstallationErrorCode()
507 } else if (loc == RECOMMEND_MEDIA_UNAVAILABLE) { in getInstallationErrorCode()
/frameworks/base/core/java/android/widget/
DChronometer.java305 Locale loc = Locale.getDefault(); in updateText() local
306 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText()
307 mFormatterLocale = loc; in updateText()
308 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1535 public int setLanguage(final Locale loc) {
1537 if (loc == null) {
1542 language = loc.getISO3Language();
1544 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
1549 country = loc.getISO3Country();
1551 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e);
1555 String variant = loc.getVariant();
1824 public int isLanguageAvailable(final Locale loc) {
1829 language = loc.getISO3Language();
1831 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanelController.java190 int[] loc = view.getLocationOnScreen(); in showEdit() local
191 int x = loc[0] + view.getWidth() / 2; in showEdit()
192 int y = loc[1] + view.getHeight() / 2; in showEdit()
/frameworks/base/core/java/android/content/res/
DConfiguration.java2242 public void setLocale(@Nullable Locale loc) { in setLocale() argument
2243 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); in setLocale()
2278 public void setLayoutDirection(Locale loc) { in setLayoutDirection() argument
2281 final int layoutDirection = 1 + TextUtils.getLayoutDirectionFromLocale(loc); in setLayoutDirection()
2331 final Locale loc = locs.get(i); in localesToResourceQualifier() local
2332 final int l = loc.getLanguage().length(); in localesToResourceQualifier()
2336 final int s = loc.getScript().length(); in localesToResourceQualifier()
2337 final int c = loc.getCountry().length(); in localesToResourceQualifier()
2338 final int v = loc.getVariant().length(); in localesToResourceQualifier()
2346 sb.append(loc.getLanguage()); in localesToResourceQualifier()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt79 abstract fun getLocationOnScreen(underlyingObject: T, loc: IntArray) in <lambda>()
657 override fun getLocationOnScreen(underlyingObject: T, loc: IntArray) { in <lambda>()
658 underlyingObject.getLocationOnScreen(loc) in <lambda>()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DDialogFillUi.java435 final int[] loc = view.getLocationOnScreen(); in dump() local
437 pw.print('('); pw.print(loc[0]); pw.print(','); pw.print(loc[1]); pw.print(')'); in dump()
439 pw.print(loc[0] + view.getWidth()); pw.print(','); in dump()
440 pw.print(loc[1] + view.getHeight()); pw.println(')'); in dump()
DSaveUi.java708 final int[] loc = view.getLocationOnScreen(); in dump() local
710 pw.print('('); pw.print(loc[0]); pw.print(','); pw.print(loc[1]);pw.print(')'); in dump()
712 pw.print(loc[0] + view.getWidth()); pw.print(','); in dump()
713 pw.print(loc[1] + view.getHeight());pw.println(')'); in dump()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationController.java349 public void getLocationOnScreen(@NonNull View underlyingObject, @NonNull int[] loc) { in prepareForBubbleDrag()
350 loc[0] = (int) bubble.getTranslationX(); in prepareForBubbleDrag()
351 loc[1] = (int) bubble.getTranslationY(); in prepareForBubbleDrag()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObjectTest.kt130 loc: IntArray in <lambda>()
132 loc[0] = objectX.toInt() in <lambda>()
133 loc[1] = objectY.toInt() } in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java705 @NonNull Rect animatedPipBounds, @NonNull int[] loc) {
706 loc[0] = animatedPipBounds.left;
707 loc[1] = animatedPipBounds.top;
/frameworks/proto_logging/stats/stats_log_api_gen/
DCollation.cpp80 SourceLocation loc; in print_error() local
81 if (field->GetSourceLocation(&loc)) { in print_error()
84 fprintf(stderr, "%s:%d: ", file->name().c_str(), loc.start_line); in print_error()

12