Home
last modified time | relevance | path

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

1234567

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
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.java86 AlarmInstance instance) { in showLowPriorityNotification() argument
87 LogUtils.v("Displaying low priority notification for alarm instance: " + instance.mId); in showLowPriorityNotification()
93 .setContentText(AlarmUtils.getAlarmText(context, instance, true /* includeLabel */)) in showLowPriorityNotification()
97 .setSortKey(createSortKey(instance)) in showLowPriorityNotification()
109 AlarmStateManager.ALARM_DELETE_TAG, instance, in showLowPriorityNotification()
111 final int id = instance.hashCode(); in showLowPriorityNotification()
117 AlarmStateManager.ALARM_DISMISS_TAG, instance, AlarmInstance.PREDISMISSED_STATE); in showLowPriorityNotification()
124 Intent viewAlarmIntent = createViewAlarmIntent(context, instance); in showLowPriorityNotification()
135 AlarmInstance instance) { in showHighPriorityNotification() argument
136 LogUtils.v("Displaying high priority notification for alarm instance: " + instance.mId); in showHighPriorityNotification()
[all …]
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()
/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 …]
/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/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/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/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/UnifiedEmail/src/com/android/mail/utils/
DVeiledAddressMatcher.java118 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/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/
DFatalErrorHandlerImpl.java42 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()
/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()
DRussianSmartDialMap.java27 private static RussianSmartDialMap instance; field in RussianSmartDialMap
30 if (instance == null) { in getInstance()
31 instance = new RussianSmartDialMap(); in getInstance()
34 return instance; in getInstance()
DBulgarianSmartDialMap.java27 private static BulgarianSmartDialMap instance; field in BulgarianSmartDialMap
30 if (instance == null) { in getInstance()
31 instance = new BulgarianSmartDialMap(); in getInstance()
34 return instance; in getInstance()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManager.java60 private static ContactPhotoManager instance; field in ContactPhotoManager
182 if (instance == null) { in getInstance()
184 instance = createContactPhotoManager(applicationContext); in getInstance()
185 applicationContext.registerComponentCallbacks(instance); in getInstance()
187 instance.preloadPhotosInBackground(); in getInstance()
190 return instance; in getInstance()
199 instance = photoManager; in injectContactPhotoManagerForTesting()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java143 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()

1234567