Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 180) sorted by relevance

12345678

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt98 instance: AlarmInstance, in <lambda>()
102 fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) in <lambda>()
112 instance: AlarmInstance, in <lambda>()
117 instance.mId, AlarmUtils.getFormattedTime(context, time), timeInMillis) in <lambda>()
119 createStateChangeIntent(context, ALARM_MANAGER_TAG, instance, newState) in <lambda>()
123 PendingIntent.getService(context, instance.hashCode(), in <lambda>()
135 override fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) { in <lambda>()
136 LogUtils.v("Canceling instance " + instance.mId + " timers") in <lambda>()
140 PendingIntent.getService(context, instance.hashCode(), in <lambda>()
141 createStateChangeIntent(context, ALARM_MANAGER_TAG, instance, null), in <lambda>()
[all …]
DAlarmStateManager.java189 for (AlarmInstance instance : alarmInstances) { in getNextFiringAlarm()
190 if (nextAlarm == null || instance.getAlarmTime().before(nextAlarm.getAlarmTime())) { in getNextFiringAlarm()
191 nextAlarm = instance; in getNextFiringAlarm()
262 private static void updateParentAlarm(Context context, AlarmInstance instance) { in updateParentAlarm() argument
264 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in updateParentAlarm()
266 LogUtils.e("Parent has been deleted with instance: " + instance.toString()); in updateParentAlarm()
284 if (instance.mAlarmState > AlarmInstance.FIRED_STATE in updateParentAlarm()
285 && nextRepeatedInstance.getAlarmTime().equals(instance.getAlarmTime())) { in updateParentAlarm()
286 nextRepeatedInstance = alarm.createInstanceAfter(instance.getAlarmTime()); in updateParentAlarm()
306 AlarmInstance instance, Integer state) { in createStateChangeIntent() argument
[all …]
DAlarmNotifications.java93 AlarmInstance instance, boolean lowPriority) { in showUpcomingNotification() argument
94 LogUtils.v("Displaying upcoming alarm notification for alarm instance: " + instance.mId + in showUpcomingNotification()
103 context, instance, true /* includeLabel */)) in showUpcomingNotification()
107 .setSortKey(createSortKey(instance)) in showUpcomingNotification()
117 final int id = instance.hashCode(); in showUpcomingNotification()
121 AlarmStateManager.ALARM_DELETE_TAG, instance, in showUpcomingNotification()
130 AlarmStateManager.ALARM_DISMISS_TAG, instance, AlarmInstance.PREDISMISSED_STATE); in showUpcomingNotification()
137 Intent viewAlarmIntent = createViewAlarmIntent(context, instance); in showUpcomingNotification()
271 AlarmInstance instance) { in showSnoozeNotification() argument
272 LogUtils.v("Displaying snoozed notification for alarm instance: " + instance.mId); in showSnoozeNotification()
[all …]
DAlarmNotifications.kt115 instance: AlarmInstance in showLowPriorityNotification()
117 LogUtils.v("Displaying low priority notification for alarm instance: " + instance.mId) in showLowPriorityNotification()
125 context, instance, true /* includeLabel */)) in showLowPriorityNotification()
129 .setSortKey(createSortKey(instance)) in showLowPriorityNotification()
141 AlarmStateManager.ALARM_DELETE_TAG, instance, in showLowPriorityNotification()
143 val id = instance.hashCode() in showLowPriorityNotification()
149 AlarmStateManager.ALARM_DISMISS_TAG, instance, InstancesColumns.PREDISMISSED_STATE) in showLowPriorityNotification()
156 val viewAlarmIntent: Intent = createViewAlarmIntent(context, instance) in showLowPriorityNotification()
177 instance: AlarmInstance in showHighPriorityNotification()
179 LogUtils.v("Displaying high priority notification for alarm instance: " + instance.mId) in showHighPriorityNotification()
[all …]
DAlarmUpdateHandler.kt78 override fun onPostExecute(instance: AlarmInstance?) { in <lambda>()
79 if (instance != null) { in <lambda>()
81 instance.alarmTime.timeInMillis) in <lambda>()
110 for (instance in instanceList) { in <lambda>() constant
112 val newInstance = AlarmInstance(instance) in <lambda>()
133 override fun onPostExecute(instance: AlarmInstance?) { in <lambda>()
134 if (popToast && instance != null) { in <lambda>()
136 mSnackbarAnchor!!, instance.alarmTime.timeInMillis) in <lambda>()
175 fun showPredismissToast(instance: AlarmInstance) { in <lambda>()
176 val time: String = DateFormat.getTimeFormat(mAppContext).format(instance.alarmTime.time) in <lambda>()
DAlarmUpdateHandler.java85 protected void onPostExecute(AlarmInstance instance) { in asyncAddAlarm()
86 if (instance != null) { in asyncAddAlarm()
88 mSnackbarAnchor, instance.getAlarmTime().getTimeInMillis()); in asyncAddAlarm()
117 for (AlarmInstance instance : instanceList) { in asyncUpdateAlarm()
119 final AlarmInstance newInstance = new AlarmInstance(instance); in asyncUpdateAlarm()
141 protected void onPostExecute(AlarmInstance instance) { in asyncUpdateAlarm()
142 if (popToast && instance != null) { in asyncUpdateAlarm()
144 mSnackbarAnchor, instance.getAlarmTime().getTimeInMillis()); in asyncUpdateAlarm()
185 public void showPredismissToast(AlarmInstance instance) { in showPredismissToast() argument
187 instance.getAlarmTime().getTime()); in showPredismissToast()
DAlarmService.java96 public static void stopAlarm(Context context, AlarmInstance instance) { in stopAlarm() argument
97 final Intent intent = AlarmInstance.createIntent(context, AlarmService.class, instance.mId) in stopAlarm()
107 private void startAlarm(AlarmInstance instance) { in startAlarm() argument
108 LogUtils.v("AlarmService.start with instance: " + instance.mId); in startAlarm()
116 mCurrentAlarm = instance; in startAlarm()
202 final AlarmInstance instance = AlarmInstance.getInstance(cr, instanceId); in onStartCommand() local
203 if (instance == null) { in onStartCommand()
216 startAlarm(instance); in onStartCommand()
DAlarmService.kt70 private fun startAlarm(instance: AlarmInstance) { in startAlarm()
71 LogUtils.v("AlarmService.start with instance: " + instance.mId) in startAlarm()
79 mCurrentAlarm = instance in startAlarm()
163 val instance: AlarmInstance? = AlarmInstance.getInstance(cr, instanceId) in onStartCommand() constant
164 if (instance == null) { in onStartCommand()
173 startAlarm(instance) in onStartCommand()
255 fun stopAlarm(context: Context, instance: AlarmInstance) { in stopAlarm()
257 AlarmInstance.createIntent(context, AlarmService::class.java, instance.mId) in stopAlarm()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java90 public static ContentValues createContentValues(AlarmInstance instance) { in createContentValues() argument
92 if (instance.mId != INVALID_ID) { in createContentValues()
93 values.put(_ID, instance.mId); in createContentValues()
96 values.put(YEAR, instance.mYear); in createContentValues()
97 values.put(MONTH, instance.mMonth); in createContentValues()
98 values.put(DAY, instance.mDay); in createContentValues()
99 values.put(HOUR, instance.mHour); in createContentValues()
100 values.put(MINUTES, instance.mMinute); in createContentValues()
101 values.put(LABEL, instance.mLabel); in createContentValues()
102 values.put(VIBRATE, instance.mVibrate ? 1 : 0); in createContentValues()
[all …]
DAlarmInstance.kt78 constructor(instance: AlarmInstance) {
79 mId = instance.mId
80 mYear = instance.mYear
81 mMonth = instance.mMonth
82 mDay = instance.mDay
83 mHour = instance.mHour
84 mMinute = instance.mMinute
85 mLabel = instance.mLabel
86 mVibrate = instance.mVibrate
87 mRingtone = instance.mRingtone
[all …]
/packages/apps/Dialer/java/com/android/dialer/oem/
DMotorolaHiddenMenuKeySequence.java38 private static MotorolaHiddenMenuKeySequence instance = null; field in MotorolaHiddenMenuKeySequence
67 if (null == instance) { in getInstance()
68 instance = new MotorolaHiddenMenuKeySequence(context, new SystemPropertiesAccessor()); in getInstance()
70 return instance; in getInstance()
74 static void setInstanceForTest(MotorolaHiddenMenuKeySequence instance) { in setInstanceForTest() argument
75 MotorolaHiddenMenuKeySequence.instance = instance; in setInstanceForTest()
124 MotorolaHiddenMenuKeySequence instance = getInstance(context); in handleKeyPattern() local
128 || instance.hiddenKeyPatterns == null in handleKeyPattern()
129 || instance.hiddenKeyPatternIntents == null) { in handleKeyPattern()
133 for (int i = 0; i < instance.hiddenKeyPatterns.size(); i++) { in handleKeyPattern()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DCustomizationParamsTest.java69 CustomizationParams instance = createInstance(params); in defaultColorManagedProfile() local
72 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID))); in defaultColorManagedProfile()
73 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR)); in defaultColorManagedProfile()
82 CustomizationParams instance = createInstance(params); in defaultColorDeviceOwner() local
85 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID))); in defaultColorDeviceOwner()
86 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR)); in defaultColorDeviceOwner()
95 CustomizationParams instance = createInstance(params); in respectsMainColor() local
98 assertThat(instance.statusBarColor, equalTo(SAMPLE_COLOR)); in respectsMainColor()
99 assertThat(instance.mainColor, equalTo(SAMPLE_COLOR)); in respectsMainColor()
108 CustomizationParams instance = createInstance(params); in orgNameDefaultsToNull() local
[all …]
/packages/apps/Camera2/src/com/android/camera/debug/
DLog.java70 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 …]
/packages/apps/Dialer/java/com/android/incallui/
DBindings.java28 private static InCallUiBindings instance; field in Bindings
34 if (instance != null) { in get()
35 return instance; in get()
40 instance = ((InCallUiBindingsFactory) application).newInCallUiBindings(); in get()
43 if (instance == null) { in get()
44 instance = new InCallUiBindingsStub(); in get()
46 return instance; in get()
50 instance = testInstance; in setForTesting()
/packages/apps/Dialer/java/com/android/contacts/common/extensions/
DPhoneDirectoryExtenderAccessor.java25 private static PhoneDirectoryExtender instance; field in PhoneDirectoryExtenderAccessor
31 instance = extender; in setForTesting()
37 if (instance != null) { in get()
38 return instance; in get()
43 instance = ((PhoneDirectoryExtenderFactory) application).newPhoneDirectoryExtender(); in get()
46 if (instance == null) { in get()
47 instance = new PhoneDirectoryExtenderStub(); in get()
49 return instance; in get()
/packages/apps/Gallery2/src/android/util/
DPools.java65 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/
DPools.java65 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/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java128 final AlarmInstance instance = AlarmInstance.getNextUpcomingInstanceByAlarmId( in dismissAlarm() local
130 if (instance == null) { in dismissAlarm()
137 dismissAlarmInstance(instance, activity); in dismissAlarm()
140 public static void dismissAlarmInstance(AlarmInstance instance, Activity activity) { in dismissAlarmInstance() argument
144 final Date alarmTime = instance.getAlarmTime().getTime(); in dismissAlarmInstance()
147 if (instance.mAlarmState == FIRED_STATE || instance.mAlarmState == SNOOZE_STATE) { in dismissAlarmInstance()
149 AlarmStateManager.deleteInstanceAndUpdateParent(context, instance); in dismissAlarmInstance()
150 } else if (Utils.isAlarmWithin24Hours(instance)) { in dismissAlarmInstance()
152 AlarmStateManager.setPreDismissState(context, instance); in dismissAlarmInstance()
164 LOGGER.i("Alarm dismissed: " + instance); in dismissAlarmInstance()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DHandleMap.java41 public int instance = 0; field in HandleMap.Entry
48 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() argument
53 this.instance = instance; in Entry()
57 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance, in Entry() argument
63 this.instance = instance; in Entry()
100 void addService(int serverIf, int handle, UUID uuid, int serviceType, int instance, in addService() argument
102 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java229 Result instance = sPool.acquire(); in obtain() local
230 instance = (instance != null ? instance : new Result()); in obtain()
232 instance.mStatus = status; in obtain()
233 instance.mThumbnail = thumbnail; in obtain()
234 instance.mSize = size; in obtain()
235 instance.mLastModified = lastModified; in obtain()
237 return instance; in obtain()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DPopupManager.java54 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/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java193 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/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConnectionService.java42 private static SimulatorConnectionService instance; field in SimulatorConnectionService
46 return instance; in getInstance()
60 instance = this; in onCreate()
67 instance = null; in onDestroy()
97 SimulatorComponent.get(instance) in onCreateOutgoingConnection()
139 SimulatorComponent.get(instance) in onCreateIncomingConnection()
/packages/apps/Camera2/src/com/android/camera/session/
DPlaceholderManager.java72 Uri uri = Storage.instance().addEmptyPlaceholder(size); in insertEmptyPlaceholder()
94 Uri uri = Storage.instance().addPlaceholder(placeholder); in insertPlaceholder()
137 …Uri resultUri = Storage.instance().updateImage(placeholder.outputUri, mContext.getContentResolver(… in finishPlaceholder()
151 Storage.instance().replacePlaceholder(session.outputUri, placeholder); in replacePlaceholder()
161 return Storage.instance().getPlaceholderForSession(placeholder.outputUri); in getPlaceholder()
171 Storage.instance().removePlaceholder(placeholder.outputUri); in removePlaceholder()
/packages/apps/Dialer/java/com/android/dialer/smartdial/map/
DUkrainianSmartDialMap.java26 private static UkrainianSmartDialMap instance; field in UkrainianSmartDialMap
29 if (instance == null) { in getInstance()
30 instance = new UkrainianSmartDialMap(); in getInstance()
33 return instance; in getInstance()

12345678