Home
last modified time | relevance | path

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

12

/packages/apps/Gallery3D/src/com/cooliris/media/
DReverseGeocoder.java30 import android.location.Address;
31 import android.location.Criteria;
32 import android.location.Geocoder;
33 import android.location.Location;
34 import android.location.LocationManager;
143 Location location = null; in computeMostGranularCommonLocation() local
147 location = (provider != null) ? locationManager.getLastKnownLocation(provider) : null; in computeMostGranularCommonLocation()
148 if (location != null) in computeMostGranularCommonLocation()
154 if (location != null) { in computeMostGranularCommonLocation()
155 Address currentAddress = lookupAddress(location.getLatitude(), location.getLongitude()); in computeMostGranularCommonLocation()
[all …]
DDetailMode.java129 strings.add(resources.getString(Res.string.location) + ": " + locationString); in populateSetViewDetailModeStrings()
199 strings[4] = resources.getString(Res.string.location) + ": " + locationString; in populateItemViewDetailModeStrings()
/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.java269 String location; in makePduBody() local
272 location = src.substring("cid:".length()); in makePduBody()
274 location = src; in makePduBody()
278 part.setContentLocation(location.getBytes()); in makePduBody()
283 part.setContentId(location.getBytes()); in makePduBody()
286 int index = location.lastIndexOf("."); in makePduBody()
287 String contentId = (index == -1) ? location in makePduBody()
288 : location.substring(0, index); in makePduBody()
460 public void add(int location, SlideModel object) { in add() argument
465 mSlides.add(location, object); in add()
[all …]
DSlideModel.java351 public void add(int location, MediaModel object) { in add() argument
355 public boolean addAll(int location, in addAll() argument
360 public MediaModel get(int location) { in get() argument
365 return mMedia.get(location); in get()
380 public ListIterator<MediaModel> listIterator(int location) { in listIterator() argument
381 return mMedia.listIterator(location); in listIterator()
384 public MediaModel remove(int location) { in remove() argument
385 MediaModel media = mMedia.get(location); in remove()
392 public MediaModel set(int location, MediaModel object) { in set() argument
/packages/apps/Calendar/src/com/android/calendar/
DAlertAdapter.java64 String location = cursor.getString(AlertActivity.INDEX_EVENT_LOCATION); in bindView() local
69 updateView(context, view, eventName, location, startMillis, endMillis, allDay); in bindView()
72 public static void updateView(Context context, View view, String eventName, String location, in updateView() argument
103 if (location == null || location.length() == 0) { in updateView()
106 textView.setText(location); in updateView()
DEvent.java87 public CharSequence location; field in Event
127 e.location = location; in clone()
148 dest.location = location; in copyTo()
169 e.location = null; in newInstance()
219 cmp = compareStrings(location, obj.location); in compareTo()
332 e.location = c.getString(PROJECTION_LOCATION_INDEX); in loadEvents()
556 Log.e("Cal", "+ location = " + location); in dump()
609 if (location != null) { in getTitleAndLocation()
610 String locationString = location.toString(); in getTitleAndLocation()
DAlertReceiver.java110 String location, int numReminders) { in makeNewAlertNotification() argument
111 return makeNewAlertNotification(context, title, location, in makeNewAlertNotification()
120 String title, String location, int numReminders, in makeNewAlertNotification() argument
148 helperString = location; in makeNewAlertNotification()
DAlertService.java155 final String location = alertCursor.getString(ALERT_INDEX_EVENT_LOCATION); in updateAlertNotification() local
242 notificationEventLocation = location; in updateAlertNotification()
275 String eventName, String location, int numReminders, in postNotification() argument
292 location, numReminders, highPriority); in postNotification()
299 if (!TextUtils.isEmpty(location)) { in postNotification()
300 notification.tickerText = eventName + " - " + location; in postNotification()
DEditEvent.java742 mLocationTextView = (TextView) findViewById(R.id.location); in onCreate()
968 String location = intent.getStringExtra(Events.EVENT_LOCATION); in initFromIntent() local
969 if (location != null) { in initFromIntent()
970 mLocationTextView.setText(location); in initFromIntent()
1014 String location = cursor.getString(EVENT_INDEX_EVENT_LOCATION); in onResume() local
1090 mLocationTextView.setText(location); in onResume()
2211 String location = mLocationTextView.getText().toString().trim(); in getContentValuesFromUi() local
2263 values.put(Events.EVENT_LOCATION, location); in getContentValuesFromUi()
2282 String location = mLocationTextView.getText().toString().trim(); in isEmpty() local
2283 if (location.length() > 0) { in isEmpty()
/packages/apps/Camera/src/com/android/camera/
DImageManager.java31 import android.location.Location;
166 Location location, String directory, String filename, in addImage() argument
210 if (location != null) { in addImage()
211 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
212 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage()
251 DataLocation location = param.mLocation; in makeImageList() local
267 if (haveSdCard && location != DataLocation.INTERNAL) { in makeImageList()
275 if (location == DataLocation.INTERNAL || location == DataLocation.ALL) { in makeImageList()
316 public static ImageListParam getImageListParam(DataLocation location, in getImageListParam() argument
319 param.mLocation = location; in getImageListParam()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DDeleteZone.java153 final int[] location = mLocation; in onDragStart() local
154 getLocationOnScreen(location); in onDragStart()
155 mRegion.set(location[0], location[1], location[0] + mRight - mLeft, in onDragStart()
156 location[1] + mBottom - mTop); in onDragStart()
DWorkspace.java1173 final Rect location = recycle != null ? recycle : new Rect();
1184 location.left = mTempEstimate[0];
1185 location.top = mTempEstimate[1];
1188 location.right = mTempEstimate[0];
1189 location.bottom = mTempEstimate[1];
1191 return location;
/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.java40 import android.location.LocationManager;
41 import android.location.LocationListener;
42 import android.location.Location;
443 private void updateLocation(Location location) { in updateLocation() argument
444 if (location != null) { in updateLocation()
446 final SunCalculator calculator = new SunCalculator(location, timeZone); in updateLocation()
467 public void onLocationChanged(Location location) { in onLocationChanged() argument
468 updateLocation(location); in onLocationChanged()
/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/Mms/src/com/android/mms/transaction/
DMmsMessageSender.java54 public MmsMessageSender(Context context, Uri location, long messageSize) { in MmsMessageSender() argument
56 mMessageUri = location; in MmsMessageSender()
DPushReceiver.java210 String location = new String(rawLocation); in isDuplicateNotification() local
212 String[] selectionArgs = new String[] { location }; in isDuplicateNotification()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java161 public void onCellLocationChanged(CellLocation location) {
162 updateLocation(location);
261 mLocation = (TextView) findViewById(R.id.location); in onCreate()
442 private final void updateLocation(CellLocation location) { in updateLocation() argument
444 if (location instanceof GsmCellLocation) { in updateLocation()
445 GsmCellLocation loc = (GsmCellLocation)location; in updateLocation()
453 } else if (location instanceof CdmaCellLocation) { in updateLocation()
454 CdmaCellLocation loc = (CdmaCellLocation)location; in updateLocation()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyboard.java290 public SoftKey getKey(int row, int location) { in getKey() argument
293 if (softKeys.size() > location) { in getKey()
294 return softKeys.get(location); in getKey()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java251 public void setLocation(int location) { in setLocation() argument
252 mLocation = location; in setLocation()
DComposeMessageActivity.java1357 byte[] location = part.getName(); in copyPartToDrmProvider()
1358 if (location == null) { in copyPartToDrmProvider()
1359 location = part.getFilename(); in copyPartToDrmProvider()
1361 if (location == null) { in copyPartToDrmProvider()
1362 location = part.getContentLocation(); in copyPartToDrmProvider()
1367 String title = new String(location); in copyPartToDrmProvider()
1435 byte[] location = part.getName(); in copyPart()
1436 if (location == null) { in copyPart()
1437 location = part.getFilename(); in copyPart()
1439 if (location == null) { in copyPart()
[all …]
/packages/apps/Email/src/com/android/exchange/adapter/
DEmailSyncAdapter.java343 String location = null; in attachmentParser() local
354 location = getValue(); in attachmentParser()
365 if ((fileName != null) && (length != null) && (location != null)) { in attachmentParser()
370 att.mLocation = location; in attachmentParser()
/packages/apps/Email/src/com/android/exchange/utility/
DCalendarUtilities.java1333 String location = null; in buildMessageTextFromEntityValues() local
1335 location = entityValues.getAsString(Events.EVENT_LOCATION); in buildMessageTextFromEntityValues()
1336 if (!TextUtils.isEmpty(location)) { in buildMessageTextFromEntityValues()
1338 sb.append(resources.getString(R.string.meeting_where, location)); in buildMessageTextFromEntityValues()
1518 String location = null; in createMessageForEntity() local
1520 location = entityValues.getAsString(Events.EVENT_LOCATION); in createMessageForEntity()
1521 ics.writeTag("LOCATION", location); in createMessageForEntity()

12