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

12

/packages/apps/Camera/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/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/Contacts/src/com/android/contacts/editor/
H A DSelectAccountDialogFragment.java65 final SelectAccountDialogFragment instance = new SelectAccountDialogFragment();
66 instance.setArguments(args);
67 instance.setTargetFragment(targetFragment, 0);
68 instance.show(fragmentManager, null);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java194 Object instance = null;
197 instance = clazz.newInstance();
200 method.invoke(instance, filePath);
204 return (Bitmap) clazz.getMethod("captureFrame").invoke(instance);
206 byte[] data = (byte[]) clazz.getMethod("getEmbeddedPicture").invoke(instance);
211 return (Bitmap) clazz.getMethod("getFrameAtTime").invoke(instance);
229 if (instance != null) {
230 clazz.getMethod("release").invoke(instance);
H A DHttpClientFactory.java60 Object instance = newInstance.invoke(null, userAgent);
62 HttpClient client = (HttpClient) instance;
/packages/apps/Camera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java38 CameraHolder holder = CameraHolder.instance();
H A DCameraHolder.java38 * The class is used to hold an {@code android.hardware.Camera} instance.
43 * android.hardware.Camera} instance for a while, so if {@code open()} is
121 public static synchronized CameraHolder instance() { method in class:CameraHolder
210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java38 CameraHolder holder = CameraHolder.instance();
H A DCameraHolder.java33 * The class is used to hold an {@code android.hardware.Camera} instance.
38 * android.hardware.Camera} instance for a while, so if {@code open()} is
64 public static synchronized CameraHolder instance() { method in class:CameraHolder
199 // Keep the camera instance for 3 seconds.
H A DMenuHelper.java86 // Keep the camera instance for a while.
88 CameraHolder.instance().keep();
/packages/apps/Gallery/tests/src/com/android/camera/
H A DBitmapManagerUnitTests.java54 mBitmapManager = BitmapManager.instance();
65 BitmapManager manager = BitmapManager.instance();
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java88 private static synchronized void setA2dpService(A2dpService instance) { argument
89 if (instance != null && instance.isAvailable()) {
91 sAd2dpService = instance;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DNinePatchTexture.java145 NinePatchInstance instance = mInstanceCache.get(key);
147 if (instance == null) {
148 instance = new NinePatchInstance(this, w, h);
149 NinePatchInstance removed = mInstanceCache.put(key, instance);
155 return instance;
176 NinePatchInstance instance = mInstanceCache.valueAt(i);
177 instance.recycle(canvas);
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DBaseImage.java146 BitmapManager.instance().decodeFileDescriptor(
172 b = BitmapManager.instance().getThumbnail(mContentResolver, id,
H A DVideoObject.java112 return BitmapManager.instance().getThumbnail(mContentResolver,
H A DImage.java156 bitmap = BitmapManager.instance().getThumbnail(mContentResolver, mId,
H A DUriImage.java130 BitmapManager.instance().decodeFileDescriptor(
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DSmartPoster.java189 * Returns the first element of {@code elements} which is an instance
194 T instance = null;
196 instance = Iterables.get(filtered, 0);
198 return instance;
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetService.java290 private static synchronized void setHeadsetService(HeadsetService instance) { argument
291 if (instance != null && instance.isAvailable()) {
293 sHeadsetService = instance;
/packages/apps/Gallery/src/com/android/camera/
H A DImageLoader.java166 BitmapManager.instance().cancelThreadDecoding(t, mCr);
H A DImageGetter.java237 BitmapManager.instance().cancelThreadDecoding(mGetterThread, mCr);
281 BitmapManager.instance().allowThreadDecoding(mGetterThread);
H A DBitmapManager.java167 public static synchronized BitmapManager instance() { method in class:BitmapManager
/packages/apps/Email/src/com/android/email/
H A DSecurityPolicy.java70 * Get the security policy instance
91 * For testing only: Inject context into already-created instance
825 SecurityPolicy instance = SecurityPolicy.getInstance(context);
828 instance.onAdminEnabled(true);
831 instance.onAdminEnabled(false);
841 instance.onPasswordExpiring(instance.mContext);
/packages/apps/Email/src/com/android/email/activity/
H A DMessageViewFragment.java141 * Create a new instance with initialization parameters.
151 final MessageViewFragment instance = new MessageViewFragment();
154 instance.setArguments(args);
155 return instance;
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
H A DHidService.java124 private static synchronized void setHidService(HidService instance) { argument
125 if (instance != null && instance.isAvailable()) {
127 sHidService = instance;

Completed in 386 milliseconds

12