/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 198 for (AlarmInstance instance : alarmInstances) { in getNextFiringAlarm() 199 if (nextAlarm == null || instance.getAlarmTime().before(nextAlarm.getAlarmTime())) { in getNextFiringAlarm() 200 nextAlarm = instance; in getNextFiringAlarm() 268 private static void updateParentAlarm(Context context, AlarmInstance instance) { in updateParentAlarm() argument 270 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in updateParentAlarm() 272 LogUtils.e("Parent has been deleted with instance: " + instance.toString()); in updateParentAlarm() 305 AlarmInstance instance, Integer state) { in createStateChangeIntent() argument 306 Intent intent = AlarmInstance.createIntent(context, AlarmStateManager.class, instance.mId); in createStateChangeIntent() 325 AlarmInstance instance, int newState) { in scheduleInstanceStateChange() argument 326 sStateChangeScheduler.scheduleInstanceStateChange(ctx, time, instance, newState); in scheduleInstanceStateChange() [all …]
|
D | AlarmNotifications.java | 36 public static void showLowPriorityNotification(Context context, AlarmInstance instance) { in showLowPriorityNotification() argument 37 LogUtils.v("Displaying low priority notification for alarm instance: " + instance.mId); in showLowPriorityNotification() 43 .setContentText(AlarmUtils.getAlarmText(context, instance)) in showLowPriorityNotification() 53 AlarmStateManager.ALARM_DELETE_TAG, instance, in showLowPriorityNotification() 55 notification.setDeleteIntent(PendingIntent.getBroadcast(context, instance.hashCode(), in showLowPriorityNotification() 60 AlarmStateManager.ALARM_DISMISS_TAG, instance, AlarmInstance.PREDISMISSED_STATE); in showLowPriorityNotification() 63 PendingIntent.getBroadcast(context, instance.hashCode(), in showLowPriorityNotification() 67 Intent viewAlarmIntent = createViewAlarmIntent(context, instance); in showLowPriorityNotification() 68 notification.setContentIntent(PendingIntent.getActivity(context, instance.hashCode(), in showLowPriorityNotification() 71 nm.cancel(instance.hashCode()); in showLowPriorityNotification() [all …]
|
D | AlarmService.java | 96 public static void startAlarm(Context context, AlarmInstance instance) { in startAlarm() argument 97 final Intent intent = AlarmInstance.createIntent(context, AlarmService.class, instance.mId) in startAlarm() 112 public static void stopAlarm(Context context, AlarmInstance instance) { in stopAlarm() argument 113 final Intent intent = AlarmInstance.createIntent(context, AlarmService.class, instance.mId) in stopAlarm() 138 private void startAlarm(AlarmInstance instance) { in startAlarm() argument 139 LogUtils.v("AlarmService.start with instance: " + instance.mId); in startAlarm() 149 mCurrentAlarm = instance; in startAlarm() 224 final AlarmInstance instance = AlarmInstance.getInstance(cr, instanceId); in onStartCommand() local 225 if (instance == null) { in onStartCommand() 238 startAlarm(instance); in onStartCommand()
|
D | AlarmKlaxon.java | 49 public static void start(Context context, AlarmInstance instance) { in start() argument 54 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start() 55 getAsyncRingtonePlayer(context).play(instance.mRingtone); in start() 58 if (instance.mVibrate) { in start()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.java | 95 public static ContentValues createContentValues(AlarmInstance instance) { in createContentValues() argument 97 if (instance.mId != INVALID_ID) { in createContentValues() 98 values.put(_ID, instance.mId); in createContentValues() 101 values.put(YEAR, instance.mYear); in createContentValues() 102 values.put(MONTH, instance.mMonth); in createContentValues() 103 values.put(DAY, instance.mDay); in createContentValues() 104 values.put(HOUR, instance.mHour); in createContentValues() 105 values.put(MINUTES, instance.mMinute); in createContentValues() 106 values.put(LABEL, instance.mLabel); in createContentValues() 107 values.put(VIBRATE, instance.mVibrate ? 1 : 0); in createContentValues() [all …]
|
/packages/apps/Camera2/src/com/android/camera/debug/ |
D | Log.java | 70 public static void d(Tag tag, Object instance, String msg) { in d() argument 72 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg)); in d() 76 public static void d(Tag tag, Object instance, String msg, String tags) { in d() argument 78 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg, tags)); in d() 94 public static void e(Tag tag, Object instance, String msg) { in e() argument 96 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg)); in e() 100 public static void e(Tag tag, Object instance, String msg, String tags) { in e() argument 102 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg, tags)); in e() 118 public static void i(Tag tag, Object instance, String msg) { in i() argument 120 android.util.Log.i(tag.toString(), LogUtil.addTags(instance, msg)); in i() [all …]
|
D | Loggers.java | 33 return NoOpLoggerFactory.instance(); in noOpFactory() 41 return TagLoggerFactory.instance(); in tagFactory() 64 public static NoOpLoggerFactory instance() { 89 public static TagLoggerFactory instance() {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | HandleMap.java | 40 int instance = 0; field in HandleMap.Entry 47 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() argument 52 this.instance = instance; in Entry() 56 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance, in Entry() argument 62 this.instance = instance; in Entry() 72 this.instance = instance; in Entry() 81 this.instance = instance; in Entry() 101 void addService(int serverIf, int handle, UUID uuid, int serviceType, int instance, in addService() argument 103 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService() 136 int getServiceHandle(UUID uuid, int serviceType, int instance) { in getServiceHandle() argument [all …]
|
D | ServiceDeclaration.java | 37 int instance = 0; field in ServiceDeclaration.Entry 44 Entry(UUID uuid, int serviceType, int instance) { in Entry() argument 47 this.instance = instance; in Entry() 51 Entry(UUID uuid, int serviceType, int instance, boolean advertisePreferred) { in Entry() argument 54 this.instance = instance; in Entry() 59 Entry(UUID uuid, int properties, int permissions, int instance) { in Entry() argument 62 this.instance = instance; in Entry() 81 void addService(UUID uuid, int serviceType, int instance, int minHandles, in addService() argument 83 mEntries.add(new Entry(uuid, serviceType, instance, advertisePreferred)); in addService() 91 void addIncludedService(UUID uuid, int serviceType, int instance) { in addIncludedService() argument [all …]
|
/packages/apps/FMRadio/src/com/android/fmradio/views/ |
D | FmSnackBar.java | 88 FmSnackBar instance = new FmSnackBar(context); in make() local 90 instance.mTextView.setText(""); in make() 92 instance.mTextView.setText(title); in make() 95 instance.mButton.setText(actionName); in make() 96 instance.mActionListener = listener; in make() 97 instance.mButton.setVisibility(View.VISIBLE); in make() 99 instance.mButton.setVisibility(View.GONE); in make() 102 instance.mDuration = MIN_DURATION; in make() 104 instance.mDuration = duration; in make() 106 return instance; in make()
|
/packages/apps/Gallery2/src/android/util/ |
D | Pools.java | 65 public boolean release(T instance); in release() argument 101 T instance = (T) mPool[lastPooledIndex]; in acquire() local 104 return instance; in acquire() 110 public boolean release(T instance) { in release() argument 111 if (isInPool(instance)) { in release() 115 mPool[mPoolSize] = instance; in release() 122 private boolean isInPool(T instance) { in isInPool() argument 124 if (mPool[i] == instance) { in isInPool()
|
/packages/apps/Camera2/src/android/util/ |
D | Pools.java | 65 public boolean release(T instance); in release() argument 101 T instance = (T) mPool[lastPooledIndex]; in acquire() local 104 return instance; in acquire() 110 public boolean release(T instance) { in release() argument 111 if (isInPool(instance)) { in release() 115 mPool[mPoolSize] = instance; in release() 122 private boolean isInPool(T instance) { in isInPool() argument 124 if (mPool[i] == instance) { in isInPool()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 193 Object instance = null; in createVideoThumbnail() local 196 instance = clazz.newInstance(); in createVideoThumbnail() 199 method.invoke(instance, filePath); in createVideoThumbnail() 203 return (Bitmap) clazz.getMethod("captureFrame").invoke(instance); in createVideoThumbnail() 205 byte[] data = (byte[]) clazz.getMethod("getEmbeddedPicture").invoke(instance); in createVideoThumbnail() 210 return (Bitmap) clazz.getMethod("getFrameAtTime").invoke(instance); in createVideoThumbnail() 228 if (instance != null) { in createVideoThumbnail() 229 clazz.getMethod("release").invoke(instance); in createVideoThumbnail()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CameraActivity.java | 291 private final Profiler mProfiler = Profilers.instance().guard(); 367 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex( 388 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex( 405 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex( 633 UsageStatistics.instance().changeScreen(currentUserInterfaceMode(), 647 UsageStatistics.instance().changeScreen(currentUserInterfaceMode(), 659 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex( 669 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex( 749 UsageStatistics.instance().mediaView(localFile.getName(), 796 UsageStatistics.instance().changeScreen(NavigationChange.Mode.FILMSTRIP, in gotoGallery() [all …]
|
D | FatalErrorHandlerImpl.java | 42 UsageStatistics.instance().storageWarning(Storage.ACCESS_FAILURE); in onMediaStorageFailure() 56 UsageStatistics.instance().cameraFailure( in onCameraOpenFailure() 72 UsageStatistics.instance().cameraFailure( in onCameraReconnectFailure() 88 UsageStatistics.instance().cameraFailure( in onGenericCameraAccessFailure() 105 UsageStatistics.instance().cameraFailure( in onCameraDisabledFailure()
|
D | PhotoModule.java | 407 mHeadingSensor = new HeadingSensor(AndroidServices.instance().provideSensorManager()); in init() 746 SessionStatsCollector.instance().faceScanActive(true); in startFaceDetection() 760 SessionStatsCollector.instance().faceScanActive(false); in stopFaceDetection() 944 UsageStatistics.instance().photoCaptureDoneEvent( in saveFinalPhoto() 1035 SessionStatsCollector.instance().autofocusResult(focused); in onAutoFocus() 1053 SessionStatsCollector.instance().autofocusMoving(moving); in onAutoFocusMoving() 1069 r.title = CameraUtil.instance().createJpegName(date); in nameNewImage() 1477 SessionStatsCollector.instance().sessionActive(true); in resume() 1537 SessionStatsCollector.instance().sessionActive(false); in pause() 1614 SessionStatsCollector.instance().autofocusManualTrigger(); in autoFocus() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | PopupManager.java | 54 PopupManager instance = sMap.get(context); in getInstance() local 55 if (instance == null) { in getInstance() 56 instance = new PopupManager(); in getInstance() 57 sMap.put(context, instance); in getInstance() 59 return instance; in getInstance() 63 PopupManager instance = sMap.get(context); in removeInstance() local
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | PopupManager.java | 54 PopupManager instance = sMap.get(context); in getInstance() local 55 if (instance == null) { in getInstance() 56 instance = new PopupManager(); in getInstance() 57 sMap.put(context, instance); in getInstance() 59 return instance; in getInstance() 63 PopupManager instance = sMap.get(context); in removeInstance() local
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | NinePatchTexture.java | 143 NinePatchInstance instance = mInstanceCache.get(key); in findInstance() local 145 if (instance == null) { in findInstance() 146 instance = new NinePatchInstance(this, w, h); in findInstance() 147 NinePatchInstance removed = mInstanceCache.put(key, instance); in findInstance() 153 return instance; in findInstance() 174 NinePatchInstance instance = mInstanceCache.valueAt(i); in recycle() local 175 instance.recycle(canvas); in recycle()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | VeiledAddressMatcher.java | 118 final VeiledAddressMatcher instance = new VeiledAddressMatcher(); in newInstance() local 119 instance.mVeiledMatchingEnabled = resources.getBoolean(VEILED_MATCHING_ENABLED); in newInstance() 120 if (instance.mVeiledMatchingEnabled) { in newInstance() 121 instance.loadPattern(resources.getString(VEILED_RESOURCE)); in newInstance() 123 return instance; in newInstance()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleApiCalls.java | 392 private void setupInstance(AlarmInstance instance, boolean skipUi) { in setupInstance() argument 393 instance = AlarmInstance.addInstance(this.getContentResolver(), instance); in setupInstance() 394 AlarmStateManager.registerInstance(this, instance, true); in setupInstance() 395 AlarmUtils.popAlarmSetToast(this, instance.getAlarmTime().getTimeInMillis()); in setupInstance() 397 Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId); in setupInstance() 399 showAlarm.putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, instance.mAlarmId); in setupInstance()
|
/packages/apps/Messaging/src/com/android/messaging/ |
D | FactoryImpl.java | 208 PhoneUtils instance = sPhoneUtilsInstanceCacheLMR1.get(subId); in getPhoneUtils() local 209 if (instance == null) { in getPhoneUtils() 210 instance = new PhoneUtils.PhoneUtilsLMR1(subId); in getPhoneUtils() 211 sPhoneUtilsInstanceCacheLMR1.putIfAbsent(subId, instance); in getPhoneUtils() 213 return instance; in getPhoneUtils()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | CameraApp.java | 60 Profile guard = Profilers.instance().guard("CameraApp onCreate()"); in onCreate() 64 FirstRunDetector.instance().initializeTimeOfFirstRun(context); in onCreate() 67 UsageStatistics.instance().initialize(this); in onCreate() 79 NotificationManager manager = AndroidServices.instance().provideNotificationManager(); in clearNotifications()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 373 for (String instance : dates) { in VerifyAllInstances() 374 time.parse3339(instance); in VerifyAllInstances() 401 for (long instance : instances) { in execute() 402 if (instance == begin) { in execute() 440 long instance; field in CalendarProvider2Test.VerifyInstance 463 instance = time.toMillis(false /* use isDst */); in VerifyInstance() 473 if (instance == begin) { in execute() 485 String date = DateUtils.formatDateRange(mContext, instance, instance, flags); in execute() 1608 InstanceInfo instance = mInstanceRanges[ii]; in testInstanceRange() local 1609 EventInfo event = instance.mEvent; in testInstanceRange() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/editor/ |
D | SelectAccountDialogFragment.java | 65 final SelectAccountDialogFragment instance = new SelectAccountDialogFragment(); in show() local 66 instance.setArguments(args); in show() 67 instance.setTargetFragment(targetFragment, 0); in show() 68 instance.show(fragmentManager, null); in show()
|