Searched refs:instance (Results 1 - 25 of 148) sorted by relevance

123456

/packages/apps/Dialer/java/com/android/contacts/common/extensions/
H A DPhoneDirectoryExtenderAccessor.java25 private static PhoneDirectoryExtender instance; field in class:PhoneDirectoryExtenderAccessor
31 instance = extender;
37 if (instance != null) {
38 return instance;
43 instance = ((PhoneDirectoryExtenderFactory) application).newPhoneDirectoryExtender();
46 if (instance == null) {
47 instance = new PhoneDirectoryExtenderStub();
49 return instance;
/packages/apps/Dialer/java/com/android/incallui/
H A DBindings.java28 private static InCallUiBindings instance; field in class:Bindings
34 if (instance != null) {
35 return instance;
40 instance = ((InCallUiBindingsFactory) application).newInCallUiBindings();
43 if (instance == null) {
44 instance = new InCallUiBindingsStub();
46 return instance;
50 instance = testInstance;
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
H A DDatabaseTestUtils.java41 Field instance;
44 instance = clazz.getDeclaredField("sSingleton");
45 instance.setAccessible(true);
46 instance.set(null, null);
56 Field instance;
59 instance = clazz.getDeclaredField("sSingleton");
60 instance.setAccessible(true);
61 instance.set(null, null);
71 Field instance;
74 instance
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DPopupManager.java54 PopupManager instance = sMap.get(context);
55 if (instance == null) {
56 instance = new PopupManager();
57 sMap.put(context, instance);
59 return instance;
63 PopupManager instance = sMap.get(context);
/packages/apps/Camera2/src_pd/com/android/camera/debug/
H A DLogHelper.java23 public static LogHelper instance() { method in class:LogHelper
/packages/apps/Dialer/java/com/android/dialer/smartdial/map/
H A DBulgarianSmartDialMap.java27 private static BulgarianSmartDialMap instance; field in class:BulgarianSmartDialMap
30 if (instance == null) {
31 instance = new BulgarianSmartDialMap();
34 return instance;
H A DRussianSmartDialMap.java27 private static RussianSmartDialMap instance; field in class:RussianSmartDialMap
30 if (instance == null) {
31 instance = new RussianSmartDialMap();
34 return instance;
H A DUkrainianSmartDialMap.java26 private static UkrainianSmartDialMap instance; field in class:UkrainianSmartDialMap
29 if (instance == null) {
30 instance = new UkrainianSmartDialMap();
33 return instance;
/packages/apps/Camera2/src/android/util/
H A DPools.java28 * MyPooledClass instance = sPool.acquire();
29 * return (instance != null) ? instance : new MyPooledClass();
53 * @return An instance from the pool if such, null otherwise.
58 * Release an instance to the pool.
60 * @param instance The instance to release.
61 * @return Whether the instance was put in the pool.
63 * @throws IllegalStateException If the instance is already in the pool.
65 public boolean release(T instance); argument
110 release(T instance) argument
122 isInPool(T instance) argument
[all...]
/packages/apps/Gallery2/src/android/util/
H A DPools.java28 * MyPooledClass instance = sPool.acquire();
29 * return (instance != null) ? instance : new MyPooledClass();
53 * @return An instance from the pool if such, null otherwise.
58 * Release an instance to the pool.
60 * @param instance The instance to release.
61 * @return Whether the instance was put in the pool.
63 * @throws IllegalStateException If the instance is already in the pool.
65 public boolean release(T instance); argument
110 release(T instance) argument
122 isInPool(T instance) argument
[all...]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
H A DCustomizationParamsTest.java68 CustomizationParams instance = createInstance(params);
71 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID)));
72 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR));
81 CustomizationParams instance = createInstance(params);
84 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID)));
85 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR));
94 CustomizationParams instance = createInstance(params);
97 assertThat(instance.statusBarColor, equalTo(SAMPLE_COLOR));
98 assertThat(instance.mainColor, equalTo(SAMPLE_COLOR));
107 CustomizationParams instance
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DAlarmInstance.java90 public static ContentValues createContentValues(AlarmInstance instance) { argument
92 if (instance.mId != INVALID_ID) {
93 values.put(_ID, instance.mId);
96 values.put(YEAR, instance.mYear);
97 values.put(MONTH, instance.mMonth);
98 values.put(DAY, instance.mDay);
99 values.put(HOUR, instance.mHour);
100 values.put(MINUTES, instance.mMinute);
101 values.put(LABEL, instance.mLabel);
102 values.put(VIBRATE, instance
239 addInstance(ContentResolver contentResolver, AlarmInstance instance) argument
262 updateInstance(ContentResolver contentResolver, AlarmInstance instance) argument
313 AlarmInstance(AlarmInstance instance) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/oem/
H A DMotorolaHiddenMenuKeySequence.java38 private static MotorolaHiddenMenuKeySequence instance = null; field in class:MotorolaHiddenMenuKeySequence
61 * Public interface to return the Singleton instance
64 * @return the MotorolaHiddenMenuKeySequence singleton instance
67 if (null == instance) {
68 instance = new MotorolaHiddenMenuKeySequence(context, new SystemPropertiesAccessor());
70 return instance;
119 MotorolaHiddenMenuKeySequence instance = getInstance(context);
123 || instance.hiddenKeyPatterns == null
124 || instance.hiddenKeyPatternIntents == null) {
128 for (int i = 0; i < instance
[all...]
/packages/apps/Dialer/java/com/android/dialer/util/
H A DTouchPointManager.java30 private static TouchPointManager instance = new TouchPointManager(); field in class:TouchPointManager
38 return instance;
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmStateManager.java69 * is in charge of changing the alarm instance state to a LOW_NOTIFICATION_STATE.
87 * also increments the alarm time in the instance to reflect the new snooze time.
96 * it. At this point the alarm instance is dead and we check the parent alarm to see if we need
102 * This is really a transient state that will properly delete the alarm instance. Use this state,
103 * whenever you want to get rid of the alarm instance. This state will also check the alarm
104 * parent to see if it should disable or schedule a new alarm instance.
107 // Intent action to trigger an instance state change.
110 // Intent action to show the alarm and dismiss the instance
178 * Returns an alarm instance of an alarm that's going to fire next.
181 * @return an alarm instance tha
262 updateParentAlarm(Context context, AlarmInstance instance) argument
305 createStateChangeIntent(Context context, String tag, AlarmInstance instance, Integer state) argument
331 scheduleInstanceStateChange(Context ctx, Calendar time, AlarmInstance instance, int newState) argument
342 cancelScheduledInstanceStateChange(Context ctx, AlarmInstance instance) argument
355 setSilentState(Context context, AlarmInstance instance) argument
377 setLowNotificationState(Context context, AlarmInstance instance) argument
399 setHideNotificationState(Context context, AlarmInstance instance) argument
421 setHighNotificationState(Context context, AlarmInstance instance) argument
443 setFiredState(Context context, AlarmInstance instance) argument
477 setSnoozeState(final Context context, AlarmInstance instance, boolean showToast) argument
526 setMissedState(Context context, AlarmInstance instance) argument
557 setPreDismissState(Context context, AlarmInstance instance) argument
581 setDismissState(Context context, AlarmInstance instance) argument
595 deleteInstanceAndUpdateParent(Context context, AlarmInstance instance) argument
620 unregisterInstance(Context context, AlarmInstance instance) argument
653 registerInstance(Context context, AlarmInstance instance, boolean updateNextAlarm) argument
843 setAlarmState(Context context, AlarmInstance instance, int state) argument
989 scheduleInstanceStateChange(Context context, Calendar time, AlarmInstance instance, int newState) argument
992 cancelScheduledInstanceStateChange(Context context, AlarmInstance instance) argument
1000 scheduleInstanceStateChange(Context context, Calendar time, AlarmInstance instance, int newState) argument
1022 cancelScheduledInstanceStateChange(Context context, AlarmInstance instance) argument
[all...]
H A DAlarmNotifications.java86 AlarmInstance instance) {
87 LogUtils.v("Displaying low priority notification for alarm instance: " + instance.mId);
93 .setContentText(AlarmUtils.getAlarmText(context, instance, true /* includeLabel */))
97 .setSortKey(createSortKey(instance))
109 AlarmStateManager.ALARM_DELETE_TAG, instance,
111 final int id = instance.hashCode();
117 AlarmStateManager.ALARM_DISMISS_TAG, instance, AlarmInstance.PREDISMISSED_STATE);
123 // Setup content action if instance is owned by alarm
124 Intent viewAlarmIntent = createViewAlarmIntent(context, instance);
85 showLowPriorityNotification(Context context, AlarmInstance instance) argument
134 showHighPriorityNotification(Context context, AlarmInstance instance) argument
296 showSnoozeNotification(Context context, AlarmInstance instance) argument
338 showMissedNotification(Context context, AlarmInstance instance) argument
383 showAlarmNotification(Service service, AlarmInstance instance) argument
441 clearNotification(Context context, AlarmInstance instance) argument
453 updateNotification(Context context, AlarmInstance instance) argument
472 createViewAlarmIntent(Context context, AlarmInstance instance) argument
487 createSortKey(AlarmInstance instance) argument
[all...]
H A DAlarmKlaxon.java52 public static void start(Context context, AlarmInstance instance) { argument
57 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) {
59 getAsyncRingtonePlayer(context).play(instance.mRingtone, crescendoDuration);
62 if (instance.mVibrate) {
H A DAlarmUpdateHandler.java76 // Create and add instance to db
85 protected void onPostExecute(AlarmInstance instance) {
86 if (instance != null) {
88 mSnackbarAnchor, instance.getAlarmTime().getTimeInMillis());
114 // just update the instance in the database and update notifications.
117 for (AlarmInstance instance : instanceList) {
118 // Make a copy of the existing instance
119 final AlarmInstance newInstance = new AlarmInstance(instance);
120 // Copy over minor change data to the instance; we don't know
125 // Since we copied the mId of the old instance an
185 showPredismissToast(AlarmInstance instance) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DVeiledAddressMatcher.java118 final VeiledAddressMatcher instance = new VeiledAddressMatcher();
119 instance.mVeiledMatchingEnabled = resources.getBoolean(VEILED_MATCHING_ENABLED);
120 if (instance.mVeiledMatchingEnabled) {
121 instance.loadPattern(resources.getString(VEILED_RESOURCE));
123 return instance;
/packages/apps/Dialer/java/com/android/dialer/constants/
H A DConstants.java32 private static Constants instance; field in class:Constants
41 instance = (Constants) clazz.getConstructor().newInstance();
44 "Unable to create an instance of ConstantsImpl. To fix this error include one of the "
48 return instance;
/packages/apps/Camera2/src/com/android/camera/debug/
H A DLog.java70 public static void d(Tag tag, Object instance, String msg) { argument
72 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg));
76 public static void d(Tag tag, Object instance, String msg, String tags) { argument
78 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg, tags));
94 public static void e(Tag tag, Object instance, String msg) { argument
96 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg));
100 public static void e(Tag tag, Object instance, String msg, String tags) { argument
102 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg, tags));
118 public static void i(Tag tag, Object instance, String msg) { argument
120 android.util.Log.i(tag.toString(), LogUtil.addTags(instance, ms
124 i(Tag tag, Object instance, String msg, String tags) argument
142 v(Tag tag, Object instance, String msg) argument
148 v(Tag tag, Object instance, String msg, String tags) argument
166 w(Tag tag, Object instance, String msg) argument
172 w(Tag tag, Object instance, String msg, String tags) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DCameraApp.java60 Profile guard = Profilers.instance().guard("CameraApp onCreate()");
64 FirstRunDetector.instance().initializeTimeOfFirstRun(context);
67 UsageStatistics.instance().initialize(this);
79 NotificationManager manager = AndroidServices.instance().provideNotificationManager();
/packages/apps/Camera2/src/com/android/camera/util/
H A DAndroidContext.java41 * Return a previously initialized instance, throw if it has not been
44 public static AndroidContext instance() { method in class:AndroidContext
/packages/apps/Camera2/src_pd/com/android/camera/stats/
H A DSessionStatsCollector.java8 public static SessionStatsCollector instance() { method in class:SessionStatsCollector
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
H A DSimulatorConnectionService.java42 private static SimulatorConnectionService instance; field in class:SimulatorConnectionService
46 return instance;
60 instance = this;
67 instance = null;
97 SimulatorComponent.get(instance)
139 SimulatorComponent.get(instance)

Completed in 1464 milliseconds

123456