/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | DataModel.kt | 39 import com.android.deskclock.Utils 129 if (Utils.isLOrLater()) { in onClick() 218 Utils.enforceMainLooper() in updateAfterReboot() 227 Utils.enforceMainLooper() in updateAfterTimeSet() 275 Utils.enforceMainLooper() 282 Utils.enforceMainLooper() 299 Utils.enforceMainLooper() in updateAllNotifications() 314 Utils.enforceMainLooper() 323 Utils.enforceMainLooper() 332 Utils.enforceMainLooper() [all …]
|
D | Timer.kt | 24 import com.android.deskclock.Utils in <lambda>() 102 val timeSinceStart = Utils.now() - lastStartTime in <lambda>() 144 Utils.now(), Utils.wallClock(), lastRemainingTime, label, deleteAfterUse) in <lambda>() 172 return Timer(id, State.EXPIRED, length, 0L, Utils.now(), in <lambda>() 173 Utils.wallClock(), remainingTime, label, deleteAfterUse) in <lambda>() 185 return Timer(id, State.MISSED, length, 0L, Utils.now(), in <lambda>() 186 Utils.wallClock(), remainingTime, label, deleteAfterUse) in <lambda>() 208 val timeSinceBoot = Utils.now() in <lambda>() 209 val wallClockTime = Utils.wallClock() in <lambda>() 225 val timeSinceBoot = Utils.now() in <lambda>() [all …]
|
D | Stopwatch.kt | 19 import com.android.deskclock.Utils 63 val timeSinceStart = Utils.now() - lastStartTime 74 Stopwatch(State.RUNNING, Utils.now(), Utils.wallClock(), totalTime) in start() 103 val timeSinceBoot = Utils.now() in reset() 104 val wallClockTime = Utils.wallClock() in reset() 120 val timeSinceBoot = Utils.now() in updateAfterTimeSet() 121 val wallClockTime = Utils.wallClock() in updateAfterTimeSet()
|
D | TimerNotificationBuilder.kt | 43 import com.android.deskclock.Utils 93 val intent1: PendingIntent = Utils.pendingServiceIntent(context, pause) in build() 103 val intent2: PendingIntent = Utils.pendingServiceIntent(context, addMinute) in build() 116 val intent1: PendingIntent = Utils.pendingServiceIntent(context, start) in build() 126 val intent2: PendingIntent = Utils.pendingServiceIntent(context, reset) in build() 142 val intent1: PendingIntent = Utils.pendingServiceIntent(context, reset) in build() 175 if (Utils.isNOrLater()) { in build() 225 val intent1: PendingIntent = Utils.pendingServiceIntent(context, reset) in buildHeadsUp() 245 val intent2: PendingIntent = Utils.pendingServiceIntent(context, addTime) in buildHeadsUp() 263 val contentIntent: PendingIntent = Utils.pendingActivityIntent(context, content) in buildHeadsUp() [all …]
|
D | TimerNotificationBuilder.java | 42 import com.android.deskclock.Utils; 93 final PendingIntent intent1 = Utils.pendingServiceIntent(context, pause); in build() 103 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addMinute); in build() 117 final PendingIntent intent1 = Utils.pendingServiceIntent(context, start); in build() 127 final PendingIntent intent2 = Utils.pendingServiceIntent(context, reset); in build() 143 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); in build() 176 if (Utils.isNOrLater()) { in build() 227 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); in buildHeadsUp() 247 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addTime); in buildHeadsUp() 265 final PendingIntent contentIntent = Utils.pendingActivityIntent(context, content); in buildHeadsUp() [all …]
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | PackageRemovedReceiverTest.java | 19 import static com.android.providers.tv.Utils.PreviewProgram; 20 import static com.android.providers.tv.Utils.Program; 21 import static com.android.providers.tv.Utils.RecordedProgram; 22 import static com.android.providers.tv.Utils.WatchNextProgram; 23 import static com.android.providers.tv.Utils.WatchedProgram; 75 Utils.clearTvProvider(mResolver); in setUp() 80 Utils.clearTvProvider(mResolver); in tearDown() 96 long channelInPackage1Id = Utils.insertChannel(mResolver); in testPackageRemoved() 97 Utils.insertPrograms(mResolver, channelInPackage1Id, programInPackage1); in testPackageRemoved() 98 Utils.insertPreviewPrograms(mResolver, channelInPackage1Id, previewProgramInPackage1); in testPackageRemoved() [all …]
|
D | BootCompletedReceiverTest.java | 19 import static com.android.providers.tv.Utils.PreviewProgram; 20 import static com.android.providers.tv.Utils.Program; 21 import static com.android.providers.tv.Utils.RecordedProgram; 22 import static com.android.providers.tv.Utils.WatchNextProgram; 23 import static com.android.providers.tv.Utils.WatchedProgram; 78 Utils.clearTvProvider(mResolver); in setUp() 83 Utils.clearTvProvider(mResolver); in tearDown() 104 long channelInNonExistingPackageId = Utils.insertChannel(mResolver); in testPackageRemoved() 105 Utils.insertPrograms(mResolver, channelInNonExistingPackageId, programInNonExistingPackage); in testPackageRemoved() 106 Utils.insertPreviewPrograms( in testPackageRemoved() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
D | UtilsTest.java | 96 Utils.getDurationString( in testSameDateAndTime() 105 Utils.getDurationString( in testSameDateAndTime() 118 Utils.getDurationString( in testDurationWithinToday() 127 Utils.getDurationString( in testDurationWithinToday() 140 Utils.getDurationString( in testDurationFromYesterdayToToday() 149 Utils.getDurationString( in testDurationFromYesterdayToToday() 158 Utils.getDurationString( in testDurationFromYesterdayToToday() 167 Utils.getDurationString( in testDurationFromYesterdayToToday() 180 Utils.getDurationString( in testDurationFromTodayToTomorrow() 189 Utils.getDurationString( in testDurationFromTodayToTomorrow() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | UiDataModel.kt | 28 import com.android.deskclock.Utils 97 Utils.enforceMainLooper() in getFormattedNumber() 113 Utils.enforceMainLooper() in getFormattedNumber() 132 Utils.enforceMainLooper() in getFormattedNumber() 150 Utils.enforceMainLooper() in getShortWeekday() 168 Utils.enforceMainLooper() in getLongWeekday() 181 Utils.enforceMainLooper() 190 Utils.enforceMainLooper() 202 Utils.enforceMainLooper() in addTabListener() 210 Utils.enforceMainLooper() in removeTabListener() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 19 import com.android.calendar.Utils; 63 private final TimeZoneUtils timezoneUtils = new TimeZoneUtils(Utils.SHARED_PREFS_NAME); 196 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.MONDAY)); in testGetWeeksSinceEpochFromJulianDay() 198 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.SUNDAY)); in testGetWeeksSinceEpochFromJulianDay() 200 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.SATURDAY)); in testGetWeeksSinceEpochFromJulianDay() 209 Utils.getJulianMondayFromWeeksSinceEpoch(WEEKS_FOR_JULIAN_MONDAYS[i])); in testGetJulianMondayFromWeeksSinceEpoch() 231 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 238 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 248 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 258 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | UtilsTest.java | 118 assertThat(Utils.getWifiIpAddresses(mContext)).isEqualTo("127.0.0.1"); in getWifiIpAddresses_succeeds() 127 assertThat(Utils.getWifiIpAddresses(mContext)).isNull(); in getWifiIpAddresses_nullLinkProperties() 135 assertThat(Utils.getWifiIpAddresses(mContext)).isNull(); in getWifiIpAddresses_nullNetwork() 144 Utils.maybeInitializeVolume(storageManager, new Bundle()); in initializeVolumeDoesntBreakOnNullVolume() 149 assertThat(Utils.getInstallationStatus(new ApplicationInfo())) in getInstallationStatus_notInstalled_shouldReturnUninstalled() 159 assertThat(Utils.getInstallationStatus(info)).isEqualTo(R.string.installed); in getInstallationStatus_enabled_shouldReturnInstalled() 168 assertThat(Utils.getInstallationStatus(info)).isEqualTo(R.string.disabled); in getInstallationStatus_disabled_shouldReturnDisabled() 175 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue() 188 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue() 198 Utils.setEditTextCursorPosition(editText); in setEditTextCursorPosition_shouldGetExpectedEditTextLenght() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetNativeInterface.java | 23 import com.android.bluetooth.Utils; 71 return mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in getDevice() 241 return atResponseCodeNative(responseCode, errorCode, Utils.getByteAddress(device)); in atResponseCode() 253 return atResponseStringNative(responseString, Utils.getByteAddress(device)); in atResponseString() 264 return connectHfpNative(Utils.getByteAddress(device)); in connectHfp() 275 return disconnectHfpNative(Utils.getByteAddress(device)); in disconnectHfp() 286 return connectAudioNative(Utils.getByteAddress(device)); in connectAudio() 297 return disconnectAudioNative(Utils.getByteAddress(device)); in disconnectAudio() 308 return startVoiceRecognitionNative(Utils.getByteAddress(device)); in startVoiceRecognition() 320 return stopVoiceRecognitionNative(Utils.getByteAddress(device)); in stopVoiceRecognition() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothUserService.java | 107 logd("Creating proxy for " + Utils.getProfileName(profile)); in setupBluetoothConnectionProxies() 154 logd("onServiceConnected profile: " + Utils.getProfileName(profile)); 177 logd("Unhandled profile connected: " + Utils.getProfileName(profile)); 190 + Utils.getProfileName(profile)); 198 logd("onServiceDisconnected profile: " + Utils.getProfileName(profile)); 206 + Utils.getProfileName(profile)); 274 + Utils.getProfileName(profile)); in bluetoothConnectToProfile() 294 Log.w(TAG, "Unknown Profile: " + Utils.getProfileName(profile)); in bluetoothConnectToProfile() 316 + ") Profile: " + Utils.getProfileName(profile)); in bluetoothDisconnectFromProfile() 336 Log.w(TAG, "Unknown Profile: " + Utils.getProfileName(profile)); in bluetoothDisconnectFromProfile() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Screensaver.java | 54 Utils.isLOrLater() ? null : new ContentObserver(new Handler()) { 57 Utils.refreshAlarm(Screensaver.this, mContentView); 65 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView); 75 Utils.refreshAlarm(Screensaver.this, mContentView); 103 Utils.setClockIconTypeface(mContentView); in onAttachedToWindow() 104 Utils.setTimeFormat(mDigitalClock, false); in onAttachedToWindow() 120 if (Utils.isLOrLater()) { in onAttachedToWindow() 131 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView); in onAttachedToWindow() 132 Utils.refreshAlarm(this, mContentView); in onAttachedToWindow() 151 if (Utils.isLOrLater()) { in onDetachedFromWindow() [all …]
|
D | ClockFragment.java | 96 mAlarmObserver = Utils.isPreL() ? new AlarmObserverPreL() : null; in onCreate() 97 mAlarmChangeReceiver = Utils.isLOrLater() ? new AlarmChangedBroadcastReceiver() : null; in onCreate() 131 Utils.setClockIconTypeface(mClockFrame); in onCreateView() 132 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mClockFrame); in onCreateView() 133 Utils.setClockStyle(mDigitalClock, mAnalogClock); in onCreateView() 134 Utils.setClockSecondsEnabled(mDigitalClock, mAnalogClock); in onCreateView() 160 Utils.setClockStyle(mDigitalClock, mAnalogClock); in onResume() 161 Utils.setClockSecondsEnabled(mDigitalClock, mAnalogClock); in onResume() 223 Utils.refreshAlarm(getActivity(), mClockFrame); in refreshAlarm() 320 setTabScrolledToTop(Utils.isScrolledToTop(mCityList)); in onScrolled() [all …]
|
D | ScreensaverActivity.java | 69 Utils.refreshAlarm(ScreensaverActivity.this, mContentView); 76 private final ContentObserver mSettingsContentObserver = Utils.isPreL() 80 Utils.refreshAlarm(ScreensaverActivity.this, mContentView); 89 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView); 116 Utils.setClockIconTypeface(mMainClockView); in onCreate() 117 Utils.setTimeFormat((TextClock) digitalClock, false); in onCreate() 118 Utils.setClockStyle(digitalClock, analogClock); in onCreate() 119 Utils.dimClockView(true, mMainClockView); in onCreate() 146 if (Utils.isLOrLater()) { in onStart() 162 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView); in onResume() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | AllInOneActivity.java | 219 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 222 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 230 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 232 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 258 && !intent.getBooleanExtra(Utils.INTENT_KEY_HOME, false)) { in onNewIntent() 261 millis = Utils.timeFromIntentInMillis(intent); in onNewIntent() 308 timeMillis = Utils.timeFromIntentInMillis(intent); in onCreate() 313 viewType = Utils.getViewTypeFromIntentAndSharedPref(this); in onCreate() 315 mTimeZone = Utils.getTimeZone(this, mHomeTimeUpdater); in onCreate() 348 mIsMultipane = Utils.getConfigBool(this, R.bool.multiple_pane_config); in onCreate() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 43 import com.android.calendar.Utils; 94 if (!Utils.isJellybeanOrLater()) { 248 int displayColor = Utils.getDisplayColorFromColor(eventInfo.color); 281 Utils.getDeclinedColorFromColor(displayColor)); 293 Utils.getDeclinedColorFromColor(displayColor)); 312 String tz = Utils.getTimeZone(mContext, null); 314 start = Utils.convertAlldayLocalToUTC(recycle, start, tz); 315 end = Utils.convertAlldayLocalToUTC(recycle, end, tz); 393 return Utils.getHideDeclinedEvents(mContext) ? EVENT_SELECTION_HIDE_DECLINED 491 String tz = Utils.getTimeZone(mContext, mTimezoneChanged); [all …]
|
D | CalendarAppWidgetProvider.java | 40 import com.android.calendar.Utils; 62 if (Utils.getWidgetUpdateAction(context).equals(action)) { in onReceive() 71 || action.equals(Utils.getWidgetScheduledUpdateAction(context)))) { in onReceive() 134 Time time = new Time(Utils.getTimeZone(context, null)); in performUpdate() 139 final String date = Utils.formatDateRange(context, millis, millis, in performUpdate() 177 Intent intent = new Intent(Utils.getWidgetScheduledUpdateAction(context)); in getUpdateIntent() 178 intent.setDataAndType(CalendarContract.CONTENT_URI, Utils.APPWIDGET_DATA_TYPE); in getUpdateIntent() 211 fillInIntent.putExtra(Utils.INTENT_KEY_DETAIL_VIEW, true); in getLaunchFillInIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | BluetoothSocketManagerBinder.java | 24 import com.android.bluetooth.Utils; 49 Utils.getBytesFromAddress(device.getAddress()), in connectSocket() 51 Utils.uuidToByteArray(uuid), in connectSocket() 66 Utils.uuidToByteArray(uuid), in createSocketChannel() 77 mService.requestMaximumTxDataLengthNative(Utils.getBytesFromAddress(device.getAddress())); in requestMaximumTxDataLength() 81 if (!Utils.checkCallerAllowManagedProfiles(mService)) { in enforceBluetoothAndActiveUser()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsManager.java | 141 subId = Utils.getEffectiveSubscriptionId(subId); in sendMultimediaMessage() 142 final SmsManager smsManager = Utils.getSmsManager(subId); in sendMultimediaMessage() 164 subId = Utils.getEffectiveSubscriptionId(subId); in downloadMultimediaMessage() 165 final SmsManager smsManager = Utils.getSmsManager(subId); in downloadMultimediaMessage() 177 return sForceLegacyMms || !Utils.hasMmsApi(); in shouldUseLegacyMms() 189 if (!Utils.hasMmsApi()) { in getConfigOverrides() 219 final Bundle systemValues = Utils.getSmsManager(subId).getCarrierConfigValues(); in computeOverridesLocked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryBroadcastReceiverTest.java | 35 import com.android.settings.Utils; 88 .isEqualTo(Utils.getBatteryPercentage(mChargingIntent)); in testOnReceive_batteryLevelChanged_dataUpdated() 90 .isEqualTo(Utils.getBatteryStatus(mContext.getResources(), mChargingIntent)); in testOnReceive_batteryLevelChanged_dataUpdated() 112 final String batteryLevel = Utils.getBatteryPercentage(mChargingIntent); in testOnReceive_batteryDataNotChanged_listenerNotInvoked() 114 Utils.getBatteryStatus(mContext.getResources(), mChargingIntent); in testOnReceive_batteryDataNotChanged_listenerNotInvoked() 137 .isEqualTo(Utils.getBatteryPercentage(mChargingIntent)); in testRegister_updateBatteryStatus() 139 .isEqualTo(Utils.getBatteryStatus(mContext.getResources(), mChargingIntent)); in testRegister_updateBatteryStatus()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/ |
D | SdpManager.java | 31 import com.android.bluetooth.Utils; 182 String addressString = Utils.getAddressStringFromByte(address); in getSearchInstance() 183 ParcelUuid uuid = Utils.byteArrayToUuid(uuidBytes)[0]; in getSearchInstance() 260 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpMasRecordFoundCallback() 286 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpMnsRecordFoundCallback() 311 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpPseRecordFoundCallback() 338 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpOppOpsRecordFoundCallback() 362 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpSapsRecordFoundCallback() 393 Log.d(TAG, "UUID in parcel: " + ((Utils.byteArrayToUuid(uuid))[0]).toString()); in sdpRecordFoundCallback() 431 sdpSearchNative(Utils.getBytesFromAddress(inst.getDevice().getAddress()), in startSearch() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 19 import static com.android.bluetooth.Utils.enforceBluetoothAdminPermission; 20 import static com.android.bluetooth.Utils.enforceBluetoothPermission; 21 import static com.android.bluetooth.Utils.enforceBluetoothPrivilegedPermission; 37 import com.android.bluetooth.Utils; 161 if (!connectHidNative(Utils.getByteAddress(device))) { 171 if (!disconnectHidNative(Utils.getByteAddress(device))) { 195 virtualUnPlugNative(Utils.getByteAddress(device)); 211 if (!getProtocolModeNative(Utils.getByteAddress(device))) { 225 if (!virtualUnPlugNative(Utils.getByteAddress(device))) { 234 if (!setProtocolModeNative(Utils.getByteAddress(device), protocolMode)) { [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 27 import com.android.gallery3d.common.Utils; 82 mRoot = Utils.checkNotNull(root); in DownloadCache() 83 mApplication = Utils.checkNotNull(application); in DownloadCache() 90 long hash = Utils.crc64Long(stringUrl); in findEntryInDatabase() 193 String hashCode = String.valueOf(Utils.crc64Long(url)); in insertEntry() 256 this.cacheFile = Utils.checkNotNull(cacheFile); in Entry() 266 mUrl = Utils.checkNotNull(url); in DownloadTask() 271 Utils.assertTrue(mProxySet.remove(proxy)); in removeProxy() 294 Utils.assertTrue(mProxySet.isEmpty()); in onFutureDone() 303 Utils.assertTrue(mEntryMap.put(mUrl, entry) == null); in onFutureDone()
|