/packages/apps/Settings/src/com/android/settings/gestures/ |
H A D | SwipeToNotificationPreferenceController.java | 24 import com.android.settings.Utils; 52 return Utils.hasFingerprintHardware(context) && context.getResources()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
H A D | UtilsTest.java | 67 Utils.getManagedProfile(mUserManager).getIdentifier()); 77 assertNull(Utils.getManagedProfile(mUserManager));
|
/packages/apps/TV/src/com/android/tv/ |
H A D | SelectInputActivity.java | 30 import com.android.tv.util.Utils; 63 String channelUriString = Utils.getLastWatchedChannelUri(this);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | FullSchedulesCardPresenter.java | 28 import com.android.tv.util.Utils; 61 fullDays = Utils.computeDateDifference(System.currentTimeMillis(),
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
H A D | DvrPlaybackActivity.java | 31 import com.android.tv.util.Utils; 79 intent.putExtra(Utils.EXTRA_KEY_RECORDED_PROGRAM_ID, recordedProgramId);
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | LiveChannelsUiDeviceHelper.java | 15 import com.android.tv.testing.Utils; 35 assertTrue("TvActivity should be enabled.", Utils.isTvActivityEnabled(mContext));
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
H A D | ChannelRecordTest.java | 24 import com.android.tv.testing.Utils; 47 mRandom = Utils.createTestRandom();
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | QuotedTextView.java | 35 import com.android.mail.utils.Utils; 84 Utils.restrictWebView(mQuotedTextWebView); 200 final String plainText = Utils.convertHtmlToPlainText(getQuotedText().toString()); 254 Utils.cleanUpString( 264 .append(String.format(resources.getString(R.string.forward_attribution), Utils 266 true /* remove empty quotes */), dateFormat.format(date), Utils 268 false /* don't remove empty quotes */), Utils.cleanUpString( 272 Utils.cleanUpString(ccAddresses, true /* remove empty quotes */)));
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
H A D | UtilsTest.java | 25 * Tests for {@link Utils}. 34 final Spanned actual = Utils.insertStringWithStyle( 46 final Spanned actual = Utils.insertStringWithStyle(
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
H A D | WallpaperTileInfo.java | 13 import com.android.gallery3d.common.Utils; 63 RectF cropRect = Utils.getMaxCropRect(
|
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
H A D | Obd2LiveFrameGeneratorTest.java | 20 import static com.android.car.obd2.test.Utils.concatIntArrays; 21 import static com.android.car.obd2.test.Utils.stringsToIntArray;
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
H A D | StopwatchNotificationBuilder.java | 34 import com.android.deskclock.Utils; 79 final PendingIntent intent1 = Utils.pendingServiceIntent(context, pause); 90 final PendingIntent intent2 = Utils.pendingServiceIntent(context, lap); 112 final PendingIntent intent1 = Utils.pendingServiceIntent(context, start); 122 final PendingIntent intent2 = Utils.pendingServiceIntent(context, reset); 141 if (Utils.isNOrLater()) {
|
H A D | TimerNotificationBuilder.java | 36 import com.android.deskclock.Utils; 87 final PendingIntent intent1 = Utils.pendingServiceIntent(context, pause); 97 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addMinute); 111 final PendingIntent intent1 = Utils.pendingServiceIntent(context, start); 121 final PendingIntent intent2 = Utils.pendingServiceIntent(context, reset); 137 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); 169 if (Utils.isNOrLater()) { 219 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); 239 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addTime); 257 final PendingIntent contentIntent = Utils [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | UriImage.java | 30 import com.android.gallery3d.common.Utils; 65 mApplication = Utils.checkNotNull(application); 85 Utils.closeSilently(mFileDescriptor); 103 Utils.closeSilently(is); 125 Utils.closeSilently(is); 277 Utils.closeSilently(mFileDescriptor);
|
H A D | DownloadCache.java | 27 import com.android.gallery3d.common.Utils; 82 mRoot = Utils.checkNotNull(root); 83 mApplication = Utils.checkNotNull(application); 90 long hash = Utils.crc64Long(stringUrl); 193 String hashCode = String.valueOf(Utils.crc64Long(url)); 256 this.cacheFile = Utils.checkNotNull(cacheFile); 266 mUrl = Utils.checkNotNull(url); 271 Utils.assertTrue(mProxySet.remove(proxy)); 294 Utils.assertTrue(mProxySet.isEmpty()); 303 Utils [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | DonutView.java | 34 import com.android.settings.Utils; 65 mMeterConsumedColor = Utils.getDefaultColor(mContext, R.color.meter_consumed_color); 102 Utils.getColorAttr(context, android.R.attr.colorAccent), 115 mTextPaint.setColor(Utils.getColorAccent(getContext())); 123 mBigNumberPaint.setColor(Utils.getColorAccent(getContext())); 184 mPercentString = Utils.formatPercentage(mPercent);
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
H A D | AgendaListView.java | 23 import com.android.calendar.Utils; 58 mTimeZone = Utils.getTimeZone(mContext, this); 69 Utils.setMidnightUpdater(mHandler, mMidnightUpdater, mTimeZone); 91 mTimeZone = Utils.getTimeZone(context, mTZUpdater); 96 Utils.getConfigBool(context, R.bool.show_event_details_with_agenda)); 102 mShowEventDetailsWithAgenda = Utils.getConfigBool(mContext, 196 startTime = Utils.convertAlldayLocalToUTC(mTime, startTime, mTimeZone); 197 endTime = Utils.convertAlldayLocalToUTC(mTime, endTime, mTimeZone); 422 Utils.setMidnightUpdater(mHandler, mMidnightUpdater, mTimeZone); 428 Utils [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | AllInOneActivity.java | 231 Utils.setSharedPreference(AllInOneActivity.this, 248 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 251 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 259 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 261 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 289 && !intent.getBooleanExtra(Utils.INTENT_KEY_HOME, false)) { 292 millis = Utils.timeFromIntentInMillis(intent); 305 if (Utils.getSharedPreference(this, OtherPreferences.KEY_OTHER_1, false)) { 316 && !Utils.getSharedPreference(this, GeneralPreferences.KEY_SKIP_SETUP, false)) { 343 timeMillis = Utils [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetService.java | 43 import com.android.calendar.Utils; 94 if (!Utils.isJellybeanOrLater()) { 248 int displayColor = Utils.getDisplayColorFromColor(eventInfo.color); 281 Utils.getDeclinedColorFromColor(displayColor)); 295 Utils.getDeclinedColorFromColor(displayColor)); 314 String tz = Utils.getTimeZone(mContext, null); 316 start = Utils.convertAlldayLocalToUTC(recycle, start, tz); 317 end = Utils.convertAlldayLocalToUTC(recycle, end, tz); 395 return Utils.getHideDeclinedEvents(mContext) ? EVENT_SELECTION_HIDE_DECLINED 493 String tz = Utils [all...] |
/packages/apps/Settings/src/com/android/settings/password/ |
H A D | ChooseLockSettingsHelper.java | 31 import com.android.settings.Utils; 101 returnCredentials, false, false, 0, Utils.enforceSameOwner(mActivity, userId)); 122 returnCredentials, external, false, 0, Utils.getCredentialOwnerUserId(mActivity)); 144 returnCredentials, external, false, 0, Utils.enforceSameOwner(mActivity, userId)); 161 true, false, true, challenge, Utils.getCredentialOwnerUserId(mActivity)); 179 true, false, true, challenge, Utils.enforceSameOwner(mActivity, userId)); 200 external, true, challenge, Utils.enforceSameOwner(mActivity, userId));
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterService.java | 74 import com.android.bluetooth.Utils; 792 (!Utils.checkCaller())) { 803 (!Utils.checkCaller())) { 815 (!Utils.checkCaller())) { 827 (!Utils.checkCallerAllowManagedProfiles(mService))) { 838 if (!Utils.checkCaller()) { 850 (!Utils.checkCaller())) { 861 if (!Utils.checkCaller()) { 872 if (!Utils.checkCallerAllowManagedProfiles(mService)) { 883 if (!Utils [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AsyncRingtonePlayer.java | 173 return Utils.getResourceUri(context, R.raw.alarm_expire); 180 return Utils.getResourceUri(context, R.raw.alarm_expire); 223 if (Utils.isMOrLater()) { 348 if (Utils.isLOrLater()) { 365 mCrescendoStopTime = Utils.now() + mCrescendoDuration; 417 final long currentTime = Utils.now(); 544 if (Utils.isLOrLater()) { 560 mCrescendoStopTime = Utils.now() + mCrescendoDuration; 624 final long currentTime = Utils.now();
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
H A D | LocalMediaBrowserService.java | 86 .setIconUri(Utils.getUriForResource(this, R.drawable.ic_folder)) 93 .setIconUri(Utils.getUriForResource(this, R.drawable.ic_album)) 100 .setIconUri(Utils.getUriForResource(this, R.drawable.ic_artist)) 107 .setIconUri(Utils.getUriForResource(this, R.drawable.ic_genre)) 118 if (!Utils.hasRequiredPermissions(this)) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 64 ? Utils.nextPowerOf2(initialSize) 92 ? Utils.prevPowerOf2(initialSize) 102 ? Utils.prevPowerOf2(initialSize) 108 Utils.assertTrue(scale > 0); 111 ? Utils.nextPowerOf2(initialSize)
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | EyePosition.java | 29 import com.android.gallery3d.common.Utils; 133 mX = Utils.clamp((x * USER_ANGEL_COS / glength 136 mY = -Utils.clamp((y * USER_ANGEL_COS / glength 172 mX = Utils.clamp((float) (mX + x * t / Math.hypot(mZ, mX)), 174 mY = Utils.clamp((float) (mY + y * t / Math.hypot(mZ, mY)),
|