/frameworks/base/core/java/android/transition/ |
H A D | VisibilityPropagation.java | 50 int[] loc = new int[2]; 51 view.getLocationOnScreen(loc); 52 loc[0] += Math.round(view.getTranslationX()); 53 loc[0] += view.getWidth() / 2; 54 loc[1] += Math.round(view.getTranslationY()); 55 loc[1] += view.getHeight() / 2; 56 values.values.put(PROPNAME_VIEW_CENTER, loc);
|
H A D | CircularPropagation.java | 83 int[] loc = new int[2]; 84 sceneRoot.getLocationOnScreen(loc); 85 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) 87 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2)
|
H A D | SidePropagation.java | 92 int[] loc = new int[2]; 93 sceneRoot.getLocationOnScreen(loc); 94 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); 95 int top = loc[1] + Math.round(sceneRoot.getTranslationY());
|
H A D | Visibility.java | 134 int[] loc = new int[2]; 135 transitionValues.view.getLocationOnScreen(loc); 136 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); 413 int[] loc = new int[2]; 414 sceneRoot.getLocationOnScreen(loc); 415 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); 416 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop());
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | LocationTest.java | 179 Location loc = new Location(""); 181 loc.setAltitude(1); 183 assertEquals(message, loc.getAltitude(), 1, 0); 185 assertTrue(message, loc.hasAltitude()); 187 loc.removeAltitude(); 189 assertFalse(message, loc.hasAltitude()); 191 assertEquals(message, loc.getAltitude(), 0, 0); 196 Location loc = new Location(""); 198 loc.setSpeed(1); 200 assertEquals(message, loc [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | KMLFormatter.java | 48 Location loc = entry.getLocation(); 51 builder.addLine("accuracy = " + loc.getAccuracy()); 60 builder.addLine(loc.getLongitude() + "," + loc.getLatitude() + "," 61 + loc.getAltitude());
|
H A D | TrackerEntry.java | 87 private TrackerEntry(Location loc) { argument 88 this(loc.getProvider(), EntryType.LOCATION_TYPE); 89 mLocation = new Location(loc); 95 static TrackerEntry createEntry(Location loc, float distFromNetLocation) { argument 96 TrackerEntry entry = new TrackerEntry(loc);
|
H A D | TrackerDataHelper.java | 83 public void writeEntry(Location loc, float distFromNetLoc) { argument 84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc));
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StaggeredGrid.java | 209 Location loc = mLocations.get(i); 210 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); 237 Location loc = new Location(rowIndex); 241 mLocations.addLast(loc); 243 return loc; 272 Location loc = new Location(rowIndex); 274 mLocations.addFirst(loc); 276 return loc;
|
H A D | StaggeredGridDefault.java | 123 Location loc = getLocation(itemIndex); 124 if (loc == null) { 129 int row = loc.row;
|
/frameworks/base/core/jni/ |
H A D | android_text_StaticLayout.cpp | 78 for (int loc = breakIterator->first(); loc != BreakIterator::DONE; 79 loc = breakIterator->next()) { 80 breaks.push_back(loc);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | NinePatch_Delegate.java | 176 /*package*/ static void nativeDraw(long canvas_instance, RectF loc, long bitmap_instance, argument 179 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, 185 /*package*/ static void nativeDraw(long canvas_instance, Rect loc, long bitmap_instance, argument 188 loc.left, loc.top, loc.right, loc [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 192 GLint loc = glGetUniformLocation(pgm, var); local 193 if (loc >= 0) { 198 glUniform4f(loc, x, y, z, w); 214 GLint loc = glGetUniformLocation(pgm, "u_texOff"); local 215 glUniform2f(loc, ((float)ct) / passCount, ((float)ct) / 2.f / passCount); 274 GLint loc = glGetUniformLocation(pgm, "u_tex0"); local 275 if (loc >= 0) glUniform1i(loc, 0); 276 loc = glGetUniformLocation(pgm, "u_tex1"); 277 if (loc > [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 189 final Locale loc = conf.locale; 190 String localeString = loc.getLanguage(); 191 String country = loc.getCountry(); 217 Locale loc = null; 220 loc = Locale.forLanguageTag(localeCode); 224 if (loc == null) return; // Couldn't find the saved locale in this version of the software 229 config.locale = loc;
|
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 234 Locale loc = Locale.getDefault(); 235 if (mFormatter == null || !loc.equals(mFormatterLocale)) { 236 mFormatterLocale = loc; 237 mFormatter = new Formatter(mFormatBuilder, loc);
|
H A D | GridLayout.java | 1449 void walk(int loc) { 1450 switch (visited[loc]) { 1452 visited[loc] = PENDING; 1453 for (Arc arc : arcsByVertex[loc]) { 1457 visited[loc] = COMPLETE; 1472 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { 1473 walk(loc);
|
/frameworks/support/v4/api21/android/support/v4/app/ |
H A D | FragmentTransitionCompat21.java | 223 int[] loc = new int[2]; 224 view.getLocationOnScreen(loc); 226 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight());
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 276 private static native void nativeDraw(long canvas_instance, RectF loc, long bitmap_instance, argument 278 private static native void nativeDraw(long canvas_instance, Rect loc, long bitmap_instance, argument
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeech.java | 1449 * @param loc The locale describing the language to be used. 1455 public int setLanguage(final Locale loc) { argument 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(); 1731 * @param loc The Locale describing the language to be used. 1737 public int isLanguageAvailable(final Locale loc) { argument [all...] |
/frameworks/base/location/java/android/location/ |
H A D | ILocationManager.aidl | 82 void setTestProviderLocation(String provider, in Location loc);
|
H A D | LocationManager.java | 1248 * @param loc the mock location 1256 public void setTestProviderLocation(String provider, Location loc) { argument 1257 if (!loc.isComplete()) { 1259 "Incomplete location object, missing timestamp or accuracy? " + loc); 1263 loc.makeComplete(); 1271 mService.setTestProviderLocation(provider, loc);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListPopupWindow.java | 1444 final int[] loc = mTmpLocation; 1445 view.getLocationOnScreen(loc); 1446 event.offsetLocation(-loc[0], -loc[1]); 1455 final int[] loc = mTmpLocation; 1456 view.getLocationOnScreen(loc); 1457 event.offsetLocation(loc[0], loc[1]);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | InputMethodService.java | 1065 int[] loc = mTmpLocation; 1067 mInputFrame.getLocationInWindow(loc); 1070 loc[1] = decor.getHeight(); 1077 outInsets.contentTopInsets = loc[1]; 1080 mCandidatesFrame.getLocationInWindow(loc); 1082 outInsets.visibleTopInsets = loc[1];
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
H A D | Pm.java | 826 int loc; 834 loc = Integer.parseInt(arg); 840 if (!mPm.setInstallLocation(loc)) { 851 int loc = mPm.getInstallLocation(); 853 if (loc == PackageHelper.APP_INSTALL_AUTO) { 855 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { 857 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { 860 System.out.println(loc + "[" + locStr + "]");
|
/frameworks/compile/slang/ |
H A D | slang_rs_object_ref_count.cpp | 1500 clang::SourceLocation loc; local 1517 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) { 1520 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL, 1536 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc);
|