/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 179 Location loc = new Location(""); in testAltitude() local 181 loc.setAltitude(1); in testAltitude() 183 assertEquals(message, loc.getAltitude(), 1, 0); in testAltitude() 185 assertTrue(message, loc.hasAltitude()); in testAltitude() 187 loc.removeAltitude(); in testAltitude() 189 assertFalse(message, loc.hasAltitude()); in testAltitude() 191 assertEquals(message, loc.getAltitude(), 0, 0); in testAltitude() 196 Location loc = new Location(""); in testSpeed() local 198 loc.setSpeed(1); in testSpeed() 200 assertEquals(message, loc.getSpeed(), 1, 0); in testSpeed() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | NinePatch_Delegate.java | 176 /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, in nativeDraw() argument 179 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, in nativeDraw() 185 /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, in nativeDraw() argument 188 loc.left, loc.top, loc.right, loc.bottom, in nativeDraw()
|
/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/base/docs/html/sdk/ |
D | download.jd | 54 var loc = window.location.href; 55 if (loc.indexOf('?v=') != -1) { 56 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 81 var loc = window.location.href; 82 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 189 final Locale loc = conf.locale; in getLocaleData() local 190 String localeString = loc.getLanguage(); in getLocaleData() 191 String country = loc.getCountry(); in getLocaleData() 206 Locale loc = conf.locale; in setLocaleData() local 216 loc = null; in setLocaleData() 219 loc = new Locale(language, country); in setLocaleData() 223 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData() 228 config.locale = loc; in setLocaleData()
|
/frameworks/base/core/java/android/transition/ |
D | Fade.java | 123 int[] loc = new int[2]; in captureValues() local 124 transitionValues.view.getLocationOnScreen(loc); in captureValues() 125 transitionValues.values.put(PROPNAME_SCREEN_X, loc[0]); in captureValues() 126 transitionValues.values.put(PROPNAME_SCREEN_Y, loc[1]); in captureValues() 242 int[] loc = new int[2]; in onDisappear() local 243 sceneRoot.getLocationOnScreen(loc); in onDisappear() 244 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft()); in onDisappear() 245 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop()); in onDisappear()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 233 Locale loc = Locale.getDefault(); in updateText() local 234 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText() 235 mFormatterLocale = loc; in updateText() 236 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
|
D | GridLayout.java | 1435 void walk(int loc) { in topologicalSort() argument 1436 switch (visited[loc]) { in topologicalSort() 1438 visited[loc] = PENDING; in topologicalSort() 1439 for (Arc arc : arcsByVertex[loc]) { in topologicalSort() 1443 visited[loc] = COMPLETE; in topologicalSort() 1458 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort() 1459 walk(loc); in topologicalSort()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeech.java | 1135 public int setLanguage(final Locale loc) { 1139 if (loc == null) { 1144 language = loc.getISO3Language(); 1146 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); 1151 country = loc.getISO3Country(); 1153 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e); 1157 String variant = loc.getVariant(); 1219 public int isLanguageAvailable(final Locale loc) { 1226 language = loc.getISO3Language(); 1228 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 241 private static native void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, in nativeDraw() argument 243 private static native void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, in nativeDraw() argument
|
/frameworks/base/docs/html/training/location/ |
D | display-address.jd | 148 Location loc = params[0]; 155 addresses = geocoder.getFromLocation(loc.getLatitude(), 156 loc.getLongitude(), 1); 165 Double.toString(loc.getLatitude()) + 167 Double.toString(loc.getLongitude()) +
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 1245 public void setTestProviderLocation(String provider, Location loc) { in setTestProviderLocation() argument 1246 if (!loc.isComplete()) { in setTestProviderLocation() 1248 "Incomplete location object, missing timestamp or accuracy? " + loc); in setTestProviderLocation() 1252 loc.makeComplete(); in setTestProviderLocation() 1260 mService.setTestProviderLocation(provider, loc); in setTestProviderLocation()
|
D | ILocationManager.aidl | 73 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 748 int loc; in runSetInstallLocation() local 756 loc = Integer.parseInt(arg); in runSetInstallLocation() 762 if (!mPm.setInstallLocation(loc)) { in runSetInstallLocation() 773 int loc = mPm.getInstallLocation(); in runGetInstallLocation() local 775 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation() 777 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation() 779 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation() 782 System.out.println(loc + "[" + locStr + "]"); in runGetInstallLocation()
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
D | GridLayout.java | 1324 void walk(int loc) { in topologicalSort() argument 1325 switch (visited[loc]) { in topologicalSort() 1327 visited[loc] = PENDING; in topologicalSort() 1328 for (Arc arc : arcsByVertex[loc]) { in topologicalSort() 1332 visited[loc] = COMPLETE; in topologicalSort() 1347 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort() 1348 walk(loc); in topologicalSort()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | InputMethodService.java | 1047 int[] loc = mTmpLocation; in onComputeInsets() local 1049 mInputFrame.getLocationInWindow(loc); in onComputeInsets() 1052 loc[1] = decor.getHeight(); in onComputeInsets() 1059 outInsets.contentTopInsets = loc[1]; in onComputeInsets() 1062 mCandidatesFrame.getLocationInWindow(loc); in onComputeInsets() 1064 outInsets.visibleTopInsets = loc[1]; in onComputeInsets()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CDMAPhone.java | 544 CdmaCellLocation loc = mSST.mCellLoc; in getCellLocation() local 551 privateLoc.setCellLocationData(loc.getBaseStationId(), in getCellLocation() 554 loc.getSystemId(), loc.getNetworkId()); in getCellLocation() 555 loc = privateLoc; in getCellLocation() 557 return loc; in getCellLocation()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmServiceStateTracker.java | 448 GsmCellLocation loc = ((GsmCellLocation)mPhone.getCellLocation()); in handleMessage() local 450 mSS.getOperatorNumeric(), loc != null ? loc.getCid() : -1); in handleMessage() 887 GsmCellLocation loc = mNewCellLoc; in pollStateDone() local 888 if (loc != null) cid = loc.getCid(); in pollStateDone()
|
D | GsmCallTracker.java | 915 GsmCellLocation loc = ((GsmCellLocation)mPhone.getCellLocation()); in handleMessage() local 917 causeCode, loc != null ? loc.getCid() : -1, in handleMessage()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ImageShader.java | 310 int loc = GLES20.glGetAttribLocation(mProgram, name); in getAttributeLocation() local 311 if (loc < 0) { in getAttributeLocation() 314 return loc; in getAttributeLocation()
|
/frameworks/compile/slang/ |
D | slang_rs_object_ref_count.cpp | 1529 clang::SourceLocation loc; in CreateStaticGlobalDtor() local 1546 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) { in CreateStaticGlobalDtor() 1549 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL, in CreateStaticGlobalDtor() 1565 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc); in CreateStaticGlobalDtor()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTracker.java | 2313 CellLocation loc = mPhone.getCellLocation(); in getCellLocationId() local 2315 if (loc != null) { in getCellLocationId() 2316 if (loc instanceof GsmCellLocation) { in getCellLocationId() 2317 cid = ((GsmCellLocation)loc).getCid(); in getCellLocationId() 2318 } else if (loc instanceof CdmaCellLocation) { in getCellLocationId() 2319 cid = ((CdmaCellLocation)loc).getBaseStationId(); in getCellLocationId()
|