/frameworks/data-binding/compilerCommon/src/test/java/android/databinding/tool/store/ |
H A D | LocationTest.java | 52 Location loc = new Location(1, 2, 3, 4); 53 assertEquals(loc, loc.toAbsoluteLocation()); 58 Location loc = new Location(1, 2, 3, 4); 59 loc.setParentLocation(new Location()); 60 assertEquals(loc, loc.toAbsoluteLocation()); 65 Location loc = new Location(1, 2, 3, 4); 66 loc.setParentLocation(new Location(10, 0, 20, 0)); 67 assertEquals(new Location(11, 2, 13, 4), loc [all...] |
/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 | 81 int[] loc = new int[2]; 82 sceneRoot.getLocationOnScreen(loc); 83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) 85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2)
|
H A D | SidePropagation.java | 91 int[] loc = new int[2]; 92 sceneRoot.getLocationOnScreen(loc); 93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); 94 int top = loc[1] + Math.round(sceneRoot.getTranslationY());
|
H A D | Visibility.java | 146 int[] loc = new int[2]; 147 transitionValues.view.getLocationOnScreen(loc); 148 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); 415 int[] loc = new int[2]; 416 sceneRoot.getLocationOnScreen(loc); 417 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); 418 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop());
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | LocationTest.java | 180 Location loc = new Location(""); 182 loc.setAltitude(1); 184 assertEquals(message, loc.getAltitude(), 1, 0); 186 assertTrue(message, loc.hasAltitude()); 188 loc.removeAltitude(); 190 assertFalse(message, loc.hasAltitude()); 192 assertEquals(message, loc.getAltitude(), 0, 0); 197 Location loc = new Location(""); 199 loc.setSpeed(1); 201 assertEquals(message, loc [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StaggeredGridDefault.java | 38 Location loc = getLocation(i); 39 edge += loc.offset; 40 if (loc.row == rowIndex) { 46 Location loc = getLocation(mLastVisibleIndex); 47 if (loc.row == rowIndex) { 48 return edge + loc.size; 51 edge -= loc.offset; 52 loc = getLocation(i); 53 if (loc.row == rowIndex) { 54 return edge + loc [all...] |
H A D | StaggeredGrid.java | 111 Location loc = mLocations.get(i); 112 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); 170 Location loc = getLocation(itemIndex); 171 int rowIndex = loc.row; 173 if (size != loc.size) { 190 offset = loc.offset; 209 Location loc = getLocation(cachedIndex); 210 if (loc.row == row) { 251 Location loc = new Location(rowIndex, 0, 0); 252 mLocations.addFirst(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/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/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ForwardingListener.java | 275 final int[] loc = mTmpLocation; 276 view.getLocationOnScreen(loc); 277 event.offsetLocation(-loc[0], -loc[1]); 286 final int[] loc = mTmpLocation; 287 view.getLocationOnScreen(loc); 288 event.offsetLocation(loc[0], loc[1]);
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | rasterize.rs | 101 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/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
H A D | ScopedException.java | 40 public static final String LOCATION_KEY = "loc:"; 124 Location loc; 126 loc = Location.fromUserReadableString( 129 loc = Location.fromUserReadableString( 132 if (loc != null && loc.isValid()) { 133 locations.add(loc);
|
H A D | Scope.java | 124 LocationScopeProvider loc = (LocationScopeProvider) provider; 125 sb.append("loc:"); 126 List<Location> locations = loc.provideScopeLocation();
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 309 final Locale loc = conf.locale; 310 String localeString = loc.getLanguage(); 311 String country = loc.getCountry(); 337 Locale loc = null; 340 loc = Locale.forLanguageTag(localeCode); 344 if (loc == null) return; // Couldn't find the saved locale in this version of the software 349 config.locale = loc;
|
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 271 Locale loc = Locale.getDefault(); 272 if (mFormatter == null || !loc.equals(mFormatterLocale)) { 273 mFormatterLocale = loc; 274 mFormatter = new Formatter(mFormatBuilder, loc);
|
/frameworks/av/media/libstagefright/ |
H A D | OMXClient.cpp | 243 node_location loc = mNodeLocation.valueFor(node); local 244 if (loc == LOCAL) { 246 } else if (loc == MEDIAPROCESS) { 248 } else if (loc == CODECPROCESS) { 251 ALOGE("Couldn't determine node location for node %d: %d, using local", node, loc); 277 node_location loc = getPreferredCodecLocation(name); local 278 if (loc == CODECPROCESS) { 280 } else if (loc == MEDIAPROCESS) { 298 mNodeLocation.add(*node, loc);
|
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
H A D | SimpleCompilationTest.java | 106 Location loc = report.getLocations().get(0); 108 String extract = extract(targetFile, loc); 151 Location loc = report.getLocations().get(0); 152 String extract = extract(expectedErrorFile, loc);
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 144 int loc; 146 while ((loc = it.next()) != BreakIterator.DONE) { 147 breaks.add(loc);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeech.java | 1459 * @param loc The locale describing the language to be used. 1465 public int setLanguage(final Locale loc) { argument 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(); 1769 * @param loc The Locale describing the language to be used. 1775 public int isLanguageAvailable(final Locale loc) { argument [all...] |
/frameworks/support/v4/api21/android/support/v4/app/ |
H A D | FragmentTransitionCompat21.java | 337 int[] loc = new int[2]; 338 view.getLocationOnScreen(loc); 340 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight());
|
/frameworks/base/location/java/android/location/ |
H A D | ILocationManager.aidl | 85 void setTestProviderLocation(String provider, in Location loc, String opPackageName);
|
/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 1481 * @param loc The locale. Can be null. 1483 public void setLocale(@Nullable Locale loc) { argument 1484 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); 1512 * @param loc The Locale. If null will set the layout direction to 1519 public void setLayoutDirection(Locale loc) { argument 1522 final int layoutDirection = 1 + TextUtils.getLayoutDirectionFromLocale(loc); 1548 Locale loc = locs.get(i); 1549 boolean l = (loc.getLanguage().length() != 0); 1550 boolean c = (loc [all...] |