/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | LocationTest.java | 179 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 D | KMLFormatter.java | 48 Location loc = entry.getLocation(); 51 builder.addLine("accuracy = " + loc.getAccuracy()); 60 builder.addLine(loc.getLongitude() + "," + loc.getLatitude() + "," 61 + loc.getAltitude());
|
H A D | TrackerEntry.java | 87 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 D | TrackerDataHelper.java | 83 public void writeEntry(Location loc, float distFromNetLoc) { argument 84 writeEntry(TrackerEntry.createEntry(loc, distFromNetLoc));
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | NinePatch_Delegate.java | 176 /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, argument 179 (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, 185 /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, argument 188 loc.left, loc.top, loc.right, loc [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 192 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 D | Fade.java | 123 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 D | SettingsHelper.java | 189 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 D | Chronometer.java | 233 Locale loc = Locale.getDefault(); 234 if (mFormatter == null || !loc.equals(mFormatterLocale)) { 235 mFormatterLocale = loc; 236 mFormatter = new Formatter(mFormatBuilder, loc);
|
H A D | GridLayout.java | 1435 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 D | NinePatch.java | 241 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 D | TextToSpeech.java | 1129 * @param loc The locale describing the language to be used. 1135 public int setLanguage(final Locale loc) { argument 1139 if (loc == null) { 1144 language = loc.getISO3Language(); 1146 Log.w(TAG, "Couldn't retrieve ISO 639-2/T language code for locale: " + loc, e); 1151 country = loc.getISO3Country(); 1153 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e); 1157 String variant = loc.getVariant(); 1213 * @param loc The Locale describing the language to be used. 1219 public int isLanguageAvailable(final Locale loc) { argument [all...] |
/frameworks/base/location/java/android/location/ |
H A D | ILocationManager.aidl | 73 void setTestProviderLocation(String provider, in Location loc);
|
H A D | LocationManager.java | 1237 * @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 D | GridLayout.java | 1324 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 D | InputMethodService.java | 1047 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 D | CDMAPhone.java | 544 CdmaCellLocation loc = mSST.mCellLoc; 551 privateLoc.setCellLocationData(loc.getBaseStationId(), 554 loc.getSystemId(), loc.getNetworkId()); 555 loc = privateLoc; 557 return loc;
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
H A D | Pm.java | 748 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 D | GsmServiceStateTracker.java | 448 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 D | GsmCallTracker.java | 915 GsmCellLocation loc = ((GsmCellLocation)mPhone.getCellLocation()); 917 causeCode, loc != null ? loc.getCid() : -1,
|
/frameworks/base/core/java/android/content/pm/ |
H A D | IPackageManager.aidl | 393 boolean setInstallLocation(int loc);
|
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 161 loc='upper left',
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 310 int loc = GLES20.glGetAttribLocation(mProgram, name); 311 if (loc < 0) { 314 return loc;
|
/frameworks/compile/slang/ |
H A D | slang_rs_object_ref_count.cpp | 1529 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 D | AaptAssets.cpp | 375 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;
|