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/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java175 /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, argument
178 (int) loc.left, (int) loc.top, (int) loc.width(), (int) loc.height(),
184 /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, argument
187 loc.left, loc.top, loc.width(), loc
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp192 GLint loc = glGetUniformLocation(pgm, var); local
193 if (loc >= 0) {
198 glUniform4f(loc, x, y, z, w);
214 GLint loc = glGetUniformLocation(pgm, "u_texOff"); local
215 glUniform2f(loc, ((float)ct) / passCount, ((float)ct) / 2.f / passCount);
274 GLint 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/core/java/android/transition/
H A DFade.java123 int[] loc = new int[2];
124 transitionValues.view.getLocationOnScreen(loc);
125 transitionValues.values.put(PROPNAME_SCREEN_X, loc[0]);
126 transitionValues.values.put(PROPNAME_SCREEN_Y, loc[1]);
242 int[] loc = new int[2];
243 sceneRoot.getLocationOnScreen(loc);
244 overlayView.offsetLeftAndRight((screenX - loc[0]) - overlayView.getLeft());
245 overlayView.offsetTopAndBottom((screenY - loc[1]) - overlayView.getTop());
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java189 final Locale loc = conf.locale;
190 String localeString = loc.getLanguage();
191 String country = loc.getCountry();
206 Locale loc = conf.locale;
216 loc = null;
219 loc = new Locale(language, country);
223 if (loc == null) return; // Couldn't find the saved locale in this version of the software
228 config.locale = loc;
/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.java1435 void walk(int loc) {
1436 switch (visited[loc]) {
1438 visited[loc] = PENDING;
1439 for (Arc arc : arcsByVertex[loc]) {
1443 visited[loc] = COMPLETE;
1458 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) {
1459 walk(loc);
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java241 private static native void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, argument
243 private static native void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, argument
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java1121 * @param loc The locale describing the language to be used.
1127 public int setLanguage(final Locale loc) { argument
1131 if (loc == null) {
1136 language = loc.getISO3Language();
1138 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e);
1143 country = loc.getISO3Country();
1145 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e);
1149 String variant = loc.getVariant();
1205 * @param loc The Locale describing the language to be used.
1211 public int isLanguageAvailable(final Locale loc) { argument
[all...]
/frameworks/base/location/java/android/location/
H A DILocationManager.aidl73 void setTestProviderLocation(String provider, in Location loc);
H A DLocationManager.java1237 * @param loc the mock location
1245 public void setTestProviderLocation(String provider, Location loc) { argument
1246 if (!loc.isComplete()) {
1248 "Incomplete location object, missing timestamp or accuracy? " + loc);
1252 loc.makeComplete();
1260 mService.setTestProviderLocation(provider, loc);
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1324 void walk(int loc) {
1325 switch (visited[loc]) {
1327 visited[loc] = PENDING;
1328 for (Arc arc : arcsByVertex[loc]) {
1332 visited[loc] = COMPLETE;
1347 for (int loc = 0, N = arcsByVertex.length; loc < N; loc++) {
1348 walk(loc);
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java1047 int[] loc = mTmpLocation;
1049 mInputFrame.getLocationInWindow(loc);
1052 loc[1] = decor.getHeight();
1059 outInsets.contentTopInsets = loc[1];
1062 mCandidatesFrame.getLocationInWindow(loc);
1064 outInsets.visibleTopInsets = loc[1];
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCDMAPhone.java543 CdmaCellLocation loc = mSST.mCellLoc;
550 privateLoc.setCellLocationData(loc.getBaseStationId(),
553 loc.getSystemId(), loc.getNetworkId());
554 loc = privateLoc;
556 return loc;
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java748 int loc;
756 loc = Integer.parseInt(arg);
762 if (!mPm.setInstallLocation(loc)) {
773 int loc = mPm.getInstallLocation();
775 if (loc == PackageHelper.APP_INSTALL_AUTO) {
777 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) {
779 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) {
782 System.out.println(loc + "[" + locStr + "]");
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java448 GsmCellLocation loc = ((GsmCellLocation)mPhone.getCellLocation());
450 mSS.getOperatorNumeric(), loc != null ? loc.getCid() : -1);
887 GsmCellLocation loc = mNewCellLoc;
888 if (loc != null) cid = loc.getCid();
H A DGsmCallTracker.java915 GsmCellLocation loc = ((GsmCellLocation)mPhone.getCellLocation());
917 causeCode, loc != null ? loc.getCid() : -1,
/frameworks/base/core/java/android/content/pm/
H A DIPackageManager.aidl392 boolean setInstallLocation(int loc);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py161 loc='upper left',
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DImageShader.java310 int loc = GLES20.glGetAttribLocation(mProgram, name);
311 if (loc < 0) {
314 return loc;
/frameworks/compile/slang/
H A Dslang_rs_object_ref_count.cpp1529 clang::SourceLocation loc; local
1546 if (CountRSObjectTypes(mCtx, VD->getType().getTypePtr(), loc)) {
1549 FD = clang::FunctionDecl::Create(mCtx, DC, loc, loc, N, T, NULL,
1565 clang::CompoundStmt *CS = BuildCompoundStmt(mCtx, StmtList, loc);
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp375 String8 mcc, mnc, loc, layoutsize, layoutlong, orient, den; local
437 loc = part;
449 if (loc.length() > 0
451 loc += "-";
453 loc += part.string() + 1;
682 this->locale = loc;

Completed in 6117 milliseconds

12