/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 | 149 int[] loc = new int[2]; 150 transitionValues.view.getLocationOnScreen(loc); 151 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); 421 int[] loc = new int[2]; 422 sceneRoot.getLocationOnScreen(loc); 423 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); 424 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop());
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | VisibilityPropagation.java | 51 int[] loc = new int[2]; 52 view.getLocationOnScreen(loc); 53 loc[0] += Math.round(view.getTranslationX()); 54 loc[0] += view.getWidth() / 2; 55 loc[1] += Math.round(view.getTranslationY()); 56 loc[1] += view.getHeight() / 2; 57 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 | 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 | 146 int[] loc = new int[2]; 147 transitionValues.view.getLocationOnScreen(loc); 148 transitionValues.values.put(PROPNAME_SCREEN_LOCATION, loc); 397 int[] loc = new int[2]; 398 sceneRoot.getLocationOnScreen(loc); 399 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); 400 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/leanback/src/main/java/androidx/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 | 108 Location loc = mLocations.get(i); 109 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); 166 Location loc = getLocation(itemIndex); 167 int rowIndex = loc.row; 169 if (size != loc.size) { 186 offset = loc.offset; 205 Location loc = getLocation(cachedIndex); 206 if (loc.row == row) { 247 Location loc = new Location(rowIndex, 0, 0); 248 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/main/java/androidx/appcompat/widget/ |
H A D | ForwardingListener.java | 298 final int[] loc = mTmpLocation; 299 view.getLocationOnScreen(loc); 300 event.offsetLocation(-loc[0], -loc[1]); 309 final int[] loc = mTmpLocation; 310 view.getLocationOnScreen(loc); 311 event.offsetLocation(loc[0], loc[1]);
|
/frameworks/rs/tests/java_api/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);
|
/frameworks/support/fragment/src/main/java/androidx/fragment/app/ |
H A D | FragmentTransitionImpl.java | 75 int[] loc = new int[2]; 76 view.getLocationOnScreen(loc); 77 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight());
|
/frameworks/ml/nn/runtime/ |
H A D | ExecutionBuilder.cpp | 424 DataLocation& loc = info.locationAndLength; local 426 total += alignBytesNeeded(static_cast<uint32_t>(total), loc.length); 427 loc.poolIndex = nextPoolIndex; 428 loc.offset = static_cast<uint32_t>(total); 429 total += loc.length; 601 DataLocation& loc = info.locationAndLength; local 607 memcpy(data + loc.offset, info.buffer, loc.length); 666 DataLocation& loc = info.locationAndLength; local 672 memcpy(info.buffer, data + loc [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 300 Locale loc = Locale.getDefault(); 301 if (mFormatter == null || !loc.equals(mFormatterLocale)) { 302 mFormatterLocale = loc; 303 mFormatter = new Formatter(mFormatBuilder, loc);
|
/frameworks/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 98 int loc; 100 while ((loc = it.next()) != BreakIterator.DONE) { 101 breaks.add(loc);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeech.java | 1466 * @param loc The locale describing the language to be used. 1472 public int setLanguage(final Locale loc) { argument 1476 if (loc == null) { 1481 language = loc.getISO3Language(); 1483 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); 1488 country = loc.getISO3Country(); 1490 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e); 1494 String variant = loc.getVariant(); 1776 * @param loc The Locale describing the language to be used. 1782 public int isLanguageAvailable(final Locale loc) { argument [all...] |
/frameworks/base/tools/stats_log_api_gen/ |
H A D | Collation.cpp | 73 SourceLocation loc; local 74 if (field->GetSourceLocation(&loc)) { 76 fprintf(stderr, "%s:%d: ", file->name().c_str(), loc.start_line);
|