/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
D | UtilsTest.java | 117 Utils.assertTrue(true); in testAssert() 121 Utils.assertTrue(false); in testAssert() 130 Utils.checkNotNull(new Object()); in testCheckNotNull() 131 Utils.checkNotNull(0); in testCheckNotNull() 132 Utils.checkNotNull(""); in testCheckNotNull() 136 Utils.checkNotNull(null); in testCheckNotNull() 147 assertTrue(Utils.equals(null, null)); in testEquals() 148 assertTrue(Utils.equals(a, a)); in testEquals() 149 assertFalse(Utils.equals(null, a)); in testEquals() 150 assertFalse(Utils.equals(a, null)); in testEquals() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 47 private final TimeZoneUtils timezoneUtils = new TimeZoneUtils(Utils.SHARED_PREFS_NAME); 170 Utils.checkForDuplicateNames(mIsDuplicateName, mDuplicateNameCursor, NAME_COLUMN); in testCheckForDuplicateNames() 179 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.MONDAY)); in testGetWeeksSinceEpochFromJulianDay() 181 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.SUNDAY)); in testGetWeeksSinceEpochFromJulianDay() 183 Utils.getWeeksSinceEpochFromJulianDay(JULIAN_DAYS[i], Time.SATURDAY)); in testGetWeeksSinceEpochFromJulianDay() 192 Utils.getJulianMondayFromWeeksSinceEpoch(WEEKS_FOR_JULIAN_MONDAYS[i])); in testGetJulianMondayFromWeeksSinceEpoch() 199 assertTrue(Utils.equals(null, null)); in testEquals() 200 assertFalse(Utils.equals("", null)); in testEquals() 201 assertFalse(Utils.equals(null, "")); in testEquals() 202 assertTrue(Utils.equals("","")); in testEquals() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ScreensaverActivity.java | 34 import com.android.deskclock.Utils.ScreensaverMoveSaverRunnable; 72 } else if (intent.getAction().equals(Utils.ACTION_ON_QUARTER_HOUR) || changed) { 73 Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView); 77 Utils.refreshAlarm(ScreensaverActivity.this, mContentView); 78 mQuarterlyIntent = Utils.refreshAlarmOnQuarterHour( 97 filter.addAction(Utils.ACTION_ON_QUARTER_HOUR); in onStart() 120 mQuarterlyIntent = Utils.startAlarmOnQuarterHour(this); in onResume() 126 Utils.cancelAlarmOnQuarterHour(this, mQuarterlyIntent); in onPause() 164 Utils.setClockStyle(this, mDigitalClock, mAnalogClock, in setClockStyle() 168 Utils.CLOCK_TYPE_DIGITAL : Utils.CLOCK_TYPE_ANALOG); in setClockStyle() [all …]
|
D | ClockFragment.java | 68 if (changed || action.equals(Utils.ACTION_ON_QUARTER_HOUR)) { 69 Utils.updateDate(mDateFormat, mDateFormatForAccessibility,mClockFrame); 86 Utils.refreshAlarm(getActivity(), mClockFrame); 89 mQuarterlyIntent = Utils.refreshAlarmOnQuarterHour(getActivity(), mQuarterlyIntent); 129 long time = Utils.getTimeNow(); in onCreateView() 164 mQuarterlyIntent = Utils.startAlarmOnQuarterHour(getActivity()); in onResume() 167 IntentFilter filter = new IntentFilter(Utils.ACTION_ON_QUARTER_HOUR); in onResume() 183 View clockView = Utils.setClockStyle(getActivity(), mDigitalClock, mAnalogClock, in onResume() 186 Utils.CLOCK_TYPE_DIGITAL : Utils.CLOCK_TYPE_ANALOG); in onResume() 189 Utils.updateDate(mDateFormat, mDateFormatForAccessibility,mClockFrame); in onResume() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventFragment.java | 63 import com.android.calendar.Utils; 103 int mModification = Utils.MODIFY_UNINITIALIZED; 159 mOnDone.setDoneCode(Utils.DONE_EXIT); in onQueryComplete() 293 MatrixCursor matrixCursor = Utils.matrixCursorFromCursor(cursor); in onQueryComplete() 324 if (mShowModifyDialogOnLaunch && mModification == Utils.MODIFY_UNINITIALIZED) { in setModelIfDone() 328 mModification = Utils.MODIFY_ALL; in setModelIfDone() 410 mModification = Utils.MODIFY_ALL; in startQuery() 426 mUseCustomActionBar = !Utils.getConfigBool(mContext, R.bool.multiple_pane_config); in onAttach() 516 if (mModification == Utils.MODIFY_UNINITIALIZED) { in onActionBarItemSelected() 517 mModification = Utils.MODIFY_ALL; in onActionBarItemSelected() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | SearchActivity.java | 99 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, 100 Utils.getTimeZone(SearchActivity.this, mTimeChangesUpdater)); 112 mIsMultipane = Utils.getConfigBool(this, R.bool.multiple_pane_config); in onCreate() 114 Utils.getConfigBool(this, R.bool.show_event_details_with_agenda); in onCreate() 148 millis = Utils.timeFromIntentInMillis(getIntent()); in onCreate() 212 Utils.getSearchAuthority(this), in search() 254 if (Utils.isJellybeanOrLater()) { in onCreateOptionsMenu() 256 Utils.setTodayIcon( in onCreateOptionsMenu() 257 icon, this, Utils.getTimeZone(SearchActivity.this, mTimeChangesUpdater)); in onCreateOptionsMenu() 266 Utils.setUpSearchView(mSearchView, this); in onCreateOptionsMenu() [all …]
|
D | AllInOneActivity.java | 233 Utils.setSharedPreference(AllInOneActivity.this, in onQueryComplete() 250 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 253 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 261 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater); 263 Utils.setMidnightUpdater(mHandler, mTimeChangesUpdater, mTimeZone); 291 && !intent.getBooleanExtra(Utils.INTENT_KEY_HOME, false)) { in onNewIntent() 294 millis = Utils.timeFromIntentInMillis(intent); in onNewIntent() 307 if (Utils.getSharedPreference(this, OtherPreferences.KEY_OTHER_1, false)) { in onCreate() 318 && !Utils.getSharedPreference(this, GeneralPreferences.KEY_SKIP_SETUP, false)) { in onCreate() 345 timeMillis = Utils.timeFromIntentInMillis(intent); in onCreate() [all …]
|
D | GeneralPreferences.java | 155 String ringToneUri = Utils.getSharedPreference(activity, KEY_ALERTS_RINGTONE, ""); in onCreate() 180 tzName = Utils.getTimeZone(activity, null); in onCreate() 252 Utils.setTimeZone(getActivity(), tz); in onPreferenceChange() 257 Intent intent = new Intent(Utils.getWidgetScheduledUpdateAction(act)); in onPreferenceChange() 258 intent.setDataAndType(CalendarContract.CONTENT_URI, Utils.APPWIDGET_DATA_TYPE); in onPreferenceChange() 266 Utils.setTimeZone(getActivity(), tz); in onPreferenceChange() 308 mVibrate.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)); in migrateOldPreferences() 355 Utils.getSearchAuthority(getActivity()), in onPreferenceTreeClick()
|
D | CalendarApplication.java | 34 Utils.setSharedPreference(this, GeneralPreferences.KEY_VERSION, in onCreate() 35 Utils.getVersionCode(this)); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DeviceInfoSettings.java | 110 if (Utils.isWifiOnly(getActivity())) { in onCreate() 121 Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, KEY_TERMS, in onCreate() 122 Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); in onCreate() 123 Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, KEY_LICENSE, in onCreate() 124 Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); in onCreate() 125 Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, KEY_COPYRIGHT, in onCreate() 126 Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); in onCreate() 127 Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, KEY_TEAM, in onCreate() 128 Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); in onCreate() 133 Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, in onCreate() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 56 import com.android.bluetooth.Utils; 513 (!Utils.checkCaller())) { in enable() 525 (!Utils.checkCaller())) { in enableNoAutoConnect() 537 (!Utils.checkCaller())) { in disable() 549 (!Utils.checkCaller())) { in getAddress() 560 if (!Utils.checkCaller()) { in getUuids() 572 (!Utils.checkCaller())) { in getName() 583 if (!Utils.checkCaller()) { in setName() 594 if (!Utils.checkCaller()) { in getScanMode() 605 if (!Utils.checkCaller()) { in setScanMode() [all …]
|
D | AdapterProperties.java | 29 import com.android.bluetooth.Utils; 139 AbstractionLayer.BT_PROPERTY_ADAPTER_SCAN_MODE, Utils.intToByteArray(scanMode)); in setScanMode() 160 AbstractionLayer.BT_PROPERTY_UUIDS, Utils.uuidsToByteArray(uuids)); in setUuids() 237 byte[] addrByte = Utils.getByteAddress(device); in onBondStateChanged() 272 Utils.intToByteArray(timeout)); in setDiscoverableTimeout() 454 debugLog("Address is:" + Utils.getAddressStringFromByte(mAddress)); in adapterPropertyChangedCallback() 457 mBluetoothClass = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback() 461 int mode = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback() 474 mUuids = Utils.byteArrayToUuid(val); in adapterPropertyChangedCallback() 482 Utils.getAddressStringFromByte(addrByte)), in adapterPropertyChangedCallback() [all …]
|
D | RemoteDevices.java | 29 import com.android.bluetooth.Utils; 81 if (dev.getAddress().equals(Utils.getAddressStringFromByte(address))) { in getDevice() 92 mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties() 275 debugLog("Remote Address is:" + Utils.getAddressStringFromByte(val)); in devicePropertyChangedCallback() 278 device.mBluetoothClass = Utils.byteArrayToInt(val); in devicePropertyChangedCallback() 289 device.mUuids = Utils.byteArrayToUuid(val); in devicePropertyChangedCallback() 293 device.mDeviceType = Utils.byteArrayToInt(val); in devicePropertyChangedCallback() 296 device.mRssi = Utils.byteArrayToShort(val); in devicePropertyChangedCallback() 387 warnLog("Device is not known for:" + Utils.getAddressStringFromByte(address)); in sspRequestCallback() 430 mAdapterService.getRemoteServicesNative(Utils.getBytesFromAddress(device.getAddress())); in fetchUuids()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
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()
|
D | CalendarAppWidgetService.java | 43 import com.android.calendar.Utils; 94 if (!Utils.isJellybeanOrLater()) { 247 int displayColor = Utils.getDisplayColorFromColor(eventInfo.color); 280 Utils.getDeclinedColorFromColor(displayColor)); 294 Utils.getDeclinedColorFromColor(displayColor)); 313 String tz = Utils.getTimeZone(mContext, null); 315 start = Utils.convertAlldayLocalToUTC(recycle, start, tz); 316 end = Utils.convertAlldayLocalToUTC(recycle, end, tz); 394 return Utils.getHideDeclinedEvents(mContext) ? EVENT_SELECTION_HIDE_DECLINED 492 String tz = Utils.getTimeZone(mContext, mTimezoneChanged); [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
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); in initView() 96 Utils.getConfigBool(context, R.bool.show_event_details_with_agenda)); in initView() 102 mShowEventDetailsWithAgenda = Utils.getConfigBool(mContext, in initView() 196 startTime = Utils.convertAlldayLocalToUTC(mTime, startTime, mTimeZone); in onItemClick() 197 endTime = Utils.convertAlldayLocalToUTC(mTime, endTime, mTimeZone); in onItemClick() 422 Utils.setMidnightUpdater(mHandler, mMidnightUpdater, mTimeZone); in onResume() 428 Utils.resetMidnightUpdater(mHandler, mMidnightUpdater); in onPause()
|
/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()
|
D | ImageCacheService.java | 23 import com.android.gallery3d.common.Utils; 59 long cacheKey = Utils.crc64Long(key); in getImageData() 81 long cacheKey = Utils.crc64Long(key); in putImageData() 96 long cacheKey = Utils.crc64Long(key); in clearImageData()
|
D | BitmapPool.java | 21 import com.android.gallery3d.common.Utils; 56 Utils.assertTrue(mOneSize); in getBitmap() 63 Utils.assertTrue(!mOneSize); in getBitmap()
|
D | UriImage.java | 30 import com.android.gallery3d.common.Utils; 65 mApplication = Utils.checkNotNull(application); in UriImage() 85 Utils.closeSilently(mFileDescriptor); in openFileOrDownloadTempFile() 103 Utils.closeSilently(is); in openOrDownloadInner() 125 Utils.closeSilently(is); in openOrDownloadInner() 277 Utils.closeSilently(mFileDescriptor); in finalize()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | ProfileUpdateReceiver.java | 27 import com.android.settings.Utils; 42 Utils.copyMeProfilePhoto(context, null); in onReceive() 56 String profileName = Utils.getMeProfileName(context, false /* partial name */); in copyProfileName()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | CropView.java | 37 import com.android.gallery3d.common.Utils; 123 Utils.assertTrue(message.what == MSG_UPDATE_FACES); in CropView() 336 point.x = Utils.clamp(((point.x - getWidth() * 0.5f) / s in inverseMapPoint() 338 point.y = Utils.clamp(((point.y - getHeight() * 0.5f) / s in inverseMapPoint() 384 float scale = Utils.clamp(SELECTION_RATIO * Math.min( in calculateTarget() 396 centerX = Utils.clamp(centerX, limitX, mImageWidth - limitX); in calculateTarget() 404 centerY = Utils.clamp(centerY, limitY, mImageHeight - limitY); in calculateTarget() 461 dx = Utils.clamp(dx, -r.left, 1 - r.right); in moveEdges() 462 dy = Utils.clamp(dy, -r.top , 1 - r.bottom); in moveEdges() 476 r.right = Utils.clamp(point.x, left, 1f); in moveEdges() [all …]
|
D | Paper.java | 24 import com.android.gallery3d.common.Utils; 136 mValue = Utils.clamp(mValue + deltaDistance, -1.0f, 1.0f); in onPull() 146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR, in onAbsorb() 155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); in update()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 36 import com.android.bluetooth.Utils; 152 if (!connectHidNative(Utils.getByteAddress(device)) ) { 163 if (!disconnectHidNative(Utils.getByteAddress(device)) ) { 183 disconnectHidNative(Utils.getByteAddress(device)); 200 if(!getProtocolModeNative(Utils.getByteAddress(device)) ) { 216 if(!virtualUnPlugNative(Utils.getByteAddress(device))) { 226 if(!setProtocolModeNative(Utils.getByteAddress(device), protocolMode)) { 238 … if(!getReportNative(Utils.getByteAddress(device), reportType, reportId, bufferSize)) { 249 if(!setReportNative(Utils.getByteAddress(device), reportType, report)) { 259 if(!sendDataNative(Utils.getByteAddress(device), report)) { [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | JobLimiter.java | 19 import com.android.gallery3d.common.Utils; 93 Utils.waitWithoutInterrupt(this); in get() 132 mPool = Utils.checkNotNull(pool); in JobLimiter() 137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener); in submit()
|