Searched refs:loc (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/location/tests/locationtests/src/android/location/
H A DLocationTest.java179 Location loc = new Location("");
181 loc.setAltitude(1);
183 assertEquals(message, loc.getAltitude(), 1, 0);
185 assertTrue(message, loc.hasAltitude());
187 loc.removeAltitude();
189 assertFalse(message, loc.hasAltitude());
191 assertEquals(message, loc.getAltitude(), 0, 0);
196 Location loc = new Location("");
198 loc.setSpeed(1);
200 assertEquals(message, loc
[all...]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DKMLFormatter.java48 Location loc = entry.getLocation();
51 builder.addLine("accuracy = " + loc.getAccuracy());
60 builder.addLine(loc.getLongitude() + "," + loc.getLatitude() + ","
61 + loc.getAltitude());
H A DTrackerEntry.java87 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 DTrackerDataHelper.java83 public void writeEntry(Location loc, float distFromNetLoc) { argument
84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc));
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java131 final Locale loc = conf.locale;
132 String localeString = loc.getLanguage();
133 String country = loc.getCountry();
148 Locale loc = conf.locale;
158 loc = null;
161 loc = new Locale(language, country);
165 if (loc == null) return; // Couldn't find the saved locale in this version of the software
170 config.locale = loc;
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp192 int loc = glGetUniformLocation(pgm, var); local
193 if (loc >= 0) {
198 glUniform4f(loc, x, y, z, w);
214 int loc = glGetUniformLocation(pgm, "u_texOff"); local
215 glUniform2f(loc, ((float)ct) / passCount, ((float)ct) / 2.f / passCount);
274 int loc = glGetUniformLocation(pgm, "u_tex0"); local
275 if (loc >= 0) glUniform1i(loc, 0);
276 loc = glGetUniformLocation(pgm, "u_tex1");
277 if (loc >
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java159 /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, argument
162 (int) loc.left, (int) loc.top, (int) loc.width(), (int) loc.height(),
168 /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, argument
171 loc.left, loc.top, loc.width(), loc
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DEventHole.java76 final int[] loc = mLoc;
77 getLocationInWindow(loc);
78 final int l = loc[0];
80 final int t = loc[1];
/frameworks/base/core/java/android/widget/
H A DChronometer.java233 Locale loc = Locale.getDefault();
234 if (mFormatter == null || !loc.equals(mFormatterLocale)) {
235 mFormatterLocale = loc;
236 mFormatter = new Formatter(mFormatBuilder, loc);
H A DGridLayout.java1388 void walk(int loc) {
1389 switch (visited[loc]) {
1391 visited[loc] = PENDING;
1392 for (Arc arc : arcsByVertex[loc]) {
1396 visited[loc] = COMPLETE;
1411 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) {
1412 walk(loc);
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java157 private static native void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, argument
160 private static native void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, argument
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java1014 * @param loc The locale describing the language to be used.
1020 public int setLanguage(final Locale loc) { argument
1024 if (loc == null) {
1027 String language = loc.getISO3Language();
1028 String country = loc.getISO3Country();
1029 String variant = loc.getVariant();
1074 * @param loc The Locale describing the language to be used.
1080 public int isLanguageAvailable(final Locale loc) { argument
1084 return service.isLanguageAvailable(loc.getISO3Language(),
1085 loc
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DCameraWidgetFrame.java268 final int[] loc = new int[2];
269 root.getLocationInWindow(loc);
270 final int finishCenter = loc[1] + finishHeight / 2;
272 child.getLocationInWindow(loc);
273 final int startCenter = loc[1] + startHeight / 2;
/frameworks/base/location/java/android/location/
H A DILocationManager.aidl73 void setTestProviderLocation(String provider, in Location loc);
H A DLocationManager.java1208 * @param loc the mock location
1216 public void setTestProviderLocation(String provider, Location loc) { argument
1217 if (!loc.isComplete()) {
1219 "Incomplete location object, missing timestamp or accuracy? " + loc);
1223 loc.makeComplete();
1231 mService.setTestProviderLocation(provider, loc);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaDataConnectionTracker.java761 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation());
763 loc != null ? loc.getBaseStationId() : -1,
802 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation());
804 loc != null ? loc.getBaseStationId() : -1,
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1310 void walk(int loc) {
1311 switch (visited[loc]) {
1313 visited[loc] = PENDING;
1314 for (Arc arc : arcsByVertex[loc]) {
1318 visited[loc] = COMPLETE;
1332 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) {
1333 walk(loc);
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java1036 int[] loc = mTmpLocation;
1038 mInputFrame.getLocationInWindow(loc);
1041 loc[1] = decor.getHeight();
1048 outInsets.contentTopInsets = loc[1];
1051 mCandidatesFrame.getLocationInWindow(loc);
1053 outInsets.visibleTopInsets = loc[1];
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java440 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
442 ss.getOperatorNumeric(), loc != null ? loc.getCid() : -1);
852 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
853 if (loc != null) cid = loc.getCid();
H A DGsmCallTracker.java890 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
892 causeCode, loc != null ? loc.getCid() : -1,
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java726 int loc;
734 loc = Integer.parseInt(arg);
740 if (!mPm.setInstallLocation(loc)) {
751 int loc = mPm.getInstallLocation();
753 if (loc == PackageHelper.APP_INSTALL_AUTO) {
755 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) {
757 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) {
760 System.out.println(loc + "[" + locStr + "]");
/frameworks/base/core/java/android/content/pm/
H A DIPackageManager.aidl361 boolean setInstallLocation(int loc);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py161 loc='upper left',
/frameworks/base/services/java/com/android/server/
H A DLocationManagerService.java1304 if (D) Log.d(TAG, "not returning last loc for blacklisted app: " +
1549 Location loc, Location lastLoc, UpdateRecord record, long now) {
1557 long delta = (loc.getElapsedRealtimeNanos() - lastLoc.getElapsedRealtimeNanos()) / 1000000L;
1565 if (loc.distanceTo(lastLoc) <= minDistance) {
1638 Log.d(TAG, "skipping loc update for background user " + receiverUserId +
1646 if (D) Log.d(TAG, "skipping loc update for blacklisted app: " +
1907 public void setTestProviderLocation(String provider, Location loc) { argument
1916 mockProvider.setLocation(loc);
1548 shouldBroadcastSafe( Location loc, Location lastLoc, UpdateRecord record, long now) argument
/frameworks/compile/slang/
H A Dslang_rs_object_ref_count.cpp1523 clang::SourceLocation loc; local
1539 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) {
1542 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL);
1557 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc);

Completed in 483 milliseconds

12