Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 25 of 50) sorted by relevance

12

/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/
DRespondService.java23 import com.example.android.smssample.Utils;
39 if (Utils.hasJellyBeanMR2() && Utils.isDefaultSmsApp(this) && in onHandleIntent()
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DUtils.java29 public class Utils { class
32 private Utils() {} in Utils() method in Utils
41 if (Utils.hasGingerbread()) { in enableStrictMode()
56 if (Utils.hasHoneycomb()) { in enableStrictMode()
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/
DActivityB.java26 import com.example.android.lifecycle.util.Utils;
46 Utils.printStatus(mStatusView, mStatusAllView); in onCreate()
53 Utils.printStatus(mStatusView, mStatusAllView); in onStart()
60 Utils.printStatus(mStatusView, mStatusAllView); in onRestart()
67 Utils.printStatus(mStatusView, mStatusAllView); in onResume()
74 Utils.printStatus(mStatusView, mStatusAllView); in onPause()
DActivityA.java26 import com.example.android.lifecycle.util.Utils;
46 Utils.printStatus(mStatusView, mStatusAllView); in onCreate()
53 Utils.printStatus(mStatusView, mStatusAllView); in onStart()
60 Utils.printStatus(mStatusView, mStatusAllView); in onRestart()
67 Utils.printStatus(mStatusView, mStatusAllView); in onResume()
74 Utils.printStatus(mStatusView, mStatusAllView); in onPause()
DActivityC.java26 import com.example.android.lifecycle.util.Utils;
46 Utils.printStatus(mStatusView, mStatusAllView); in onCreate()
53 Utils.printStatus(mStatusView, mStatusAllView); in onStart()
60 Utils.printStatus(mStatusView, mStatusAllView); in onRestart()
67 Utils.printStatus(mStatusView, mStatusAllView); in onResume()
74 Utils.printStatus(mStatusView, mStatusAllView); in onPause()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DUtils.java30 public class Utils { class
31 private Utils() {}; in Utils() method in Utils
36 if (Utils.hasGingerbread()) { in enableStrictMode()
46 if (Utils.hasHoneycomb()) { in enableStrictMode()
DImageCache.java147 if (Utils.hasHoneycomb()) { in init()
167 if (Utils.hasHoneycomb()) { in init()
523 if (!Utils.hasKitKat()) { in canUseForInBitmap()
618 if (Utils.hasKitKat()) { in getBitmapSize()
622 if (Utils.hasHoneycombMR1()) { in getBitmapSize()
638 if (Utils.hasGingerbread()) { in isExternalStorageRemovable()
652 if (Utils.hasFroyo()) { in getExternalCacheDir()
669 if (Utils.hasGingerbread()) { in getUsableSpace()
DImageResizer.java129 if (Utils.hasHoneycomb()) { in decodeSampledBitmapFromResource()
160 if (Utils.hasHoneycomb()) { in decodeSampledBitmapFromFile()
194 if (Utils.hasHoneycomb()) { in decodeSampledBitmapFromDescriptor()
/development/samples/browseable/SpeedTracker/Shared/src/com.example.android.wearable.speedtracker.common/
DUtils.java24 public class Utils { class
35 private Utils() { in Utils() method in Utils
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactDetailActivity.java29 import com.example.android.contactslist.util.Utils;
43 Utils.enableStrictMode(); in onCreate()
51 if (Utils.hasHoneycomb()) { in onCreate()
DContactsListFragment.java62 import com.example.android.contactslist.util.Utils;
327 if (Utils.hasHoneycomb()) { in onCreateOptionsMenu()
377 if (Utils.hasICS()) { in onCreateOptionsMenu()
411 if (Utils.hasICS()) { in onCreateOptionsMenu()
443 if (!Utils.hasHoneycomb()) { in onOptionsItemSelected()
585 if (Utils.hasHoneycomb()) { in loadContactPhotoThumbnail()
888 (Utils.hasHoneycomb() ? Contacts.DISPLAY_NAME_PRIMARY : Contacts.DISPLAY_NAME) +
896 Utils.hasHoneycomb() ? Contacts.SORT_KEY_PRIMARY : Contacts.DISPLAY_NAME;
916 Utils.hasHoneycomb() ? Contacts.DISPLAY_NAME_PRIMARY : Contacts.DISPLAY_NAME,
922 Utils.hasHoneycomb() ? Contacts.PHOTO_THUMBNAIL_URI : Contacts._ID,
DContactsListActivity.java27 import com.example.android.contactslist.util.Utils;
52 Utils.enableStrictMode(); in onCreate()
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/
DMessagingReceiver.java25 import com.example.android.smssample.Utils;
39 if (Utils.hasKitKat() && Utils.isDefaultSmsApp(context)) { in onReceive()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DLocationDataManager.java20 import com.example.android.wearable.speedtracker.common.Utils;
50 String day = Utils.getHashedDay(calendar); in getPoints()
67 String day = Utils.getHashedDay(calendar); in clearPoints()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DImageGridActivity.java24 import com.example.android.displayingbitmaps.util.Utils;
35 Utils.enableStrictMode(); in onCreate()
DImageDetailFragment.java31 import com.example.android.displayingbitmaps.util.Utils;
96 if (OnClickListener.class.isInstance(getActivity()) && Utils.hasHoneycomb()) { in onActivityCreated()
DImageDetailActivity.java42 import com.example.android.displayingbitmaps.util.Utils;
56 Utils.enableStrictMode(); in onCreate()
96 if (Utils.hasHoneycomb()) { in onCreate()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
DAttractionListActivity.java32 import com.example.android.xyztouristattractions.common.Utils;
56 if (!Utils.checkFineLocationPermission(this)) { in onCreate()
104 boolean geofenceEnabled = Utils.getGeofenceEnabled(this); in onOptionsItemSelected()
105 Utils.storeGeofenceEnabled(this, !geofenceEnabled); in onOptionsItemSelected()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
DUtilityService.java37 import com.example.android.xyztouristattractions.common.Utils;
137 LatLng currentLocation = Utils.getLocation(this); in onHandleIntent()
154 if (!Utils.checkFineLocationPermission(this)) { in addGeofencesInternal()
186 boolean geofenceEnabled = Utils.getGeofenceEnabled(this); in geofenceTriggered()
211 if (!Utils.checkFineLocationPermission(this)) { in requestLocationInternal()
266 Utils.storeLocation(this, latLngLocation); in locationUpdated()
299 Iterator<String> itr = Utils.getNodes(googleApiClient).iterator(); in clearRemoteNotifications()
382 String distance = Utils.formatDistanceBetween( in showNotification()
383 Utils.getLocation(this), attractions.get(i).location); in showNotification()
452 String distance = Utils.formatDistanceBetween( in sendDataToWearable()
[all …]
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/
DMainActivity.java108 if (Utils.isDefaultSmsApp(this)) { in sendSms()
126 if (Utils.hasKitKat()) { in onResume()
127 if (Utils.isDefaultSmsApp(this)) { in onResume()
147 Utils.setDefaultSmsApp(MainActivity.this); in onResume()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
DLocationDbHelper.java28 import com.example.android.wearable.speedtracker.common.Utils;
113 String day = Utils.getHashedDay(calendar); in read()
163 return delete(Utils.getHashedDay(calendar)); in delete()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/grid/
DGridExampleFragment.java21 import android.support.v17.leanback.supportleanbackshowcase.utils.Utils;
67 String json = Utils.inputStreamToString(getResources() in createRows()
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DUtils.java25 public class Utils { class
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/fragments/
DCounterFragment.java20 import com.example.android.wearable.jumpingjack.Utils;
56 setCounter(Utils.getCounterFromPreference(getActivity())); in onCreateView()
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/
DMainActivity.java89 mJumpCounter = Utils.getCounterFromPreference(this); in onCreate()
192 Utils.saveCounterToPreference(this, i); in setCounter()
194 Utils.vibrate(this, 0); in setCounter()

12