Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java179 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/
DNinePatch_Delegate.java159 /*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/native/opengl/tests/gl_perf/
Dfill_common.cpp192 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/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java121 final Locale loc = conf.locale; in getLocaleData() local
122 String localeString = loc.getLanguage(); in getLocaleData()
123 String country = loc.getCountry(); in getLocaleData()
138 Locale loc = conf.locale; in setLocaleData() local
148 loc = null; in setLocaleData()
151 loc = new Locale(language, country); in setLocaleData()
155 if (loc == null) return; // Couldn't find the saved locale in this version of the software in setLocaleData()
160 config.locale = loc; in setLocaleData()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DKMLFormatter.java48 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()
DTrackerEntry.java87 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()
DTrackerDataHelper.java83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry() argument
84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc)); in writeEntry()
/frameworks/base/docs/html/tools/sdk/
Ddownload.jd53 var loc = window.location.href;
54 if (loc.indexOf('?v=') != -1) {
55 …var filename = loc.substring(loc.indexOf('=')+1,loc.length).replace(/</g,"&lt;").replace(/>/g,"&gt…
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/
DEventHole.java76 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/
DChronometer.java233 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()
DGridLayout.java1388 void walk(int loc) { in topologicalSort() argument
1389 switch (visited[loc]) { in topologicalSort()
1391 visited[loc] = PENDING; in topologicalSort()
1392 for (Arc arc : arcsByVertex[loc]) { in topologicalSort()
1396 visited[loc] = COMPLETE; in topologicalSort()
1411 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort()
1412 walk(loc); in topologicalSort()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1020 public int setLanguage(final Locale loc) {
1024 if (loc == null) {
1027 String language = loc.getISO3Language();
1028 String country = loc.getISO3Country();
1029 String variant = loc.getVariant();
1080 public int isLanguageAvailable(final Locale loc) {
1084 return service.isLanguageAvailable(loc.getISO3Language(),
1085 loc.getISO3Country(), loc.getVariant());
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java157 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/docs/html/training/basics/location/
Dgeocoding.jd75 Location loc = params[0];
79 addresses = geocoder.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1);
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java1473 Location loc = new Location(""); in isInProximity() local
1474 loc.setLatitude(latitude); in isInProximity()
1475 loc.setLongitude(longitude); in isInProximity()
1477 double radius = loc.distanceTo(mLocation); in isInProximity()
1504 public void onLocationChanged(Location loc) { in onLocationChanged() argument
1507 if (loc.getProvider().equals(LocationManager.GPS_PROVIDER)) { in onLocationChanged()
1510 if (isGpsAvailable && loc.getProvider().equals(LocationManager.NETWORK_PROVIDER)) { in onLocationChanged()
1516 double latitude = loc.getLatitude(); in onLocationChanged()
1517 double longitude = loc.getLongitude(); in onLocationChanged()
1518 float accuracy = loc.getAccuracy(); in onLocationChanged()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaDataConnectionTracker.java857 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation()); in onCdmaDataDetached() local
859 loc != null ? loc.getBaseStationId() : -1, in onCdmaDataDetached()
898 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation()); in writeEventLogCdmaDataDrop() local
900 loc != null ? loc.getBaseStationId() : -1, in writeEventLogCdmaDataDrop()
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java723 int loc; in runSetInstallLocation() local
732 loc = Integer.parseInt(arg); in runSetInstallLocation()
739 if (!mPm.setInstallLocation(loc)) { in runSetInstallLocation()
751 int loc = mPm.getInstallLocation(); in runGetInstallLocation() local
753 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation()
755 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation()
757 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
760 System.out.println(loc + "[" + locStr + "]"); in runGetInstallLocation()
/frameworks/base/location/java/android/location/
DILocationManager.aidl82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument
DLocationManager.java1226 public void setTestProviderLocation(String provider, Location loc) { in setTestProviderLocation() argument
1228 mService.setTestProviderLocation(provider, loc); in setTestProviderLocation()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java1310 void walk(int loc) { in topologicalSort() argument
1311 switch (visited[loc]) { in topologicalSort()
1313 visited[loc] = PENDING; in topologicalSort()
1314 for (Arc arc : arcsByVertex[loc]) { in topologicalSort()
1318 visited[loc] = COMPLETE; in topologicalSort()
1332 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) { in topologicalSort()
1333 walk(loc); in topologicalSort()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmServiceStateTracker.java449 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in handleMessage() local
451 ss.getOperatorNumeric(), loc != null ? loc.getCid() : -1); in handleMessage()
811 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in pollStateDone() local
812 if (loc != null) cid = loc.getCid(); in pollStateDone()
DGsmCallTracker.java889 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation()); in handleMessage() local
891 causeCode, loc != null ? loc.getCid() : -1, in handleMessage()
DGsmDataConnectionTracker.java2561 CellLocation loc = mPhone.getCellLocation(); in getCellLocationId() local
2563 if (loc != null) { in getCellLocationId()
2564 if (loc instanceof GsmCellLocation) { in getCellLocationId()
2565 cid = ((GsmCellLocation)loc).getCid(); in getCellLocationId()
2566 } else if (loc instanceof CdmaCellLocation) { in getCellLocationId()
2567 cid = ((CdmaCellLocation)loc).getBaseStationId(); in getCellLocationId()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java1011 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/
Dslang_rs_object_ref_count.cpp1517 clang::SourceLocation loc; in CreateStaticGlobalDtor() local
1533 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) { in CreateStaticGlobalDtor()
1536 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL); in CreateStaticGlobalDtor()
1551 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc); in CreateStaticGlobalDtor()

12