Home
last modified time | relevance | path

Searched refs:ApiHelper (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/camera/
DVideoModule.java61 import com.android.gallery3d.common.ApiHelper;
347 if (!ApiHelper.HAS_SURFACE_TEXTURE_RECORDING) { // API level < 16 in initializeSurfaceView()
497 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
499 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getLowVideoQuality()
580 if (!mPaused && ApiHelper.HAS_SURFACE_TEXTURE_RECORDING) { in onStopVideoRecording()
675 if (ApiHelper.HAS_TIME_LAPSE_RECORDING) { in readVideoPreferences()
695 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
698 if (ApiHelper.HAS_GET_SUPPORTED_VIDEO_SIZE) { in getDesiredPreviewSize()
804 if (ApiHelper.HAS_SURFACE_TEXTURE) { in setDisplayOrientation()
846 if (ApiHelper.HAS_SURFACE_TEXTURE) { in startPreview()
[all …]
DPhotoModule.java63 import com.android.gallery3d.common.ApiHelper;
223 ApiHelper.HAS_AUTO_FOCUS_MOVE_CALLBACK
460 if (!ApiHelper.HAS_SURFACE_TEXTURE) { in onPreviewStarted()
570 if (ApiHelper.HAS_SURFACE_TEXTURE) { in switchCamera()
700 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
703 if (!ApiHelper.HAS_FACE_DETECTION) return; in startFaceDetection()
715 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
718 if (!ApiHelper.HAS_FACE_DETECTION) return; in stopFaceDetection()
814 if (ApiHelper.HAS_SURFACE_TEXTURE && !mIsImageCaptureIntent in onPictureTaken()
824 if (ApiHelper.CAN_START_PREVIEW_IN_JPEG_CALLBACK) { in onPictureTaken()
[all …]
DCameraManager.java39 import com.android.gallery3d.common.ApiHelper;
105 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
110 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
115 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
120 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
129 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN_MR1)
272 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
332 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
373 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
416 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
DCameraSettings.java34 import com.android.gallery3d.common.ApiHelper;
96 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
99 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getDefaultVideoQuality()
217 if (ApiHelper.HAS_TIME_LAPSE_RECORDING) { in initPreference()
224 if (ApiHelper.HAS_EFFECTS_RECORDING) { in initPreference()
231 if (cameraHdr != null && (!ApiHelper.HAS_CAMERA_HDR in initPreference()
538 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getSupportedVideoQuality()
555 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
DUtil.java56 import com.android.gallery3d.common.ApiHelper;
112 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
114 if (ApiHelper.HAS_CAMERA_METERING_AREA) { in isMeteringAreaSupported()
120 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
122 if (ApiHelper.HAS_CAMERA_FOCUS_AREA) { in isFocusAreaSupported()
299 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
302 if (ApiHelper.HAS_GET_CAMERA_DISABLED) { in throwIfCameraDisabled()
430 if (Build.VERSION.SDK_INT >= ApiHelper.VERSION_CODES.HONEYCOMB_MR2) { in getDefaultDisplaySize()
DSoundClips.java27 import com.android.gallery3d.common.ApiHelper;
44 if (ApiHelper.HAS_MEDIA_ACTION_SOUND) { in getPlayer()
52 return ApiHelper.getIntFieldIfExists(AudioManager.class, in getAudioTypeForSoundPool()
60 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
DActivityBase.java47 import com.android.gallery3d.common.ApiHelper;
182 if (ApiHelper.HAS_ACTION_BAR) { in onCreate()
486 if (ApiHelper.HAS_SURFACE_TEXTURE) { in onLayoutChange()
560 if (ApiHelper.HAS_SURFACE_TEXTURE) { in attachScreenNail()
620 return !ApiHelper.HAS_SURFACE_TEXTURE; in isStaticCamera()
DMosaicPreviewRenderer.java28 import com.android.gallery3d.common.ApiHelper;
37 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB) // uses SurfaceTexture
174 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
176 if (ApiHelper.HAS_RELEASE_SURFACE_TEXTURE) { in releaseSurfaceTexture()
/packages/apps/Camera/src/com/android/camera/
DVideoModule.java78 import com.android.gallery3d.common.ApiHelper;
362 if (!ApiHelper.HAS_SURFACE_TEXTURE) { // API level < 11 in initializeSurfaceView()
368 } else if (!ApiHelper.HAS_SURFACE_TEXTURE_RECORDING) { // API level < 16 in initializeSurfaceView()
541 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
543 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getLowVideoQuality()
648 if (!mPaused && ApiHelper.HAS_SURFACE_TEXTURE_RECORDING) { in onStopVideoRecording()
735 if (ApiHelper.HAS_TIME_LAPSE_RECORDING) { in readVideoPreferences()
755 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
758 if (ApiHelper.HAS_GET_SUPPORTED_VIDEO_SIZE) { in getDesiredPreviewSize()
863 if (ApiHelper.HAS_SURFACE_TEXTURE) { in setDisplayOrientation()
[all …]
DPhotoModule.java75 import com.android.gallery3d.common.ApiHelper;
264 ApiHelper.HAS_AUTO_FOCUS_MOVE_CALLBACK
428 if (!ApiHelper.HAS_SURFACE_TEXTURE) { in handleMessage()
748 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
751 if (!ApiHelper.HAS_FACE_DETECTION) return; in startFaceDetection()
772 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
775 if (!ApiHelper.HAS_FACE_DETECTION) return; in stopFaceDetection()
962 if (ApiHelper.HAS_SURFACE_TEXTURE && !mIsImageCaptureIntent in onPictureTaken()
969 if (ApiHelper.CAN_START_PREVIEW_IN_JPEG_CALLBACK) { in onPictureTaken()
1037 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
[all …]
DCameraManager.java40 import com.android.gallery3d.common.ApiHelper;
99 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
104 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
109 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
114 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
123 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN_MR1)
268 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
328 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
377 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
432 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
DCameraSettings.java33 import com.android.gallery3d.common.ApiHelper;
94 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
97 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getDefaultVideoQuality()
215 if (ApiHelper.HAS_TIME_LAPSE_RECORDING) { in initPreference()
222 if (ApiHelper.HAS_EFFECTS_RECORDING) { in initPreference()
229 if (cameraHdr != null && (!ApiHelper.HAS_CAMERA_HDR in initPreference()
532 if (ApiHelper.HAS_FINE_RESOLUTION_QUALITY_LEVELS) { in getSupportedVideoQuality()
549 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
DUtil.java55 import com.android.gallery3d.common.ApiHelper;
111 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
113 if (ApiHelper.HAS_CAMERA_METERING_AREA) { in isMeteringAreaSupported()
119 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
121 if (ApiHelper.HAS_CAMERA_FOCUS_AREA) { in isFocusAreaSupported()
298 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
301 if (ApiHelper.HAS_GET_CAMERA_DISABLED) { in throwIfCameraDisabled()
429 if (Build.VERSION.SDK_INT >= ApiHelper.VERSION_CODES.HONEYCOMB_MR2) { in getDefaultDisplaySize()
DSoundClips.java26 import com.android.gallery3d.common.ApiHelper;
43 if (ApiHelper.HAS_MEDIA_ACTION_SOUND) { in getPlayer()
54 @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
123 int audioType = ApiHelper.getIntFieldIfExists(AudioManager.class, in SoundPoolPlayer()
DActivityBase.java46 import com.android.gallery3d.common.ApiHelper;
181 if (ApiHelper.HAS_ACTION_BAR) { in onCreate()
485 if (ApiHelper.HAS_SURFACE_TEXTURE) { in onLayoutChange()
559 if (ApiHelper.HAS_SURFACE_TEXTURE) { in attachScreenNail()
619 return !ApiHelper.HAS_SURFACE_TEXTURE; in isStaticCamera()
DMosaicPreviewRenderer.java28 import com.android.gallery3d.common.ApiHelper;
37 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB) // uses SurfaceTexture
173 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
175 if (ApiHelper.HAS_RELEASE_SURFACE_TEXTURE) { in releaseSurfaceTexture()
/packages/apps/Gallery2/src/com/android/camera/ui/
DRotateLayout.java30 import com.android.gallery3d.common.ApiHelper;
51 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
55 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in onFinishInflate()
80 if (!ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in dispatchTouchEvent()
105 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in dispatchDraw()
131 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
151 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in onMeasure()
194 if (!ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES && mOrientation != 0) { in invalidateChildInParent()
DCameraSwitcher.java39 import com.android.gallery3d.common.ApiHelper;
101 if (!ApiHelper.HAS_OLD_PANORAMA) totaldrawid--; in initializeDrawables()
107 if (i == PANORAMA_MODULE_INDEX && !ApiHelper.HAS_OLD_PANORAMA) { in initializeDrawables()
311 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in popupAnimationSetup()
323 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in animateHidePopup()
352 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in animateShowPopup()
DSwitch.java46 import com.android.gallery3d.common.ApiHelper;
189 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
473 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
481 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
488 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
/packages/apps/Camera/src/com/android/camera/ui/
DRotateLayout.java30 import com.android.gallery3d.common.ApiHelper;
51 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
55 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in onFinishInflate()
80 if (!ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in dispatchTouchEvent()
105 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in dispatchDraw()
131 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
151 if (ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES) { in onMeasure()
194 if (!ApiHelper.HAS_VIEW_TRANSFORM_PROPERTIES && mOrientation != 0) { in invalidateChildInParent()
DSwitch.java46 import com.android.gallery3d.common.ApiHelper;
189 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
473 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
481 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
488 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
DCameraSwitcher.java36 import com.android.gallery3d.common.ApiHelper;
226 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in popupAnimationSetup()
238 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in animateHidePopup()
265 if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) { in animateShowPopup()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java34 import com.android.gallery3d.common.ApiHelper;
122 setEGLContextClientVersion(ApiHelper.HAS_GLES20_REQUIRED ? 2 : 1); in GLRootView()
123 if (ApiHelper.USE_888_PIXEL_FORMAT) { in GLRootView()
129 if (ApiHelper.USE_888_PIXEL_FORMAT) { in GLRootView()
192 if (ApiHelper.HAS_POST_ON_ANIMATION) { in requestRender()
293 mCanvas = ApiHelper.HAS_GLES20_REQUIRED ? new GLES20Canvas() : new GLES11Canvas(gl); in onSurfaceCreated()
579 if (!ApiHelper.HAS_SET_SYSTEM_UI_VISIBILITY) return; in setLightsOutMode()
584 if (ApiHelper.HAS_VIEW_SYSTEM_UI_FLAG_LAYOUT_STABLE) { in setLightsOutMode()
DSurfaceTextureScreenNail.java23 import com.android.gallery3d.common.ApiHelper;
27 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
56 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)
58 if (ApiHelper.HAS_SET_DEFALT_BUFFER_SIZE) { in setDefaultBufferSize()
63 @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
66 if (ApiHelper.HAS_RELEASE_SURFACE_TEXTURE) { in releaseSurfaceTexture()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java14 import com.android.gallery3d.common.ApiHelper;
90 if (ApiHelper.HAS_MEDIA_PROVIDER_FILES_TABLE) { in loadBucketEntries()
200 @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
206 if (ApiHelper.HAS_MEDIA_PROVIDER_FILES_TABLE) { in getBucketName()

1234