Searched defs:instance (Results 1 - 25 of 44) sorted by relevance

12

/packages/apps/Camera2/src_pd/com/android/camera/debug/
H A DLogHelper.java23 public static LogHelper instance() { method in class:LogHelper
/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/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
H A DAndroidServices.java53 new AndroidServices(AndroidContext.instance().get());
56 public static AndroidServices instance() { method in class:AndroidServices
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmUtils.java45 public static String getAlarmText(Context context, AlarmInstance instance, argument
47 String alarmTimeStr = getFormattedTime(context, instance.getAlarmTime());
48 return (instance.mLabel.isEmpty() || !includeLabel)
50 : alarmTimeStr + " - " + instance.mLabel;
H A DHandleApiCalls.java380 private void setupInstance(AlarmInstance instance, boolean skipUi) { argument
381 instance = AlarmInstance.addInstance(this.getContentResolver(), instance);
382 AlarmStateManager.registerInstance(this, instance, true);
383 AlarmUtils.popAlarmSetToast(this, instance.getAlarmTime().getTimeInMillis());
385 Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId);
387 showAlarm.putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, instance.mAlarmId);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmKlaxon.java51 public static void start(Context context, AlarmInstance instance) { argument
56 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) {
57 getAsyncRingtonePlayer(context).play(instance.mRingtone);
60 if (instance.mVibrate) {
H A DAlarmNotifications.java37 public static void showLowPriorityNotification(Context context, AlarmInstance instance) { argument
38 LogUtils.v("Displaying low priority notification for alarm instance: " + instance.mId);
43 .setContentText(AlarmUtils.getAlarmText(context, instance,
54 AlarmStateManager.ALARM_DELETE_TAG, instance,
56 notification.setDeleteIntent(PendingIntent.getService(context, instance.hashCode(),
61 AlarmStateManager.ALARM_DISMISS_TAG, instance, AlarmInstance.PREDISMISSED_STATE);
64 PendingIntent.getService(context, instance.hashCode(),
67 // Setup content action if instance is owned by alarm
68 Intent viewAlarmIntent = createViewAlarmIntent(context, instance);
76 showHighPriorityNotification(Context context, AlarmInstance instance) argument
110 showSnoozeNotification(Context context, AlarmInstance instance) argument
142 showMissedNotification(Context context, AlarmInstance instance) argument
177 showAlarmNotification(Service service, AlarmInstance instance) argument
234 clearNotification(Context context, AlarmInstance instance) argument
243 updateNotification(Context context, AlarmInstance instance) argument
262 createViewAlarmIntent(Context context, AlarmInstance instance) argument
[all...]
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());
115 // just update the instance in the database and update notifications.
118 for (AlarmInstance instance : instanceList) {
119 // Make a copy of the existing instance
120 final AlarmInstance newInstance = new AlarmInstance(instance);
121 // Copy over minor change data to the instance; we don't know
126 // Since we copied the mId of the old instance an
187 showPredismissToast(AlarmInstance instance) argument
[all...]
H A DAlarmService.java88 * or using a different instance.
91 * @param instance you are trying to stop
93 public static void stopAlarm(Context context, AlarmInstance instance) { argument
94 final Intent intent = AlarmInstance.createIntent(context, AlarmService.class, instance.mId)
119 private void startAlarm(AlarmInstance instance) { argument
120 LogUtils.v("AlarmService.start with instance: " + instance.mId);
128 mCurrentAlarm = instance;
143 LogUtils.v("AlarmService.stop with instance: %s", instanceId);
220 final AlarmInstance instance
[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/Camera2/src/com/android/camera/app/
H A DFirstRunDetector.java34 Profilers.instance().guard());
37 public static FirstRunDetector instance() { method in class:FirstRunDetector
H A DCameraServicesImpl.java46 AndroidContext.instance().get());
50 * @return a single instance of of the global camera services.
52 public static CameraServicesImpl instance() { method in class:CameraServicesImpl
/packages/apps/Camera2/src/com/android/camera/device/
H A DActiveCameraDeviceTracker.java35 * Singleton instance.
41 public static ActiveCameraDeviceTracker instance() { method in class:ActiveCameraDeviceTracker
H A DMultiCameraDeviceLifecycle.java69 ActiveCameraDeviceTracker.instance(),
73 public static MultiCameraDeviceLifecycle instance() { method in class:MultiCameraDeviceLifecycle
271 // If there is no currently open device, this instance is already in a
/packages/apps/Camera2/src_pd/com/android/camera/stats/
H A DSessionStatsCollector.java8 public static SessionStatsCollector instance() { method in class:SessionStatsCollector
/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...]
H A DLoggers.java33 return NoOpLoggerFactory.instance();
41 return TagLoggerFactory.instance();
64 public static NoOpLoggerFactory instance() { method in class:Loggers.NoOpLoggerFactory
89 public static TagLoggerFactory instance() { method in class:Loggers.TagLoggerFactory
/packages/apps/Camera2/src/com/android/camera/one/v1/
H A DLegacyOneCameraManagerImpl.java50 public static Optional<LegacyOneCameraManagerImpl> instance() { method in class:LegacyOneCameraManagerImpl
/packages/apps/Camera2/src/com/android/camera/processing/
H A DProcessingServiceManager.java41 AndroidContext.instance().get());
44 public static ProcessingServiceManager instance() { method in class:ProcessingServiceManager
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DCursorAnchorInfoCompatWrapper.java55 public static CursorAnchorInfoCompatWrapper wrap(@Nullable final CursorAnchorInfo instance) { argument
59 if (instance == null) {
62 return new RealWrapper(instance);
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DServiceDeclaration.java35 int instance = 0; field in class:ServiceDeclaration.Entry
42 Entry(UUID uuid, int serviceType, int instance) { argument
45 this.instance = instance;
49 Entry(UUID uuid, int serviceType, int instance, boolean advertisePreferred) { argument
52 this.instance = instance;
57 Entry(UUID uuid, int properties, int permissions, int instance) { argument
60 this.instance = instance;
77 addService(UUID uuid, int serviceType, int instance, int minHandles, boolean advertisePreferred) argument
89 addIncludedService(UUID uuid, int serviceType, int instance) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPbapClientService.java237 private static synchronized void setPbapClientService(PbapClientService instance) { argument
238 if (instance != null && instance.isAvailable()) {
242 sPbapClientService = instance;
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
H A DCompatUtils.java235 * @param instance The instance of the class to invoke the method on.
239 * @return The result of the invocation or {@code null} if instance or methodName are empty, or
243 public static Object invokeMethod(@Nullable Object instance, @Nullable String methodName, argument
245 if (instance == null || TextUtils.isEmpty(methodName)) {
249 String className = instance.getClass().getName();
252 .invoke(instance, parameters);
/packages/apps/Gallery/src/com/android/camera/
H A DBitmapManager.java167 public static synchronized BitmapManager instance() { method in class:BitmapManager

Completed in 634 milliseconds

12