Commit Graph

2365 Commits

Author SHA1 Message Date
Shuzhen Wang
842961310c Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev am: 5f7cdba8ab am: df255a4a6b
am: 152acb5162

Change-Id: I744ced5fe3d6ad25c4aaf8deb438286ba5803480
2018-01-31 22:07:48 +00:00
Shuzhen Wang
152acb5162 Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev am: 5f7cdba8ab
am: df255a4a6b

Change-Id: I273a04bfcab3b26da4bc745445d144db1a0c9419
2018-01-31 21:49:57 +00:00
Shuzhen Wang
df255a4a6b Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev
am: 5f7cdba8ab

Change-Id: Ic55969e029228542f79e870cb7b5c68602b9a084
2018-01-31 21:28:00 +00:00
Jon Dormody
0762440a7a Merge "Docs: Added a link to the Motion Sensor docs for information on gravity values and calculating alpha. Test: make ds-docs Bug: 6442659" into oc-mr1-dev
am: 04d261f309

Change-Id: I15d0773c820591f153c67382b8826131eb88f98a
2018-01-29 19:34:59 +00:00
Jonathan Dormody
69151702b4 Docs: Added a link to the Motion Sensor docs for information on gravity
values and calculating alpha.
Test: make ds-docs
Bug: 6442659

Change-Id: Ifbb58526d01894c4c7570596348a8bd3e5c9eb4f
2018-01-26 15:21:23 -07:00
Yin-Chia Yeh
75774be569 Merge "Camera: remove NOT_PRESENT cameras" am: 174df238ac
am: 0e32a62cd4

Change-Id: I5b2d1d756daf1fabd8d42b9161de6a63d8989302
2018-01-23 02:35:28 +00:00
Yin-Chia Yeh
0e32a62cd4 Merge "Camera: remove NOT_PRESENT cameras"
am: 174df238ac

Change-Id: I2c0dd5ccd8c8a165b568563051ad42dba6082792
2018-01-23 02:12:57 +00:00
Yin-Chia Yeh
0c961165c2 Camera: remove NOT_PRESENT cameras
So hot plug cameras won't stay forever in
device status map.

Change-Id: I0290ff2eccb3d48a0f72c48f32a97909d20623ad
2018-01-20 00:55:45 +00:00
Jerry Zhang
7ca5d3a334 DO NOT MERGE: Add setScreenUnlockedFunctions method to UsbManager
Cherry-pick from 30b9adfad1

The screen unlocked functions save effort on setting
the usb config during each connection. These
functions persist between connections and between
boots. When the screen is unlocked and these
functions are set, the current functions will
be automatically set to the screen unlocked functions.

Also added svc command for this so it can be
used and tested while the UI is worked on.

Bug: 62876645
Test: svc usb setScreenUnlockedFunctions mtp
Test: Test functions with locking, unlocking, and
disconnecting, with no lockscreen, swipe, and pattern

Change-Id: Ia05e095917166d25398c4d310b02971e3a1bb12a
2018-01-12 15:35:43 +00:00
Shuzhen Wang
4304a02ac9 OutputConfiguration: Fix missing mIsShared in parcel read
Test: Camera CTS
Bug: 69683251
Merged-In: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13
Change-Id: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13
2017-12-19 21:23:45 -08:00
Andrew Solovay
152be97c2e Merge "docs: Clarify wording on two Javadoc entries" into oc-mr1-dev
am: b1748f87b1

Change-Id: I2336a38fb00f2c53406718e4e3a47f989ed1c094
2017-10-30 18:15:21 +00:00
Andrew Solovay
6534291811 docs: Clarify wording on two Javadoc entries
Per feedback from dmail@, rephrased to clarify that the intent is
fired at the time when a USB device/accessory is attached, not a
general "a USB device happens to be attached now" notification.

Staged to:

http://go/dac-stage/reference/android/hardware/usb/UsbManager.html

