summaryrefslogtreecommitdiff
path: root/core/java/android/hardware/Camera.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-18/+21
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * DO NOT MERGE Force slowJpegMode on certain camera1 appsChengfei Tao2023-03-221-7/+17
| | | | | | | | | | | | | | | | | | | | Turn off the large JPEG stream on camera1 apps that experience high power consumption during video call Bug: 254350466 Test: Manual testing with Messenger app video call Change-Id: Ia5a96160f605f14d159412cd71f49791c1cfbd86
| * Per-app compat treatment for overrideToPortrait.Austin Borger2023-01-091-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | Camera framework consumers will have the option to opt in or out to the rotate and crop fix for foldables via a manifest property. This will allow apps which correctly handle the landscape sensor to obtain the full FOV of the camera. Test: Tested opt-out in Camera2Basic sample, opt-in in CTSVerifier. Bug: 263965273 Change-Id: I190963c4f8dfba29dab7570397c33f44cab702e3 Merged-in: I190963c4f8dfba29dab7570397c33f44cab702e3
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-4/+19
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * DO NOT MERGE CameraManager: Provide flag for overriding camera output to ↵Austin Borger2022-12-051-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | portrait. Apps commonly do not handle landscape orientation cameras correctly. In order to prevent stretching and rotation issues in these apps, this patch adds a flag to override the behavior of these landscape cameras to produce a portrait image instead by changing the SENSOR_ORIENTATION reported by CameraCharacteristics and applying a 90 degree rotate and crop. It also adds a CompatChanges entry which will track which apps require this treatment. Test: Ran on foldable device with several camera apps to verify behavior. Bug: 250678880 Change-Id: I92b6f227916b97828ab6a7f856eea5a1e427644d
* | camera: Allow extending aux list/excludelist via overlay resourcesLuK13372022-11-071-8/+17
| | | | | | | | | | | | | | | | | | | | Properties are limited and don't allow us to list as many apps as we wish. ** AICP Edits: de-lineage-fy Change-Id: I4432f627f1fa120b6ea41c252cd512beb129848c Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com>
* | Camera: Expose aux camera if packagename is nullwbs3062022-11-021-0/+2
| | | | | | | | | | | | | | * fixes ultra-wide and macro lens feature Signed-off-by: minaripenguin37 <alexfinhart@gmail.com> Change-Id: I47d40b08702c837f6285e29f8e668fe552cb7145
* | Camera: Don't crash when trying to disable shutter soundjhenrique092022-09-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 08-20 10:10:01.767 2210 2494 E FlashlightController: Couldn't initialize. 08-20 10:10:01.767 2210 2494 E FlashlightController: java.lang.RuntimeException: Camera is being used after Camera.release() was called 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.Camera._enableShutterSound(Native Method) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.Camera.updateAppOpsPlayAudio(Camera.java:1833) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.Camera.initAppOps(Camera.java:629) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.Camera.<init>(Camera.java:606) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.Camera.getEmptyParameters(Camera.java:2214) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics(LegacyMetadataMapper.java:151) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:274) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.statusbar.policy.FlashlightControllerImpl.getCameraId(FlashlightControllerImpl.java:146) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.statusbar.policy.FlashlightControllerImpl.tryInitCamera(FlashlightControllerImpl.java:72) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.statusbar.policy.FlashlightControllerImpl.addCallback(FlashlightControllerImpl.java:120) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.statusbar.policy.FlashlightControllerImpl.addCallback(FlashlightControllerImpl.java:40) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.qs.tiles.FlashlightTile.handleSetListening(FlashlightTile.java:59) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.qs.tileimpl.QSTileImpl.handleSetListeningInternal(QSTileImpl.java:340) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.qs.tileimpl.QSTileImpl.access$700(QSTileImpl.java:64) 08-20 10:10:01.767 2210 2494 E FlashlightController: at com.android.systemui.qs.tileimpl.QSTileImpl$H.handleMessage(QSTileImpl.java:475) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.os.Handler.dispatchMessage(Handler.java:106) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.os.Looper.loop(Looper.java:193) 08-20 10:10:01.767 2210 2494 E FlashlightController: at android.os.HandlerThread.run(HandlerThread.java:65) Change-Id: I544b62bc9fab1dd19e4aa1fe2cde7c3435ccada8 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Camera: Don't throw exceptions when value pairs have spaces in themRicardo Cerqueira2022-09-261-0/+1
| | | | | | | | | | | | | | "(1,2)" worked, "(1, 2)" crapped out. Fix it. Change-Id: I71262909280f88d930898a2bcf37d379add4fdea Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Fix Photosphere/Camera FCsJostein Kjønigsen2022-09-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Photosphere is setting a few parameters "blindly" while the API says it should check the device capabilities first. On TF101 (and probably other devices) the camera HAL doesn't handle FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException for these, which makes Photosphere FC the Camera app. => Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them. Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/ Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Allow sending vendor- or device-specific commands to the camera HAL.Danny Baumann2022-09-261-0/+14
| | | | | | | | | | Change-Id: I2aaa9e526b6f1a35d45e96b6d23e3db972d82733 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Camera: Replace packageblacklist with packageexcludelistArian2022-09-261-1/+1
| | | | | | | | | | | | | | | | * Replace vendor.camera.aux.packageblacklist with vendor.camera.aux.packageexcludelist as recommended by coding guidelines https://developers.google.com/style/word-list#blacklist. Change-Id: I9c1862528ecba06ac612d926757cbc3c313009fa Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | camera: Support exposing aux camera to appsSauhard Pande2022-09-261-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: Author: Sauhard Pande <sauhardp@codeaurora.org> Date: Thu Jul 21 18:23:21 2016 -0700 Camera: Expose Aux camera to apps present in the whitelist Issue: 3rd party apk cannot handle additional aux camera and may cause crash, Mono camera doesnt support all capabilities of HAL3 causing CTS issue. Fix: 1. Expose aux camera to apps present in the whitelist 2. ignore the availabe/unavailable status update for aux camera 3. returning exception for open request for bad cameraid Change-Id: I15910154c6df205e6d4e00bfad30a00c9e3d5bee CRs-Fixed: 1086937 --------------------------------------------------------------------------- Forward-ported to R and squashed with the following changes: Author: Rashed Abdel-Tawab <rashed@linux.com> Date: Sat Mar 24 13:20:52 2018 -0400 camera: Check if aux camera whitelist is set before restricting cameras Some devices have a fully featured 3rd camera and adding 20+ camera apps to the whitelist is impossible due to the string length limit on systemprops. Add a check to see if the prop is even set, and if not, check if the blacklist property is set and mark those apps to hide the 3rd camera from. If a package is not part of the blacklist, just restore the original behaviour and expose all the cameras to the app. Change-Id: I6c3b33c077e8710c73b5d0fa28e1b017d6c43a58 Author: Paul Keith <javelinanddart@gmail.com> Date: Fri Feb 8 08:42:33 2019 -0600 Camera: Simplify code for Aux/Mono white and black lists Change-Id: I20c5454385d4d830a9a4d61926807a7eb1407c95 Change-Id: I15910154c6df205e6d4e00bfad30a00c9e3d5bee Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Camera: Add feature extensionsSauhard Pande2022-09-261-0/+1480
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change includes below gerrits: # This is a combination of 7 commits. # The first commit's message is: Camera: Add support for QC camera features. Added APIs and keys for all QC features. This will enable application to get/set paramters. (cherrypicked from commit d0c5a0ee7e9af41320fed00ff324c6d0f22eb697) Change-Id: I68c23aaf7267645efeb4d4743b390a048292b7fd # This is the 2nd commit message: Camera: Adds support for meta data callbacks - This change adds a new type of callback that will be called when there are pending meta data notifications. Change-Id: I84f5cbafe4f023c7b0efa9ec8620756b0eaa428d # This is the 3rd commit message: Camera: Adds support for longshot configuration - The Camera API is extended with one additional call for longshot mode configuration. (cherrypicked from commit 867c4865b2a61a8e844e2784c41b7aafc392aec0 ) Change-Id: Idb91a21dc0d9fa9d22b4a6bbcc0b2eebfc2cb6db # This is the 4th commit message: Camera: Add support for manual 3A Add API for manual 3A (awb/af/aec). Change-Id: Ia5240207ce7a6628e8fdfef79f56db01add14aef # This is the 5th commit message: Camera: use single KEY for set/get manual 3A parameters. Instead of using different KEYs, we can share one same key, for set/get 3A parameters from APK. Change-Id: Ie3216ee4e1b8f62fcdd57a0be119d4b8dcdd81b3 # This is the 6th commit message: Framework: Adding support for Auto HDR Adding support for Auto HDR for camera CRs-fixed: 629556 Change-Id: Ie5e4718524d2ed799f1f9af1f76e89c01d743ac8 # This is the 7th commit message: Camera: Add support for video rotation Adding apis to support video rotation. CRs-Fixed: 672804 Change-Id: Ic67e82058824a6dc7cc803ef0efe61475350bafc Change-Id: Ideb191d666e7de8db132811f66a7796d87e75971 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-3/+3
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-3/+3
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-3/+3
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Add @Nullable annotation to the parameter of Object.equals() methods.Roman Kalukiewicz2020-10-151-2/+2
| | | | | | | | | | | | | | | | | | Those annotations could be inferred by some tools (like Kotlin), but the https://checkerframework.org/ doesn't check inherited annotations complaining about all equals() invocations that get nullable argument. The change was generated by running find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /' in the frameworks/base directory and by automatically adding and formatting required imports if needed. No manual edits. Bug: 170883422 Test: Annotation change only. Should have not impact. Exempt-From-Owner-Approval: Mechanical change not specific to any component. Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
* Camera: Remove all camera HALv1 codeEino-Ville Talvala2020-07-101-73/+11
| | | | | | | | | | | - Remove legacy wrapper implementing camera2 API on HALv1 - Move JNI utility code into SurfaceUtils - Remove openLegacy path, which allowed HALv1 behavior on HALv3 devices - Remove relevant tests Test: atest CtsCameraTestCases Bug: 136024295 Change-Id: I49ad89bee5c4fdc09e288597821163c81494476f
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-2/+8
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I0c336de56bc4a041dc97ff9b7927f62f0b44b457
* Camera: update camera audio restriction APIYin-Chia Yeh2019-09-091-2/+9
| | | | | | | | Add dedicated get API per API review feedback. Test: updated CTS tests Bug: 140524714 Change-Id: I83ac09da76cc0868c7e993abd6a8c846912b6199
* Camera: camera service implementation of camera audio restriction APIYin-Chia Yeh2019-08-301-0/+7
| | | | | | | | | | | Changed the binder call return value to the resulting audio restriction mode. Also added audio restriction API support for legacy shim path. Test: new CTS tests Bug: 135676184 Change-Id: I412e8f53705f2401995ff828bfdc9a8598dc305a
* Camera: Clarify camera1 API behavior for getNumberOfCamerasShuzhen Wang2019-04-041-1/+1
| | | | | | | | | Expose at most 1 camera ID per facing for all logical-physical camera ID groups. Test: Build and read docs Bug: 113705942 Change-Id: I86a06562eafd600d351d8db2582a613b3323404c
* Merge "Camera: add QCIF resolution exception" into pi-devYin-Chia Yeh2019-04-041-1/+34
|\ | | | | | | | | | | am: 5b09928b22 Change-Id: I20e60ef6d84c969b1651e449f5a076183d38a7c9
| * Camera: add QCIF resolution exceptionYin-Chia Yeh2019-04-011-1/+34
| | | | | | | | | | | | | | | | | | Also fix a typo. Test: checkbuild Bug: 120158047 Bug: 122461651 Change-Id: I61eab3f526e307b04a71c8382e9fa76aee7871e1
* | Move Camera.EventHandler constructor to greylistDavid Brazdil2019-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 122331906 Test: m appcompat Change-Id: I3abc8221706bd69668c90aa61b8ca5f137a88bb9
* | Move some members to the "Q blacklist".Mathew Inwood2018-10-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on some analysis, these fields/methods are likely false positives. Set maxTargetSdk=P so that any apps using them are required to migrate off them in future. See the bug for more details. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e (cherry picked from commit 8c854f86a477fbbee38092f449333e1425e5cd7e)
* | Stop invoke initAppOps in Camera default constructor.Daichi Hirono2018-09-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Camera default constructor does not create the underlying native camera object. Thus calling _enableShutterSound after the default constuctor causes application crash. Bug: 80498247 Test: Manually modify the code to return MODE_IGNORED for AppOpsService#checkAudioOperation() and to return false for CameraManager#supportsCamera2ApiLocked. Then start voice call in Hangouts. Change-Id: Id738c4d46a8e3625bc3b1142b11acac9cfb0b603 Merged-In: Id738c4d46a8e3625bc3b1142b11acac9cfb0b603 (cherry picked from commit cb63c640cdc8e95a76408a2e90048d9c0dee06de)
* | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-081-0/+16
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.hardware.usb android.hardware.soundtrigger android.hardware.radio android.hardware.location android.hardware.input android.hardware.hdmi android.hardware.fingerprint android.hardware.display android.hardware.cas.V1_0 android.hardware.camera2.utils android.hardware.camera2.params android.hardware.camera2.marshal.impl android.hardware.camera2.marshal android.hardware.camera2.legacy android.hardware.camera2.impl android.hardware.camera2.dispatch android.hardware.camera2 android.hardware This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I7bfe07144a4d581985aa9d4b525b7ca975a2127d Merged-In: I046df307d1065a9692e4e7259c59a93ee8f458ef
* Merge "Camera: add new detailed error callback" into pi-devTreeHugger Robot2018-05-311-2/+36
|\
| * Camera: add new detailed error callbackYin-Chia Yeh2018-05-311-2/+36
| | | | | | | | | | | | | | | | | | For the legacy shim layer to tell the difference between evction and disable error. Test: CTS CameraEvictionTest + IdleUidTest Bug: 77486868 Change-Id: I5b68f55460287634903c9b8b42188d9dec8744d5
* | Camera: Document getNumberOfCameras behavior for logical cameraShuzhen Wang2018-05-311-0/+6
|/ | | | | | | | | For camera1 API, framework only exposes one camera id for every logical/physical camera id group. Document this behavior accordingly. Test: Build Bug: 80075565 Change-Id: I32c2de84d27a603d485014255bf1fad5031aa08e
* Fix shutter sound cannot enable.jiabin2018-05-081-14/+29
| | | | | | Bug: 79307231 Test: run cts and take picture with/withour dnd mode. Change-Id: I9d4166d07b38ffae735aa63dad075bdb2def9a5a
* Add OP_PLAY_AUDIO to control shutter sound.jiabin2018-04-201-1/+100
| | | | | | | | | | The camera will play shutter sound through native layer instead of Java layer. That will cause shutter sound to bypass AppOps check. Add OP_PLAY_AUDIO checking to avoid shutter sound playing while DnD. Bug: 78136756 Test: Taking picture in Message with enable/disable DnD. Change-Id: Iba5e7ab19cf5565ba3f074d2aba194b60e18265f
* Camera: another update API for external cameraYin-Chia Yeh2018-02-271-2/+2
| | | | | Bug: 72261912 Change-Id: I710200238fe76c440951915ca8c81f4a9fbbe7ef
* Camera: update API for external cameraYin-Chia Yeh2018-02-141-4/+7
| | | | | Bug: 72261912 Change-Id: I27fa6f9afcac22c44b8705e17228e1894e2e578f
* Camera: Add more documentation about thrown exceptions.Eino-Ville Talvala2017-09-151-8/+58
| | | | | | | | | The deprecated camera API throws a lot of RuntimeExceptions, and many of the methods don't mention this. Test: Docs build and manual review Bug: 64725721 Change-Id: I1c6dc2f984d0be8b0d4b5394bb0d7473dfec7949
* Fix issue #37714224: API Review: ACTION_NEW_VIDEODianne Hackborn2017-04-271-3/+2
| | | | | | Test: none, docs only. Change-Id: Id6e3667884a5907c0877aabb3760fac88863ff7a
* Partially return NEW_PICTURE and NEW_VIDEO.Dianne Hackborn2017-03-101-7/+22
| | | | | | | | | They are again allowed to be dispatched, but now only to registered receivers. Test: manual, still need to write CTS Change-Id: Ib95293d818430129d168cfc0616eb90bef25e5c6
* Camera: Add bandaid for preview orientation on reverse-landscape camerasEino-Ville Talvala2016-03-251-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Camera sensors on Android may be either landscape or reverse-landscape oriented, but the vast majority of shipping devices only use landscape. This means that many camera-using apps (which are generally forcing themselves to landscape orientation) never call setDisplayOrientation, since its default value of 0 is correct for the majority of devices. However, there are some reverse-landscape devices, and for those, such apps get upside-down preview. This bandaid changes the default value of displayOrientation to be 180 on such devices, so that apps that never call setDisplayOrientation get correct preview. This bandaid has no effect on apps that do call setDisplayOrientation, so hopefully such apps are doing the math correctly. Also update documentation to indicate that setDisplayOrientation should be called, and to note the change in default orientation behavior in Android N. Change-Id: I1b2c957642fda8edead61bd07eda9d18c38d1fe6 Fixes: 27840948
* Fix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcastDianne Hackborn2016-02-221-0/+9
| | | | | | | | | Ignored! Removed! A non-broadcast! Any attempt to send these will be silently (except a log) ignored. Change-Id: Ia19357d4c90fdcd18e45f2b41c57e654ef94edb1
* Merge "Replace hard-coded errno values with OsConstants" am: cb299b858fEino-Ville Talvala2015-12-091-38/+29
|\ | | | | | | | | | | | | am: 6fa9cc1bd3 * commit '6fa9cc1bd3cdb0489452396f708d57e22f742bf7': Replace hard-coded errno values with OsConstants
| * Merge "Replace hard-coded errno values with OsConstants"Eino-Ville Talvala2015-12-091-38/+29
| |\ | | | | | | | | | | | | | | | | | | am: cb299b858f * commit 'cb299b858f4f073e2abd4ad45aa944dc0dfd0aa2': Replace hard-coded errno values with OsConstants
| | * Replace hard-coded errno values with OsConstantsLazar Trsic2015-12-041-38/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Errno values have been hard-coded inside java code. On the native side however, bionic's errno.h is used (through utils/Errors.h). Some of the numbers are architecture dependent (EOPNOTSUPP, ETIMEDOUT...). This causes Camera app to crash on MIPS devices. There is a check for expected errors, in CameraBinderDecorator.throwOnError, but the error (EOPNOTSUPP) is not recognized and an exception is thrown. Change-Id: I8bcac8f1ced50c76614f566a6e624967a18a25e1
* | | Fix @code escapesNeil Fuller2015-12-021-3/+3
|/ / | | | | | | | | | | | | | | | | The body of {@code} must not be HTML escaped. This is one of several changes that fix the source in conjunction with a doclava fix. Bug: 25757239 Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
* / Camera: Documentation updatesEino-Ville Talvala2015-11-111-2/+2
|/ | | | | | | | | | | | | | - Clarify hardware.camera feature being only for the back camera - Clarify what setting a CaptureRequest field to null does - Use preCorrectionActiveArray instead of activeArray in list of possible raw output sizes - Clarify length of GPS processing field for camera1 API Bug: 24540625 Bug: 23908116 Bug: 23051627 Bug: 17345901 Change-Id: Iaf11fdf626268cf30f66b3628153ec3ac770c4f4
* Add camera app op - frameworkSvetoslav2015-05-021-3/+2
| | | | Change-Id: I17736a8abe2c6775e990b88fb3eab963f47167d0
* camera: Add eviction errorcode to Camera1 API.Ruben Brunk2015-04-151-2/+6
| | | | | Bug: 19186859 Change-Id: Ie46150d130e769feb62935ebee8e32e96c0821fd
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-1/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* camera2: legacy: disable shutter sounds unconditionally via camera2 apiIgor Murashkin2014-08-191-0/+20
| | | | | Bug: 17109582 Change-Id: Ieb3fc61ff111d792cc657c018e278349c25472cf