Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 143) sorted by relevance

123456

/packages/apps/ContactsCommon/src/com/android/contacts/common/location/
DUpdateCountryService.java1 package com.android.contacts.common.location;
8 import android.location.Address;
9 import android.location.Geocoder;
10 import android.location.Location;
32 public static void updateCountry(Context context, Location location) { in updateCountry() argument
35 serviceIntent.putExtra(UpdateCountryService.KEY_INTENT_LOCATION, location); in updateCountry()
46 final Location location = (Location) intent.getParcelableExtra(KEY_INTENT_LOCATION); in onHandleIntent() local
47 final String country = getCountryFromLocation(getApplicationContext(), location); in onHandleIntent()
69 private String getCountryFromLocation(Context context, Location location) { in getCountryFromLocation() argument
74 location.getLatitude(), location.getLongitude(), 1); in getCountryFromLocation()
DCountryDetector.java1 package com.android.contacts.common.location;
8 import android.location.Geocoder;
9 import android.location.Location;
10 import android.location.LocationManager;
208 final Location location = (Location)intent.getExtras().get( in onReceive() local
211 UpdateCountryService.updateCountry(context, location); in onReceive()
/packages/apps/LegacyCamera/src/com/android/camera/
DLocationManager.java20 import android.location.Location;
21 import android.location.LocationProvider;
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
76 mLocationManager = (android.location.LocationManager) in startReceivingLocationUpdates()
82 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates()
93 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates()
122 implements android.location.LocationListener {
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider)) { in onLocationChanged()
[all …]
DStorage.java21 import android.location.Location;
53 Location location, int orientation, byte[] jpeg, int width, int height) { in addImage() argument
82 if (location != null) { in addImage()
83 values.put(ImageColumns.LATITUDE, location.getLatitude()); in addImage()
84 values.put(ImageColumns.LONGITUDE, location.getLongitude()); in addImage()
/packages/apps/Camera2/src/com/android/camera/app/
DLegacyLocationProvider.java20 import android.location.Location;
34 private android.location.LocationManager mLocationManager;
38 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
90 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates()
101 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates()
129 implements android.location.LocationListener {
166 case android.location.LocationProvider.OUT_OF_SERVICE: in onStatusChanged()
167 case android.location.LocationProvider.TEMPORARILY_UNAVAILABLE: { in onStatusChanged()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DPackageDownloadInfo.java60 public final String location; field in PackageDownloadInfo
80 location = builder.mLocation; in PackageDownloadInfo()
93 location = in.readString(); in PackageDownloadInfo()
103 if (TextUtils.isEmpty(location)) { in validateFields()
120 out.writeString(location); in writeToParcel()
138 && Objects.equals(location, that.location) in equals()
152 public Builder setLocation(String location) { in setLocation() argument
153 mLocation = location; in setLocation()
/packages/apps/Camera2/src/com/android/camera/
DStorage.java23 import android.location.Location;
92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
121 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument
127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, in addImage()
150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument
154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore()
173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData() argument
192 if (location != null) { in getContentValuesForData()
193 values.put(ImageColumns.LATITUDE, location.getLatitude()); in getContentValuesForData()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolderWatcher.java111 final int location = insertAtNextEmptyLocation(uri); in startWatching() local
112 LogUtils.d(LOG_TAG, "Watching %s, at position %d.", uri, location); in startWatching()
118 lm.initLoader(getLoaderFromPosition(location), args, mUnreadCallback); in startWatching()
128 int location = -1; in insertAtNextEmptyLocation() local
133 location = i; in insertAtNextEmptyLocation()
138 if (location < 0) { in insertAtNextEmptyLocation()
140 location = mUris.size(); in insertAtNextEmptyLocation()
141 mUris.add(location, newElement); in insertAtNextEmptyLocation()
143 mUris.set(location, newElement); in insertAtNextEmptyLocation()
145 return location; in insertAtNextEmptyLocation()
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorEvent.java19 import android.location.GpsSatellite;
20 import android.location.Location;
523 public Location getLocation(Location location) { in getLocation() argument
525 if (location == null) { in getLocation()
526 location = new Location("Car-GPS"); in getLocation()
532 location.setLatitude(latE7 * 1e-7); in getLocation()
536 location.setLongitude(longE7 * 1e-7); in getLocation()
539 location.setAccuracy(floatValues[INDEX_LOCATION_ACCURACY]); in getLocation()
542 location.setAltitude(floatValues[INDEX_LOCATION_ALTITUDE]); in getLocation()
545 location.setSpeed(floatValues[INDEX_LOCATION_SPEED]); in getLocation()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java50 final String location = "Location"; field in CalendarAppWidgetServiceTest
106 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event()
115 eventInfo.where = location; in testGetAppWidgetModel_1Event()
142 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater()
145 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater()
164 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater()
167 cursor.addRow(getRow(1, start, end, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater()
176 private Object[] getRow(int allDay, long begin, long end, String title, String location, in getRow() argument
183 row[CalendarAppWidgetService.INDEX_EVENT_LOCATION] = new String(location); in getRow()
/packages/apps/Camera2/src/com/android/camera/util/
DExifUtil.java20 import android.location.Location;
59 Optional<Location> location) { in populateExif() argument
69 if (location.isPresent()) { in populateExif()
70 addLocationToExif(location.get()); in populateExif()
79 public void addLocationToExif(Location location) { in addLocationToExif() argument
82 mExif.addGpsTags(location.getLatitude(), location.getLongitude()); in addLocationToExif()
83 mExif.addGpsDateTimeStampTag(location.getTime()); in addLocationToExif()
85 if (location.hasAltitude()) { in addLocationToExif()
86 double altitude = location.getAltitude(); in addLocationToExif()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DInstallPackageTask.java97 if (TextUtils.isEmpty(info.location)) { in run()
100 } else if (packageContentIsCorrect(info.packageName, info.location)) { in run()
108 mPm.installPackage(Uri.parse("file://" + info.location), in run()
178 new File(mInstallInfo.location).delete(); in packageInstalled()
223 public String location; field in InstallPackageTask.InstallInfo
226 public InstallInfo(String packageName, String location) { in InstallInfo() argument
228 this.location = location; in InstallInfo()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java33 import android.location.Location;
201 Location location, String directory, String filename, in addImage() argument
241 if (location != null) { in addImage()
242 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
243 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage()
282 DataLocation location = param.mLocation; in makeImageList() local
303 if (haveSdCard && location != DataLocation.INTERNAL) { in makeImageList()
311 if (location == DataLocation.INTERNAL || location == DataLocation.ALL) { in makeImageList()
400 public static ImageListParam getImageListParam(DataLocation location, in getImageListParam() argument
403 param.mLocation = location; in getImageListParam()
[all …]
DReverseGeocoderTask.java19 import android.location.Address;
20 import android.location.Geocoder;
32 public void onComplete(String location); in onComplete() argument
71 protected void onPostExecute(String location) { in onPostExecute() argument
72 mCallback.onComplete(location); in onPostExecute()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPart.java372 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation()
373 if (null == location) { in generateLocation()
374 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation()
376 if (null == location) { in generateLocation()
377 location = (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in generateLocation()
381 if (null == location) { in generateLocation()
385 return new String(location); in generateLocation()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCamera.java20 import android.location.Location;
273 public final Location location; field in OneCamera.CaptureParameters
278 public CaptureParameters(String title, int orientation, Location location, File in CaptureParameters() argument
282 this.location = location; in CaptureParameters()
339 public PhotoCaptureParameters(String title, int orientation, Location location, File in PhotoCaptureParameters() argument
342 super(title, orientation, location, debugDataFolder); in PhotoCaptureParameters()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduPart.java397 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation()
398 if(null == location) { in generateLocation()
399 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation()
401 if (null == location) { in generateLocation()
402 location = (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in generateLocation()
406 if (null == location) { in generateLocation()
410 return new String(location); in generateLocation()
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionFactoryImpl.java19 import android.location.Location;
43 Location location) { in createNewSession() argument
46 return new CaptureSessionImpl(title, sessionStartTime, location, temporarySessionFile, in createNewSession()
48 mStackSaverFactory.create(title, location)); in createNewSession()
DStackSaverFactory.java20 import android.location.Location;
52 public StackSaver create(String mTitle, Location location) { in create() argument
53 return new StackSaverImpl(new File(mCameraDirectory, mTitle), location, mContentResolver); in create()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertAdapter.java74 String location = cursor.getString(AlertActivity.INDEX_EVENT_LOCATION); in bindView() local
79 updateView(context, view, eventName, location, startMillis, endMillis, allDay); in bindView()
82 public static void updateView(Context context, View view, String eventName, String location, in updateView() argument
141 if (location == null || location.length() == 0) { in updateView()
144 whereView.setText(location); in updateView()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java20 import android.location.Address;
21 import android.location.Geocoder;
22 import android.location.Location;
23 import android.location.LocationManager;
115 Location location = null; in computeAddress() local
119 location = (provider != null) ? locationManager.getLastKnownLocation(provider) : null; in computeAddress()
120 if (location != null) in computeAddress()
126 if (location != null) { in computeAddress()
128 location.getLatitude(), location.getLongitude(), true); in computeAddress()
/packages/apps/Calendar/
Dmkprojectfile42 <location>SRC_ROOT_DIR/frameworks/ex/common/java</location>
47 <location>SRC_ROOT_DIR/frameworks/opt/calendar/src</location>
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentSession.java20 import android.location.Location;
68 public CaptureIntentSession(String title, Location location, in CaptureIntentSession() argument
71 mLocation = location; in CaptureIntentSession()
88 public void setLocation(Location location) { in setLocation() argument
89 mLocation = location; in setLocation()
DCaptureIntentSessionFactory.java19 import android.location.Location;
33 Location location) { in createNewSession() argument
34 return new CaptureIntentSession(title, location, sessionManager, sessionNotifier); in createNewSession()
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java123 public CharSequence location; field in Event
163 e.location = location; in clone()
184 dest.location = location; in copyTo()
205 e.location = null; in newInstance()
378 e.location = cEvents.getString(PROJECTION_LOCATION_INDEX); in generateEventFromCursor()
544 Log.e("Cal", "+ location = " + location); in dump()
597 if (location != null) { in getTitleAndLocation()
598 String locationString = location.toString(); in getTitleAndLocation()

123456