Bug: 36672976
Test: make ds-docs
Change-Id: I9f1c202d0a6a6a5b25cf775e2b11119a26625bf1
2017-10-27 18:55:21 -07:00
Andrew Solovay
cf973cdd89 Merge "docs: Correct labeling for two USB events" into oc-mr1-dev
am: b13dc50d12

Change-Id: Ia5b3c5dcb1b2e72f275f12d05fb390699c6831ba
2017-10-25 00:08:09 +00:00
Andrew Solovay
65fc7f57ac docs: Correct labeling for two USB events
Per bug, these were mislabeled as broadcast actions, when they're
actually activity intents. This has consequences post-O, since
broadcast actions are now subject to limitations.

Doc is staged to:

http://go/dac-stage/reference/android/hardware/usb/UsbManager.html

Bug: 36672976
Test: make ds-docs
Change-Id: I2b515b1ac152de389f952af21166ed2ba7843044
2017-10-24 11:20:38 -07:00
rongliu
d6230d3d2a Merge "Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as recommended." into oc-mr1-dev
am: bf070a35cd

Change-Id: I88f24ed82459b4cbc03c92a96774636a47509715
2017-10-06 23:42:27 +00:00
rongliu
3e9f972fde Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
as recommended.

Change-Id: I3778eed6f91e3ebf70683f40389c605648444b99
Bug: 67420451
Test: Only add comment.
2017-10-06 11:20:51 -07:00
rongliu
25b1093844 Merge "Add a flag to virtual display to indicates that content on this display need to be destroyed once the display is removed. Then apply this flag to VR virtual display." into oc-mr1-dev
am: 27378c64c7

Change-Id: I45b685d99da325c627bf3f01b9038ddf81c781a1
2017-10-06 14:57:36 +00:00
rongliu
1e90fc38db Add a flag to virtual display to indicates that content on this
display need to be destroyed once the display is removed.
Then apply this flag to VR virtual display.

Change-Id: Icb5aa1280b6ebac5941afda1cc1b94b258ce44f4
Bug: 67420451
Test: Manually. "adb shell am stack list" does not show contents
from virtual display anymore after it's released.
2017-10-04 17:50:23 -07:00
Peng Xu
b855edc41f Merge changes from topic "equalizer_1" am: 1ba697e29b am: 46f2249f46
am: 01ad27a0eb

Change-Id: Ie717da6b0e336701bdacc2949877bc0c1d71cb58
2017-09-26 12:38:01 +00:00
Peng Xu
46f2249f46 Merge changes from topic "equalizer_1"
am: 1ba697e29b

Change-Id: I0b5dabe42c0ab59fab63ea653392dd4d99b7d967
2017-09-26 11:07:28 +00:00
Peng Xu
62f2c87ee3 Fixing code formatting to comform to checkstyle
Fix following types of issue
  * over 100 char/line
  * missing space
  * trailing spaces
  * array bracket position
  * variable naming convention (some cases)
  * indentation
  * long expression wrapping operator position
  * missing curly brace for one line scope
  * function modifier order

Things not changed in this CL:
  * Redundant public modifiers.
  * A few local variable names.
  * Suggested @deprecate but function is actually @removed.

Test: m and m docs
Change-Id: I5c22648888487edaa5954026a166cfd810a8a912
2017-09-22 16:58:14 -07:00
TreeHugger Robot
a120e6b604 Merge "Camera: Add more documentation about thrown exceptions." into oc-mr1-dev 2017-09-21 19:50:33 +00:00
Peng Xu
9ee042efa8 Update Java doc of SensorManager.createDirectChannel
Java doc was left out when addressing API reviewer comments.
This CL fix the discrepancy between the actual logic and java doc.

