/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/ |
D | RespondService.java | 23 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/ |
D | Utils.java | 29 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/ |
D | ActivityB.java | 26 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()
|
D | ActivityA.java | 26 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()
|
D | ActivityC.java | 26 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/ |
D | Utils.java | 30 public class Utils { class 31 private Utils() {}; in Utils() method in Utils 36 if (Utils.hasGingerbread()) { in enableStrictMode() 46 if (Utils.hasHoneycomb()) { in enableStrictMode()
|
D | ImageCache.java | 147 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()
|
D | ImageResizer.java | 129 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/ |
D | Utils.java | 24 public class Utils { class 35 private Utils() { in Utils() method in Utils
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
D | ContactDetailActivity.java | 29 import com.example.android.contactslist.util.Utils; 43 Utils.enableStrictMode(); in onCreate() 51 if (Utils.hasHoneycomb()) { in onCreate()
|
D | ContactsListFragment.java | 62 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,
|
D | ContactsListActivity.java | 27 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/ |
D | MessagingReceiver.java | 25 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/ |
D | LocationDataManager.java | 20 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/ |
D | ImageGridActivity.java | 24 import com.example.android.displayingbitmaps.util.Utils; 35 Utils.enableStrictMode(); in onCreate()
|
D | ImageDetailFragment.java | 31 import com.example.android.displayingbitmaps.util.Utils; 96 if (OnClickListener.class.isInstance(getActivity()) && Utils.hasHoneycomb()) { in onActivityCreated()
|
D | ImageDetailActivity.java | 42 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/ |
D | AttractionListActivity.java | 32 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/ |
D | UtilityService.java | 37 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/ |
D | MainActivity.java | 108 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/ |
D | LocationDbHelper.java | 28 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/ |
D | GridExampleFragment.java | 21 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/ |
D | Utils.java | 25 public class Utils { class
|
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/fragments/ |
D | CounterFragment.java | 20 import com.example.android.wearable.jumpingjack.Utils; 56 setCounter(Utils.getCounterFromPreference(getActivity())); in onCreateView()
|
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/ |
D | MainActivity.java | 89 mJumpCounter = Utils.getCounterFromPreference(this); in onCreate() 192 Utils.saveCounterToPreference(this, i); in setCounter() 194 Utils.vibrate(this, 0); in setCounter()
|