/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 180 Location loc = new Location(""); in testAltitude() local 182 loc.setAltitude(1); in testAltitude() 184 assertEquals(message, loc.getAltitude(), 1, 0); in testAltitude() 186 assertTrue(message, loc.hasAltitude()); in testAltitude() 188 loc.removeAltitude(); in testAltitude() 190 assertFalse(message, loc.hasAltitude()); in testAltitude() 192 assertEquals(message, loc.getAltitude(), 0, 0); in testAltitude() 197 Location loc = new Location(""); in testSpeed() local 199 loc.setSpeed(1); in testSpeed() 201 assertEquals(message, loc.getSpeed(), 1, 0); in testSpeed() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | VisibilityPropagation.java | 50 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()
|
D | CircularPropagation.java | 81 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()
|
D | SidePropagation.java | 91 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()
|
D | Visibility.java | 152 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | error_listener.h | 59 virtual void InvalidName(const LocationTrackerInterface& loc, 63 virtual void InvalidValue(const LocationTrackerInterface& loc, 67 virtual void MissingField(const LocationTrackerInterface& loc, 84 virtual void InvalidName(const LocationTrackerInterface& loc, in InvalidName() argument 87 virtual void InvalidValue(const LocationTrackerInterface& loc, in InvalidValue() argument 90 virtual void MissingField(const LocationTrackerInterface& loc, in MissingField() argument
|
D | mock_error_listener.h | 49 MOCK_METHOD3(InvalidName, void(const LocationTrackerInterface& loc, 52 MOCK_METHOD3(InvalidValue, void(const LocationTrackerInterface& loc, 54 MOCK_METHOD2(MissingField, void(const LocationTrackerInterface& loc,
|
D | proto_writer.cc | 395 string loc = parent()->ToString(); in ToString() local 402 if (loc.empty()) { in ToString() 403 loc = name; in ToString() 405 StrAppend(&loc, ".", name); in ToString() 408 StrAppend(&loc, "[\"", CEscape(name), "\"]"); in ToString() 412 StrAppend(&loc, "[", array_index_ - 1, "]"); in ToString() 414 return loc.empty() ? "." : loc; in ToString()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 192 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/ |
D | KMLFormatter.java | 48 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()
|
D | TrackerEntry.java | 87 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()
|
D | TrackerDataHelper.java | 83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry() argument 84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc)); in writeEntry()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | json_util.cc | 113 virtual void InvalidName(const converter::LocationTrackerInterface& loc, in InvalidName() argument 116 loc.ToString() + ": " + message.ToString()); in InvalidName() 119 virtual void InvalidValue(const converter::LocationTrackerInterface& loc, in InvalidValue() argument 123 loc.ToString() + ": invalid value " + value.ToString() + in InvalidValue() 127 virtual void MissingField(const converter::LocationTrackerInterface& loc, in MissingField() argument 131 loc.ToString() + ": missing field " + missing_name.ToString()); in MissingField()
|
/frameworks/base/services/net/java/android/net/netlink/ |
D | StructInetDiagSockId.java | 53 public StructInetDiagSockId(InetSocketAddress loc, InetSocketAddress rem) { in StructInetDiagSockId() argument 54 mLocSocketAddress = loc; in StructInetDiagSockId()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 305 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/ |
D | TextToSpeech.java | 1476 public int setLanguage(final Locale loc) { 1480 if (loc == null) { 1485 language = loc.getISO3Language(); 1487 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); 1492 country = loc.getISO3Country(); 1494 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e); 1498 String variant = loc.getVariant(); 1786 public int isLanguageAvailable(final Locale loc) { 1793 language = loc.getISO3Language(); 1795 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); [all …]
|
/frameworks/ml/nn/runtime/ |
D | ExecutionBuilder.cpp | 681 DataLocation& loc = info.locationAndLength; in allocatePointerArgumentsToPool() local 683 total += alignBytesNeeded(static_cast<uint32_t>(total), loc.length); in allocatePointerArgumentsToPool() 684 loc.poolIndex = nextPoolIndex; in allocatePointerArgumentsToPool() 685 loc.offset = static_cast<uint32_t>(total); in allocatePointerArgumentsToPool() 686 total += loc.length; in allocatePointerArgumentsToPool() 866 DataLocation& loc = info.locationAndLength; in startComputeOnDevice() local 872 memcpy(data + loc.offset, info.buffer, loc.length); in startComputeOnDevice() 980 DataLocation& loc = info.locationAndLength; in startComputeOnDevice() local 986 memcpy(info.buffer, data + loc.offset, loc.length); in startComputeOnDevice()
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | LineBreaker_Delegate.java | 115 int loc; in nComputeLineBreaks() local 117 while ((loc = it.next()) != BreakIterator.DONE) { in nComputeLineBreaks() 118 breaks.add(loc); in nComputeLineBreaks()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 2022 public void setLocale(@Nullable Locale loc) { in setLocale() argument 2023 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); in setLocale() 2058 public void setLayoutDirection(Locale loc) { in setLayoutDirection() argument 2061 final int layoutDirection = 1 + TextUtils.getLayoutDirectionFromLocale(loc); in setLayoutDirection() 2111 final Locale loc = locs.get(i); in localesToResourceQualifier() local 2112 final int l = loc.getLanguage().length(); in localesToResourceQualifier() 2116 final int s = loc.getScript().length(); in localesToResourceQualifier() 2117 final int c = loc.getCountry().length(); in localesToResourceQualifier() 2118 final int v = loc.getVariant().length(); in localesToResourceQualifier() 2126 sb.append(loc.getLanguage()); in localesToResourceQualifier() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | descriptor_unittest.cc | 6439 static string PrintSourceLocation(const SourceLocation &loc) { in PrintSourceLocation() argument 6441 1 + loc.start_line, in PrintSourceLocation() 6442 1 + loc.start_column, in PrintSourceLocation() 6443 1 + loc.end_line, in PrintSourceLocation() 6444 1 + loc.end_column); in PrintSourceLocation() 6460 SourceLocation loc; in TEST_F() local 6466 EXPECT_TRUE(a_desc->GetSourceLocation(&loc)); in TEST_F() 6467 EXPECT_EQ("2:1-7:2", PrintSourceLocation(loc)); in TEST_F() 6470 EXPECT_TRUE(a_b_desc->GetSourceLocation(&loc)); in TEST_F() 6471 EXPECT_EQ("4:3-6:4", PrintSourceLocation(loc)); in TEST_F() [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | SaveUi.java | 581 final int[] loc = view.getLocationOnScreen(); in dump() local 583 pw.print('('); pw.print(loc[0]); pw.print(','); pw.print(loc[1]);pw.print(')'); in dump() 585 pw.print(loc[0] + view.getWidth()); pw.print(','); in dump() 586 pw.print(loc[1] + view.getHeight());pw.println(')'); in dump()
|
/frameworks/base/tools/stats_log_api_gen/ |
D | Collation.cpp | 77 SourceLocation loc; in print_error() local 78 if (field->GetSourceLocation(&loc)) { in print_error() 80 fprintf(stderr, "%s:%d: ", file->name().c_str(), loc.start_line); in print_error()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSFragment.java | 188 int[] loc = edit.getLocationOnScreen(); in setEditLocation() local 189 int x = loc[0] + edit.getWidth() / 2; in setEditLocation() 190 int y = loc[1] + edit.getHeight() / 2; in setEditLocation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarView.java | 247 int[] loc = new int[2]; 249 buttonView.getLocationInWindow(loc); 250 info.touchableRegion.set(loc[0], loc[1], loc[0] + buttonView.getWidth(), 251 loc[1] + buttonView.getHeight());
|