Bug: 36550285
Test: compiles
Change-Id: I6406892ecdcc5d02f11966fa3fb0b81ed8d3b285
Merged-In: I6406892ecdcc5d02f11966fa3fb0b81ed8d3b285
2017-09-20 17:03:27 -07:00
Alexey Polyudov
29ad6b3960 sensors: pass sensor handle along with injected event
Change-Id: I5e8eacfa940c082a14a9876f455c55b84b975086
Merged-In: I5e8eacfa940c082a14a9876f455c55b84b975086
2017-09-20 11:13:51 -07:00
TreeHugger Robot
0853fe8a53 Merge "Adds handle to NanoAppInstanceInfo Parcel" into oc-mr1-dev 2017-09-19 20:32:56 +00:00
Arthur Ishiguro
9acb5402d0 Adds handle to NanoAppInstanceInfo Parcel
- Since mHandle (UID) was not recorded in writeToParcel, it always
returned 0 as the UID. This resulted in error messages claiming
mismatches between the reported and actual UID of nanoapps when called
from an external process.
- Also fixes the Parcel constructor to actually read the mContexthubId
field.

Bug: 37785458
Test: Compile and load, verify error message doesn't appear
Change-Id: I2ff75f510aae549c741786f5746862256ea5a877
2017-09-19 10:52:12 -07:00
Eino-Ville Talvala
ace890aaae DngCreator: Don't use default locale for writing date/time into DNG
Explictly use Locale.US since EXIF/TIFF date/time fields require it.

Test: Switch to Arabic locale, verify no crash and resulting DNGs have valid metadata,
    plus CTS DngCreatorTest passes.
Bug: 65748590

Change-Id: I729ee6d849f7a39e5d396cfd8dd5d44325381822
2017-09-15 15:15:51 -07:00
Eino-Ville Talvala
06a771813b Camera: Add more documentation about thrown exceptions.
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
2017-09-15 12:47:27 -07:00
Yin-Chia Yeh
8cd12e9b7c Camera: fix race in onRepeatingRequestError callback
Test: CTS
Bug: 64180296
Change-Id: I72b76695d580d2cfddb02a6da9d7ab04cdcfb98a
2017-09-08 11:30:27 -07:00
TreeHugger Robot
fb8e9b9096 Merge "Add a constant to allow system-provided fingerprint dialogs" into oc-mr1-dev 2017-08-30 17:47:46 +00:00
Michael Wright
eedcbf1504 Add new system API for stable display size
Fixes: 34388294
Test: manual
Change-Id: Ie380230bbd82370f507161b4cdb6f0d100b09f11
2017-08-25 20:56:00 +00:00
Jim Miller
a8bc97cd70 Add a constant to allow system-provided fingerprint dialogs
This adds FINGERPRINT_ERROR_USER_CANCELED to the list of possible errors
returned by FingerprintManager.authenticate().

Fixes b/64540509

Test: documentation builds

Change-Id: I66b46d385ab10eb0bc8e982c06e7a60570a79165
2017-08-23 18:21:21 -07:00
Andrii Kulian
732a90a794 Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD
Applied review comments but keeping the flag hidden for now.

Bug: 36555156
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testExternalDisplayActivityTurnPrimaryOff
Test: #testLaunchExternalDisplayActivityWhilePrimaryOff
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I1aa1289424d0d778bc0668c9ec69bc56f47891e3
2017-08-23 15:42:16 -07:00
Baligh Uddin
230c78cec5 DO NOT MERGE ANYWHERE Revert "Merge "Remove gender-specific pronouns from documentation" into oc-dev"
Bug: 64864568

This reverts commit fd35d7c0a2, reversing
changes made to 07a21754f4.
2017-08-19 15:49:05 -07:00
Tyler Freeman
fd35d7c0a2 Merge "Remove gender-specific pronouns from documentation" into oc-dev 2017-08-19 00:11:01 +00:00
TreeHugger Robot
4dde010145 Merge "Camera2: Legacy: Add onRequestQueueEmpty callback" into oc-mr1-dev 2017-08-11 22:47:53 +00:00
TreeHugger Robot
e22ecbdd61 Merge "Fix a bug that SurfaceView loses transformation" into oc-mr1-dev 2017-08-11 21:49:22 +00:00
Sheng-Hao Tsao
bb39c858c7 Fix a bug that SurfaceView loses transformation
SurfaceView created for on-screen preview sometimes loses
transformation information in the Camera2 API with HALv1
environment, and therefore produced wrongly transformed frames.

