Home
last modified time | relevance | path

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

12345678910>>...43

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DPackageRemovedReceiverTest.java19 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 …]
DBootCompletedReceiverTest.java19 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/
DUtilsTest.java96 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/Car/RotaryController/src/com/android/car/rotary/
DNavigator.java166 && !Utils.isFocusParkingView(nextCandidate) in findRotateTarget()
175 if (!Utils.canPerformFocus(nextCandidate) in findRotateTarget()
176 || (Utils.isScrollableContainer(nextCandidate) in findRotateTarget()
177 && !Utils.canScrollableContainerTakeFocus(nextCandidate))) { in findRotateTarget()
178 Utils.recycleNode(candidate); in findRotateTarget()
179 Utils.recycleNode(candidateFocusArea); in findRotateTarget()
195 && (!Utils.isDescendant(scrollableContainer, nextCandidate) in findRotateTarget()
196 || Utils.getBoundsInScreen(nextCandidate).isEmpty())) { in findRotateTarget()
197 Utils.recycleNode(nextCandidate); in findRotateTarget()
198 Utils.recycleNode(candidateFocusArea); in findRotateTarget()
[all …]
DRotaryService.java507 Utils.recycleNode(rootView);
520 Utils.recycleWindows(windows);
781 Utils.recycleNode(source); in onAccessibilityEvent()
1026 if (Utils.isFocusParkingView(sourceNode)) { in handleViewFocusedEvent()
1086 if (!sourceNode.equals(mLastTouchedNode) && Utils.canTakeFocus(sourceNode)) { in handleViewClickedEvent()
1097 if (sourceNode == null || !Utils.isScrollableContainer(sourceNode)) { in handleViewScrolledEvent()
1121 Utils.recycleNode(target); in handleViewScrolledEvent()
1139 Utils.recycleNode(target); in handleViewScrolledEvent()
1200 AccessibilityWindowInfo window = Utils.findWindowWithId(windows, windowId); in handleWindowAddedEvent()
1202 Utils.recycleWindows(windows); in handleWindowAddedEvent()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DTreeTraverserTest.java87 Utils.recycleNodes(mNode0, mNode1, mNode2, mNode3, mNode4, mNode5, mNode6); in tearDown()
109 Utils.recycleNode(result); in testFindNodeOrAncestor()
115 Utils.recycleNode(result); in testFindNodeOrAncestor()
121 Utils.recycleNode(result); in testFindNodeOrAncestor()
127 Utils.recycleNode(result); in testFindNodeOrAncestor()
134 Utils.recycleNode(result); in testFindNodeOrAncestor()
141 Utils.recycleNode(result); in testFindNodeOrAncestor()
170 Utils.recycleNode(result); in testDepthFirstSearch()
176 Utils.recycleNode(result); in testDepthFirstSearch()
182 Utils.recycleNode(result); in testDepthFirstSearch()
[all …]
DNavigatorTest.java90 Utils.recycleNode(mWindowRoot); in tearDown()
91 Utils.recycleNodes(mNodes); in tearDown()
120 Utils.recycleNode(target.node); in testFindRotateTarget()
127 Utils.recycleNode(target.node); in testFindRotateTarget()
272 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode()
282 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode()
317 Utils.recycleNode(target.node); in testFindRotateTargetSkipNodeThatCannotPerformFocus()
355 Utils.recycleNode(target.node); in testFindRotateTargetReturnScrollableContainer()
383 Utils.recycleNode(target.node); in testFindRotateTargetSkipScrollableContainer()
423 Utils.recycleNode(target.node); in testFindRotateTargetSkipScrollableContainer2()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java120 assertThat(Utils.getWifiIpAddresses(mContext)).isEqualTo("127.0.0.1"); in getWifiIpAddresses_succeeds()
129 assertThat(Utils.getWifiIpAddresses(mContext)).isNull(); in getWifiIpAddresses_nullLinkProperties()
137 assertThat(Utils.getWifiIpAddresses(mContext)).isNull(); in getWifiIpAddresses_nullNetwork()
146 Utils.maybeInitializeVolume(storageManager, new Bundle()); in initializeVolumeDoesntBreakOnNullVolume()
151 assertThat(Utils.getInstallationStatus(new ApplicationInfo())) in getInstallationStatus_notInstalled_shouldReturnUninstalled()
161 assertThat(Utils.getInstallationStatus(info)).isEqualTo(R.string.installed); in getInstallationStatus_enabled_shouldReturnInstalled()
170 assertThat(Utils.getInstallationStatus(info)).isEqualTo(R.string.disabled); in getInstallationStatus_disabled_shouldReturnDisabled()
177 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue()
190 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
200 Utils.setEditTextCursorPosition(editText); in setEditTextCursorPosition_shouldGetExpectedEditTextLenght()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java19 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/Car/libs/car-messenger-common/tests/unit/src/com.android.car.messenger.common/
DUtilsTest.java48 String actual = Utils.constructGroupConversationTitle(senderNames, NAME_DELIMITER, in testNameWithMultipleNumbers()
59 String actual = Utils.constructGroupConversationTitle(senderNames, NAME_DELIMITER, in testNameWithInternationalNumbers()
67 String actual = Utils.constructGroupConversationTitle(NAMES, NAME_DELIMITER, TITLE_LENGTH); in testNameConstructorLtr()
73 String actual = Utils.constructGroupConversationTitle(NAMES, NAME_DELIMITER, in testNameConstructorLtr_longerTitle()
82 String actual = Utils.constructGroupConversationHeader("Christopher", in testTitleConstructorLtr()
90 String actual = Utils.constructGroupConversationHeader(ARABIC_NAME, "!Sam، Logan.، جﺗﺧ", in testTitleConstructorLtr_with_rtlName()
100 String actual = Utils.constructGroupConversationHeader("+1-650-900-1234", in testTitleConstructorLtr_with_phoneNumber()
130 String actual = Utils.constructGroupConversationTitle(senderNames, NAME_DELIMITER, in testNameWithInternationalNumbers_rtl()
140 String actual = Utils.constructGroupConversationTitle(NAMES, NAME_DELIMITER, TITLE_LENGTH, in testNameConstructorRtl()
153 String actual = Utils.constructGroupConversationTitle(NAMES, NAME_DELIMITER, in testNameConstructorRtl_longerTitle()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java23 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/
DCarBluetoothUserService.java106 logd("Creating proxy for " + Utils.getProfileName(profile)); in setupBluetoothConnectionProxies()
153 logd("onServiceConnected profile: " + Utils.getProfileName(profile));
176 logd("Unhandled profile connected: " + Utils.getProfileName(profile));
189 + Utils.getProfileName(profile));
197 logd("onServiceDisconnected profile: " + Utils.getProfileName(profile));
205 + Utils.getProfileName(profile));
273 + Utils.getProfileName(profile)); in bluetoothConnectToProfile()
293 Log.w(TAG, "Unknown Profile: " + Utils.getProfileName(profile)); in bluetoothConnectToProfile()
315 + ") Profile: " + Utils.getProfileName(profile)); in bluetoothDisconnectFromProfile()
335 Log.w(TAG, "Unknown Profile: " + Utils.getProfileName(profile)); in bluetoothDisconnectFromProfile()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DScreensaver.java54 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 …]
DClockFragment.java96 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 …]
DScreensaverActivity.java69 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/
DAllInOneActivity.java219 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/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.java38 import com.android.deskclock.Utils;
104 final PendingIntent intent1 = Utils.pendingServiceIntent(context, pause); in build()
114 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addMinute); in build()
128 final PendingIntent intent1 = Utils.pendingServiceIntent(context, start); in build()
138 final PendingIntent intent2 = Utils.pendingServiceIntent(context, reset); in build()
154 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); in build()
187 if (Utils.isNOrLater()) { in build()
237 final PendingIntent intent1 = Utils.pendingServiceIntent(context, reset); in buildHeadsUp()
257 final PendingIntent intent2 = Utils.pendingServiceIntent(context, addTime); in buildHeadsUp()
275 final PendingIntent contentIntent = Utils.pendingActivityIntent(context, content); in buildHeadsUp()
[all …]
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DMessage.java20 import static com.android.car.messenger.common.Utils.BMC_EXTRA_MESSAGE_HANDLE;
21 import static com.android.car.messenger.common.Utils.BMC_EXTRA_MESSAGE_READ_STATUS;
22 import static com.android.car.messenger.common.Utils.BMC_EXTRA_MESSAGE_TIMESTAMP;
79 if (!Utils.isValidMessagingStyleMessage(updatedMessage)) { in parseFromMessage()
94 Utils.createMessageHandle(updatedMessage), in parseFromMessage()
105 if (!Utils.isValidMapClientIntent(intent)) { in parseFromIntent()
115 String senderUri = Utils.getSenderUri(intent); in parseFromIntent()
118 Utils.getSenderName(intent), in parseFromIntent()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsManager.java138 if (Utils.hasMmsApi() && !sForceLegacyMms) { in sendMultimediaMessage()
139 subId = Utils.getEffectiveSubscriptionId(subId); in sendMultimediaMessage()
140 final SmsManager smsManager = Utils.getSmsManager(subId); in sendMultimediaMessage()
160 if (Utils.hasMmsApi() && !sForceLegacyMms) { in downloadMultimediaMessage()
161 subId = Utils.getEffectiveSubscriptionId(subId); in downloadMultimediaMessage()
162 final SmsManager smsManager = Utils.getSmsManager(subId); in downloadMultimediaMessage()
180 if (!Utils.hasMmsApi()) { in getConfigOverrides()
210 final Bundle systemValues = Utils.getSmsManager(subId).getCarrierConfigValues(); in computeOverridesLocked()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java43 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 …]
DCalendarAppWidgetProvider.java40 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/
DBluetoothSocketManagerBinder.java24 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/PermissionController/src/com/android/permissioncontroller/permission/data/
DAppPermGroupUiInfoLiveData.kt33 import com.android.permissioncontroller.permission.utils.Utils in <lambda>()
34 import com.android.permissioncontroller.permission.utils.Utils.isModernPermissionGroup in <lambda>()
164 if (groupInfo.packageName == Utils.OS_PKG && in <lambda>()
244 if (Utils.couldHaveForegroundCapabilities( in <lambda>()
245 Utils.getUserContext(app, user), packageName) || in <lambda>()
246 Utils.isEmergencyApp(Utils.getUserContext(app, user), packageName)) { in <lambda>()
273 val userContext = Utils.getUserContext(app, user) in <lambda>()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java31 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/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java27 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()

12345678910>>...43