/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/compile/libbcc/tests/ |
D | disassem.cpp | 291 u_int loc); 293 u_int loc); 295 u_int loc); 300 disasm(const disasm_interface_t *di, u_int loc, int altfmt) in disasm() argument 312 insn = di->di_readword(loc); in disasm() 326 return(loc + INSN_SIZE); in disasm() 385 disasm_insn_ldrstr(di, insn, loc); in disasm() 389 disasm_insn_ldrhstrh(di, insn, loc); in disasm() 415 di->di_printaddr(loc + 8 + branch); in disasm() 423 di->di_printaddr(loc + 8 + branch); in disasm() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | NinePatch_Delegate.java | 159 /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, in nativeDraw() argument 162 (int) loc.left, (int) loc.top, (int) loc.width(), (int) loc.height(), in nativeDraw() 168 /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, in nativeDraw() argument 171 loc.left, loc.top, loc.width(), loc.height(), in nativeDraw()
|
/frameworks/base/opengl/tests/gl_perf/ |
D | fill_common.cpp | 192 int loc = glGetUniformLocation(pgm, var); in randUniform() local 193 if (loc >= 0) { in randUniform() 198 glUniform4f(loc, x, y, z, w); in randUniform() 214 int loc = glGetUniformLocation(pgm, "u_texOff"); in doLoop() local 215 glUniform2f(loc, ((float)ct) / passCount, ((float)ct) / 2.f / passCount); in doLoop() 274 int 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/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 136 final Locale loc = conf.locale; in getLocaleData() local 137 String localeString = loc.getLanguage(); in getLocaleData() 138 String country = loc.getCountry(); in getLocaleData() 153 Locale loc = conf.locale; in setLocaleData() local 163 loc = null; in setLocaleData() 166 loc = new Locale(language, country); in setLocaleData() 170 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData() 175 config.locale = loc; in setLocaleData()
|
/frameworks/base/docs/html/sdk/ |
D | download.jd | 53 var loc = window.location.href; 54 if (loc.indexOf('?v=') != -1) { 55 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 80 var loc = window.location.href; 81 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | EventHole.java | 76 final int[] loc = mLoc; in onComputeInternalInsets() local 77 getLocationInWindow(loc); in onComputeInternalInsets() 78 final int l = loc[0]; in onComputeInternalInsets() 80 final int t = loc[1]; in onComputeInternalInsets()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 230 Locale loc = Locale.getDefault(); in updateText() local 231 if (mFormatter == null || !loc.equals(mFormatterLocale)) { in updateText() 232 mFormatterLocale = loc; in updateText() 233 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
|
D | GridLayout.java | 1270 void walk(int loc) { in topologicalSort() argument 1271 switch (visited[loc]) { in topologicalSort() 1273 visited[loc] = PENDING; in topologicalSort() 1274 for (Arc arc : arcsByVertex[loc]) { in topologicalSort() 1278 visited[loc] = COMPLETE; in topologicalSort() 1292 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort() 1293 walk(loc); in topologicalSort()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeech.java | 915 public int setLanguage(final Locale loc) { 919 if (loc == null) { 922 String language = loc.getISO3Language(); 923 String country = loc.getISO3Country(); 924 String variant = loc.getVariant(); 975 public int isLanguageAvailable(final Locale loc) { 979 return service.isLanguageAvailable(loc.getISO3Language(), 980 loc.getISO3Country(), loc.getVariant());
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 157 private static native void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, in nativeDraw() argument 160 private static native void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, in nativeDraw() argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | CdmaDataConnectionTracker.java | 796 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation()); in onCdmaDataDetached() local 798 loc != null ? loc.getBaseStationId() : -1, in onCdmaDataDetached() 837 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation()); in writeEventLogCdmaDataDrop() local 839 loc != null ? loc.getBaseStationId() : -1, in writeEventLogCdmaDataDrop()
|
/frameworks/base/services/java/com/android/server/ |
D | LocationManagerService.java | 1394 Location loc = new Location(""); in isInProximity() local 1395 loc.setLatitude(latitude); in isInProximity() 1396 loc.setLongitude(longitude); in isInProximity() 1398 double radius = loc.distanceTo(mLocation); in isInProximity() 1425 public void onLocationChanged(Location loc) { in onLocationChanged() argument 1428 if (loc.getProvider().equals(LocationManager.GPS_PROVIDER)) { in onLocationChanged() 1431 if (isGpsAvailable && loc.getProvider().equals(LocationManager.NETWORK_PROVIDER)) { in onLocationChanged() 1437 double latitude = loc.getLatitude(); in onLocationChanged() 1438 double longitude = loc.getLongitude(); in onLocationChanged() 1439 float accuracy = loc.getAccuracy(); in onLocationChanged() [all …]
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 699 int loc; in runSetInstallLocation() local 708 loc = Integer.parseInt(arg); in runSetInstallLocation() 715 if (!mPm.setInstallLocation(loc)) { in runSetInstallLocation() 727 int loc = mPm.getInstallLocation(); in runGetInstallLocation() local 729 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation() 731 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation() 733 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation() 736 System.out.println(loc + "[" + locStr + "]"); in runGetInstallLocation()
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmServiceStateTracker.java | 433 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in handleMessage() local 435 ss.getOperatorNumeric(), loc != null ? loc.getCid() : -1); in handleMessage() 806 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in pollStateDone() local 807 if (loc != null) cid = loc.getCid(); in pollStateDone()
|
D | GsmCallTracker.java | 886 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in handleMessage() local 888 causeCode, loc != null ? loc.getCid() : -1, in handleMessage()
|
D | GsmDataConnectionTracker.java | 2337 CellLocation loc = mPhone.getCellLocation(); in getCellLocationId() local 2339 if (loc != null) { in getCellLocationId() 2340 if (loc instanceof GsmCellLocation) { in getCellLocationId() 2341 cid = ((GsmCellLocation)loc).getCid(); in getCellLocationId() 2342 } else if (loc instanceof CdmaCellLocation) { in getCellLocationId() 2343 cid = ((CdmaCellLocation)loc).getBaseStationId(); in getCellLocationId()
|
/frameworks/base/location/java/android/location/ |
D | ILocationManager.aidl | 82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument
|
D | LocationManager.java | 1094 public void setTestProviderLocation(String provider, Location loc) { in setTestProviderLocation() argument 1096 mService.setTestProviderLocation(provider, loc); in setTestProviderLocation()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | InputMethodService.java | 1011 int[] loc = mTmpLocation; in onComputeInsets() local 1013 mInputFrame.getLocationInWindow(loc); in onComputeInsets() 1016 loc[1] = decor.getHeight(); in onComputeInsets() 1023 outInsets.contentTopInsets = loc[1]; in onComputeInsets() 1026 mCandidatesFrame.getLocationInWindow(loc); in onComputeInsets() 1028 outInsets.visibleTopInsets = loc[1]; in onComputeInsets()
|
/frameworks/compile/slang/ |
D | slang_rs_object_ref_count.cpp | 1496 clang::SourceLocation loc; in CreateStaticGlobalDtor() local 1512 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) { in CreateStaticGlobalDtor() 1515 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL); in CreateStaticGlobalDtor() 1530 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc); in CreateStaticGlobalDtor()
|
/frameworks/base/tools/aapt/ |
D | AaptAssets.cpp | 328 String8 mcc, mnc, loc, layoutsize, layoutlong, orient, den; in initFromDirName() local 390 loc = part; in initFromDirName() 402 if (loc.length() > 0 in initFromDirName() 404 loc += "-"; in initFromDirName() 406 loc += part.string() + 1; in initFromDirName() 623 this->locale = loc; in initFromDirName()
|