It's because in RequestThreadManager.configureOutputs(), the
transformation set by LegacyCameraDevice.setSurfaceOrientation()
is cleared at mGLThreadManager.setConfigurationAndWait().

The bug is fixed by setting transformation information again
after mGLThreadManager.setConfigurationAndWait().

BUG=63313861
TEST=Check on minnie with GCA and CameraIQTesting app. Preview always
displays correct transformation in Camera2<=>HALv1 environment.

Change-Id: Ic395047a120a21b3968dedb4314bdbe519c932e6
2017-08-11 16:54:20 +00:00
Shuzhen Wang
234ba3ef75 Camera2: Legacy: Add onRequestQueueEmpty callback
onRequestQueueEmpty callback needs to be supported for legacy HAL1
devices.

Test: Camera CTS
Bug: 64483624
Change-Id: I268a1fe7577788c4e4e13dfecd7bb7abe0d82e6c
2017-08-11 09:32:20 -07:00
Yin-Chia Yeh
daf20731ca Camera: fix legacy device CTS failure
Bug: 64259581
Test: emulator CTS failure is fixed
Change-Id: I9988ffb7877c3f5d62c82ab3c7b8744720824fba
2017-08-10 22:44:50 +00:00
Kevin Chyn
76b71c0580 Update FINGERPRINT_ERROR_LOCKOUT documentation
Fixes: 64330785

Test: make -j56
Change-Id: I40f0e71b9fd7dcdd12340bc03bb077e56813f5b7
2017-08-08 12:00:08 -07:00
Tomasz Wasilczyk
d2b5cfbdaa Change VENDOR program types to range.
Bug: b/64331420
Test: instrumentation
Change-Id: If5c56f09e2b9e272a40f0ca074a590ca6ec3a703
2017-08-07 10:20:24 -07:00
TreeHugger Robot
b79eb54d36 Merge "Fix broken javadocs." into oc-mr1-dev 2017-08-06 16:28:58 +00:00
Jeff Sharkey
67f9d5070a Fix broken javadocs.
Bug: 64337634
Test: make -j32 doc-comment-check-docs
Change-Id: I20fdd3dcddef09111d35946c41c596c7689effa6
2017-08-06 07:37:08 -06:00
Tomasz Wasilczyk
162d14a1ea Pass ProgramInfo over currentProgramInfoChanged and drop afSwitch_1_1.
Bug: b/64229617
Test: instrumentation
Change-Id: Ib4b20a6ebdd05a51f1a30447ccc3c2357df2a35d
2017-08-04 15:22:52 -07:00
Tomasz Wasilczyk
0f1776d08b Pass vendor-specific info as map.
This solves a problem of identifying, if a given application is talking
to a hardware that can handle format of these strings.

Bug: b/64229617
Test: VTS, instrumentation
Change-Id: I6f525be90105bfdc01a899feea2a3151719ec8d2
2017-08-03 18:21:22 -07:00
Tomasz Wasilczyk
36ea87b075 Merge "Address Broadcast Radio HAL review notes." into oc-mr1-dev 2017-08-03 16:52:31 +00:00
Chien-Yu Chen
cd1cb83314 Merge "camera2: Fix template requirements" into oc-dev am: 2976109d89
am: 615f9e1277

Change-Id: I9ea51423e88f90648f480c55d4567db6cee6ef98
2017-08-02 22:58:15 +00:00
Chien-Yu Chen
615f9e1277 Merge "camera2: Fix template requirements" into oc-dev
am: 2976109d89

Change-Id: I20b68b33caf48afeead56116602c6a9b2a33ab26
2017-08-02 19:56:55 +00:00
Tomasz Wasilczyk
8316291cda Address Broadcast Radio HAL review notes.
Bug: b/64229617
Test: instrumentation
Change-Id: I4325c7b2cef030ce900d23af9468591c2fc1a19e
2017-08-01 10:52:58 -07:00