Searched refs:loc (Results 1 - 25 of 31) 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.java136 final Locale loc = conf.locale;
137 String localeString = loc.getLanguage();
138 String country = loc.getCountry();
153 Locale loc = conf.locale;
163 loc = null;
166 loc = new Locale(language, country);
170 if (loc == null) return; // Couldn't find the saved locale in this version of the software
175 config.locale = loc;
/frameworks/compile/libbcc/tests/
H A Ddisassem.cpp291 u_int loc);
293 u_int loc);
295 u_int loc);
300 disasm(const disasm_interface_t *di, u_int loc, int altfmt) argument
312 insn = di->di_readword(loc);
314 /* di->di_printf("loc=%08x insn=%08x : ", loc, insn);*/
326 return(loc + INSN_SIZE);
385 disasm_insn_ldrstr(di, insn, loc);
389 disasm_insn_ldrhstrh(di, insn, loc);
599 disasm_insn_ldrstr(const disasm_interface_t *di, u_int insn, u_int loc) argument
628 disasm_insn_ldrhstrh(const disasm_interface_t *di, u_int insn, u_int loc) argument
657 disasm_insn_ldcstc(const disasm_interface_t *di, u_int insn, u_int loc) argument
[all...]
/frameworks/base/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.java230 Locale loc = Locale.getDefault();
231 if (mFormatter == null || !loc.equals(mFormatterLocale)) {
232 mFormatterLocale = loc;
233 mFormatter = new Formatter(mFormatBuilder, loc);
H A DGridLayout.java1272 void walk(int loc) {
1273 switch (visited[loc]) {
1275 visited[loc] = PENDING;
1276 for (Arc arc : arcsByVertex[loc]) {
1280 visited[loc] = COMPLETE;
1294 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) {
1295 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.java997 * @param loc The locale describing the language to be used.
1003 public int setLanguage(final Locale loc) { argument
1007 if (loc == null) {
1010 String language = loc.getISO3Language();
1011 String country = loc.getISO3Country();
1012 String variant = loc.getVariant();
1057 * @param loc The Locale describing the language to be used.
1063 public int isLanguageAvailable(final Locale loc) { argument
1067 return service.isLanguageAvailable(loc.getISO3Language(),
1068 loc
[all...]
/frameworks/base/location/java/android/location/
H A DILocationManager.aidl82 void setTestProviderLocation(String provider, in Location loc);
H A DLocationManager.java1094 * @param loc the mock location
1101 public void setTestProviderLocation(String provider, Location loc) { argument
1103 mService.setTestProviderLocation(provider, loc);
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java699 int loc;
708 loc = Integer.parseInt(arg);
715 if (!mPm.setInstallLocation(loc)) {
727 int loc = mPm.getInstallLocation();
729 if (loc == PackageHelper.APP_INSTALL_AUTO) {
731 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) {
733 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) {
736 System.out.println(loc + "[" + locStr + "]");
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DCdmaDataConnectionTracker.java846 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation());
848 loc != null ? loc.getBaseStationId() : -1,
887 CdmaCellLocation loc = (CdmaCellLocation)(mPhone.getCellLocation());
889 loc != null ? loc.getBaseStationId() : -1,
/frameworks/base/services/java/com/android/server/
H A DLocationManagerService.java1394 Location loc = new Location("");
1395 loc.setLatitude(latitude);
1396 loc.setLongitude(longitude);
1398 double radius = loc.distanceTo(mLocation);
1425 public void onLocationChanged(Location loc) { argument
1428 if (loc.getProvider().equals(LocationManager.GPS_PROVIDER)) {
1431 if (isGpsAvailable && loc.getProvider().equals(LocationManager.NETWORK_PROVIDER)) {
1437 double latitude = loc.getLatitude();
1438 double longitude = loc.getLongitude();
1439 float accuracy = loc
1740 shouldBroadcastSafe(Location loc, Location lastLoc, UpdateRecord record) argument
2129 setTestProviderLocation(String provider, Location loc) argument
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java1011 int[] loc = mTmpLocation;
1013 mInputFrame.getLocationInWindow(loc);
1016 loc[1] = decor.getHeight();
1023 outInsets.contentTopInsets = loc[1];
1026 mCandidatesFrame.getLocationInWindow(loc);
1028 outInsets.visibleTopInsets = loc[1];
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java436 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
438 ss.getOperatorNumeric(), loc != null ? loc.getCid() : -1);
811 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
812 if (loc != null) cid = loc.getCid();
H A DGsmCallTracker.java886 GsmCellLocation loc = ((GsmCellLocation)phone.getCellLocation());
888 causeCode, loc != null ? loc.getCid() : -1,
H A DGsmDataConnectionTracker.java2529 CellLocation loc = mPhone.getCellLocation();
2531 if (loc != null) {
2532 if (loc instanceof GsmCellLocation) {
2533 cid = ((GsmCellLocation)loc).getCid();
2534 } else if (loc instanceof CdmaCellLocation) {
2535 cid = ((CdmaCellLocation)loc).getBaseStationId();
/frameworks/base/core/java/android/content/pm/
H A DIPackageManager.aidl352 boolean setInstallLocation(int loc);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py161 loc='upper left',
/frameworks/compile/slang/
H A Dslang_rs_object_ref_count.cpp1498 clang::SourceLocation loc; local
1514 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) {
1517 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL);
1532 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc);

Completed in 386 milliseconds

12