Home
last modified time | relevance | path

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

123

/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java49 final String location = "Location"; field in CalendarAppWidgetServiceTest
96 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event()
104 eventInfo.where = location; in testGetAppWidgetModel_1Event()
132 eventInfo.where = location + i; in testGetAppWidgetModel_2StaggeredEvents()
142 eventInfo.where = location + i; in testGetAppWidgetModel_2StaggeredEvents()
149 cursor.addRow(getRow(0, tomorrow, tomorrow + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_2StaggeredEvents()
151 cursor.addRow(getRow(0, sunday, sunday + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_2StaggeredEvents()
176 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventToday()
186 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventToday()
191 cursor.addRow(getRow(1, 1262304000000L, 1262390400000L, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventToday()
[all …]
/packages/apps/Camera/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.java22 import android.location.Location;
80 long date, Location location, int orientation, byte[] jpeg, in addImage() argument
85 return addImage(resolver, title, date, location, orientation, in addImage()
91 long date, Location location, int orientation, int jpegLength, in addImage() argument
106 if (location != null) { in addImage()
107 values.put(ImageColumns.LATITUDE, location.getLatitude()); in addImage()
108 values.put(ImageColumns.LONGITUDE, location.getLongitude()); in addImage()
162 String title, Location location, int orientation, byte[] jpeg, in updateImage() argument
196 if (location != null) { in updateImage()
197 values.put(ImageColumns.LATITUDE, location.getLatitude()); in updateImage()
[all …]
/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/Gallery/src/com/android/camera/
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()
DImageManager.java34 import android.location.Location;
204 Location location, String directory, String filename, in addImage() argument
244 if (location != null) { in addImage()
245 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
246 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage()
285 DataLocation location = param.mLocation; in makeImageList() local
306 if (haveSdCard && location != DataLocation.INTERNAL) { in makeImageList()
314 if (location == DataLocation.INTERNAL || location == DataLocation.ALL) { in makeImageList()
414 public static ImageListParam getImageListParam(DataLocation location, in getImageListParam() argument
417 param.mLocation = location; in getImageListParam()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DSlideshowModel.java262 String location; in makePduBody() local
265 location = src.substring("cid:".length()); in makePduBody()
267 location = src; in makePduBody()
271 part.setContentLocation(location.getBytes()); in makePduBody()
276 part.setContentId(location.getBytes()); in makePduBody()
279 int index = location.lastIndexOf("."); in makePduBody()
280 String contentId = (index == -1) ? location in makePduBody()
281 : location.substring(0, index); in makePduBody()
482 public void add(int location, SlideModel object) { in add() argument
487 mSlides.add(location, object); in add()
[all …]
DSlideModel.java360 public void add(int location, MediaModel object) { in add() argument
364 public boolean addAll(int location, in addAll() argument
369 public MediaModel get(int location) { in get() argument
374 return mMedia.get(location); in get()
389 public ListIterator<MediaModel> listIterator(int location) { in listIterator() argument
390 return mMedia.listIterator(location); in listIterator()
393 public MediaModel remove(int location) { in remove() argument
394 MediaModel media = mMedia.get(location); in remove()
401 public MediaModel set(int location, MediaModel object) { in set() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCountryMonitor.java20 import android.location.Country;
21 import android.location.CountryDetector;
22 import android.location.CountryListener;
/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()
DAlertService.java273 info.allDay, info.location); in generateAlerts()
292 info.allDay, info.location); in generateAlerts()
309 info.allDay, info.location); in generateAlerts()
493 final String location = alertCursor.getString(ALERT_INDEX_EVENT_LOCATION); in processQuery() local
588 NotificationInfo newInfo = new NotificationInfo(eventName, location, in processQuery()
702 String tickerText = getTickerText(info.eventName, info.location); in postNotification()
730 private static String getTickerText(String eventName, String location) { in getTickerText() argument
732 if (!TextUtils.isEmpty(location)) { in getTickerText()
733 tickerText = eventName + " - " + location; in getTickerText()
740 String location; field in AlertService.NotificationInfo
[all …]
DAlertUtils.java151 String location) {
191 if (location != null && !TextUtils.isEmpty(loc = location.trim())) {
/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/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()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DSunCalculator.java28 import android.location.Location;
46 SunCalculator(Location location, String timeZoneIdentifier) { in SunCalculator() argument
47 mLocation = location; in SunCalculator()
51 public void setLocation(Location location) { in setLocation() argument
52 mLocation = location; in setLocation()
DGrassRS.java32 import android.location.LocationManager;
33 import android.location.LocationListener;
34 import android.location.Location;
335 private void updateLocation(Location location) { in updateLocation() argument
339 if (location != null) { in updateLocation()
341 final SunCalculator calculator = new SunCalculator(location, timeZone); in updateLocation()
358 public void onLocationChanged(Location location) { in onLocationChanged() argument
359 updateLocation(location); in onLocationChanged()
/packages/apps/Mms/src/com/android/mms/
DMmsApp.java24 import android.location.Country;
25 import android.location.CountryDetector;
26 import android.location.CountryListener;
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DAttachmentLoader.java195 String location = mAttachment.mLocation; in loadAttachment() local
199 location = encodeForExchange2003(location); in loadAttachment()
201 String cmd = "GetAttachment&AttachmentName=" + location; in loadAttachment()
/packages/apps/Email/src/org/apache/commons/io/input/
DSwappedDataInputStream.java140 int location = offset + ( length - remaining ); in readFully() local
141 int count = read( data, location, remaining ); in readFully()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java286 final String location = in buildFromCursor() local
315 location, color, selfStatus)); in buildFromCursor()
355 int startDay, int endDay, String title, String location, int color, int selfStatus) { in populateEventInfo() argument
398 if (!TextUtils.isEmpty(location)) { in populateEventInfo()
400 eventInfo.where = location; in populateEventInfo()
/packages/apps/Camera/src/com/android/camera/ui/
DRotateLayout.java193 public ViewParent invalidateChildInParent(int[] location, Rect r) { in invalidateChildInParent() argument
201 return super.invalidateChildInParent(location, r); in invalidateChildInParent()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java162 public void onCellLocationChanged(CellLocation location) {
163 updateLocation(location);
274 mLocation = (TextView) findViewById(R.id.location); in onCreate()
471 private final void updateLocation(CellLocation location) { in updateLocation() argument
473 if (location instanceof GsmCellLocation) { in updateLocation()
474 GsmCellLocation loc = (GsmCellLocation)location; in updateLocation()
482 } else if (location instanceof CdmaCellLocation) { in updateLocation()
483 CdmaCellLocation loc = (CdmaCellLocation)location; in updateLocation()
/packages/apps/Mms/src/com/android/mms/transaction/
DMmsMessageSender.java60 public MmsMessageSender(Context context, Uri location, long messageSize) { in MmsMessageSender() argument
62 mMessageUri = location; in MmsMessageSender()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java120 int location[] = {0, 0};
121 footer.getLocationOnScreen(location);
122 slotViewBottom = location[1];

123