Commit Graph

19293 Commits

Author SHA1 Message Date
Julia Reynolds
44ff7c9585 Rename broadcast constants
Test: runtest systemui-notification, cts verifier
Change-Id: I41812e7fa0ae532fbdff5c5ba88887d1b1187b79
Fixes: 72762612
2018-02-05 15:05:00 +00:00
TreeHugger Robot
1bb9f29909 Merge "Autofill compatibility mode." 2018-02-05 09:55:29 +00:00
Android Build Merger (Role)
8c04bd60a7 Merge "Merge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755 am: 1d64dc96f7" 2018-02-04 01:13:56 +00:00
weijuncheng
8fdcf98670 Merge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755
am: 1d64dc96f7

Change-Id: I54a18f245ebf70d9d1670973e02a318743a4ec3c
2018-02-04 01:13:30 +00:00
Xiangyu/Malcolm Chen
1b368de832 Merge "Add strings and carrier config needed network service." 2018-02-04 01:11:03 +00:00
Ruchi Kandoi
01de0a82cc Merge "Add NFC Transaction Event intent actions and extras" am: 337e2feada am: 8b35111d3e
am: 9750a6f69a

Change-Id: I8c9f734f8e51ecae23cb225a4295e1b6b63be307
2018-02-04 00:44:02 +00:00
Hall Liu
e35ef2778e Merge "Rename MbmsDownloadSession#getDownloadStatus" am: a07d895f09 am: be305be046
am: c8cb3aad58

Change-Id: I0c5313fef938e6d9dfbb7779f336a3e3b34fe6c2
2018-02-04 00:05:22 +00:00
Svetoslav Ganov
24c90450fe Autofill compatibility mode.
Autofill helps users fill credentials, addresses, payment methods,
emails, etc without manually typing. When focus lands on a fillable
element the platform captures a snapshot of the screen content and
sends it to an autofill service for analysis and suggestions. The
screen snapshot is a structured representation of the screen content.
If this content is composed of standard widgets, autofill works
out-of-the-box. However, some apps do their own rendering and
the content in this case looks like a single view to the platform
while it may have semantic structure. For example, a view may render
a login page with two input test fields.

The platform exposes APIs for apps to report virtual view structure
allowing autofill services to handle apps that have virtual content.
As opposed to apps using standard widgets, this case requires the app
developer to implement the new APIs which may require a fair amount
of code and could be seen as a processes that could take some time.
The most prominent typs of apps that fall into this category are
browsers.

Until most apps rendering virtual content and specifically browsers
don't implement the virutal APIs, autofill providers need to fall-
back to using the accessibliity APIs to provide autofill support
for these apps. This requires developers to work against two sets
of APIs - autofill and accessibility - which is incovenient and error
prone. Also, users need to enable two plugins - autofill and
accessibility which is confusing. Additionally, the privacy and
perfomance impact of using the accessibility APIs cannot be addressed
while autofill providers need to use thes APis.

This change adds an autofill compatibility mode that would allow
autofill services to work with apps that don't implement the
virtual structure autofill APIs. The key idea is to locally enable
accessibility for the target package and remap accessibility to
autofill APIs and vise versa. This way an autofill provider codes
against a single set of APIs, the users enable a single plugin,
the privacy/performance implications of using the accessibility
APIs are addressed, the target app only takes a performance hit
since accessibility is enabled locally which is still more efficient
compared to the performance hit it would incur if accessibility is
enabled globally.

To enable compatibility mode an autofill service declares in its
metadata which packages it is interested in and also what is
the max version code of the package for which to enable compat
mode. Targeted versioning allows targeting only older versions of
the package that are known to not support autofill while newer
versions that are known to support autofill would work in normal
mode.

Since compatibility mode should be used only as a fallback we
have a white list setting with the packages for which this mode
can be requested. This allows applying policy to target only
apps that are known to not support autofill.

Test:
     cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
     cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases

bug:72811034

Change-Id: I11f1580ced0f8b4300a10b3a5174a1758a5702a0
2018-02-02 19:34:26 -08:00
Jeff Sharkey
5491881d77 Merge "Pass in the user defined by Context." 2018-02-03 02:12:22 +00:00
Jeff Sharkey
ad357d1839 Pass in the user defined by Context.
The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451
2018-02-03 02:11:45 +00:00
TreeHugger Robot
59c490f29b Merge "Renamed BIND_DATA_SERVICE to BIND_TELEPHONY_DATA_SERVICE" 2018-02-03 02:01:46 +00:00
Malcolm Chen
ec1022121b Add strings and carrier config needed network service.
Add resource overlay and carrier config which will determine
which package / network services will be bound to.

Bug: 64132030
Test: regression tests
Change-Id: I5f515ec16b712e7be25f69e0e079d672227542b0
2018-02-02 17:32:48 -08:00
TreeHugger Robot
fa5f30a07d Merge "Marks Context.createPackageContextAsUser as System" 2018-02-03 00:37:24 +00:00
Treehugger Robot
6c40bbdc5e Merge "Add DENSITY_440" 2018-02-03 00:03:57 +00:00
TreeHugger Robot
146ea7f702 Merge "Fix checks for showing InputMethod picker" 2018-02-02 22:36:37 +00:00
Jack Yu
568b81ac3f Renamed BIND_DATA_SERVICE to BIND_TELEPHONY_DATA_SERVICE
Also grated the permission to the phone process.

Test: Manual
Bug: 64132030
Change-Id: I1fc82a4e8038b1b05b56dcfa43c0c94955967700
2018-02-02 22:04:43 +00:00
Patrick Baumann
ef4c407123 Marks Context.createPackageContextAsUser as System
Test: Builds
Bugs: 72450666
Fixes: 72863821
Change-Id: Id36730533524af4786898afadc5f11c9be83da26
2018-02-02 13:49:48 -08:00
Ruchi Kandoi
337e2feada Merge "Add NFC Transaction Event intent actions and extras" 2018-02-02 20:34:23 +00:00
Hall Liu
a07d895f09 Merge "Rename MbmsDownloadSession#getDownloadStatus" 2018-02-02 20:01:12 +00:00
TreeHugger Robot
703ab4dfc0 Merge "Implement front-end API to retrieve DAB frequency table." 2018-02-02 19:59:22 +00:00
TreeHugger Robot
1eb7d64ace Merge "Fix typo in MicrophoneInfo" 2018-02-02 19:09:30 +00:00
Ruchi Kandoi
a077161382 Add NFC Transaction Event intent actions and extras
Bug: 72556384
Bug: 65127791
Test: Test App check for RF Events
Change-Id: I22f5e3d8dc11d518c96a74e54121e072caa6a18d
2018-02-02 09:19:08 -08:00
yuemingw
7810b8b5a1 Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION.
Bug: 72732481
Test: CtsVerifier test already in
Change-Id: I6932d08b250546879a77bc11022987a0d44c3135
2018-02-02 16:47:47 +00:00
TreeHugger Robot
940384bf41 Merge changes from topic "biometric-fingerprint"
* changes:
  Deprecate FingerprintManager APIs
  Remove FingerprintManager dependencies from FingerprintDialog
2018-02-02 08:26:09 +00:00
Kevin Chyn
ff548a614b Deprecate FingerprintManager APIs
Bug: 72519498

Test: builds
Change-Id: I61363b68fc048529e17bffb49e9bf345d3ba4dcf
2018-02-01 19:32:55 -08:00
Kevin Chyn
6668256128 Remove FingerprintManager dependencies from FingerprintDialog
This change also adds the BiometricAuthenticator interface for the future
BiometricManager

Fixes: 72529467

Test: FingerprintDialog, FingerprintSystemDialog apks
Test: CTS Verifier apk

Change-Id: I703d004a3aebcbc473329d531505ffb647b91950
2018-02-01 18:28:35 -08:00
TreeHugger Robot
8a1b786d40 Merge "Added permission for binding data service" 2018-02-02 00:26:21 +00:00
John Reck
81f6fa1858 Merge "Support recording HW Bitmaps in Picture" 2018-02-02 00:25:54 +00:00
TreeHugger Robot
aa2c46cc81 Merge "Make ambient brightness day stats a system API" 2018-02-02 00:18:38 +00:00
jiabin
6509c9aae3 Fix typo in MicrophoneInfo
Bug: 64038649
Test: run cts
Change-Id: I8e84aa5560cdaa5d05d28008f669a292e8b6c96e
2018-02-01 15:20:53 -08:00
TreeHugger Robot
7902b4a1b2 Merge "Add AudioFormat.ENCODING_E_AC3_JOC" 2018-02-01 22:03:22 +00:00
Hall Liu
92964f60ec Rename MbmsDownloadSession#getDownloadStatus
Rename and change signature/behavior to match up with middleware
vendor's expectations

Test: run CTS tests
Change-Id: If18acff5631cfc0473c342e9250973866e960d69
2018-02-01 13:23:17 -08:00
Chris Craik
716f38177e Support recording HW Bitmaps in Picture
Bug: 34881007
Test: bit CtsGraphicsTestCases:*
Test: bit CtsUiRenderingTestCases:.testclasses.HardwareBitmapTests

Change-Id: Ic751c356682ea3db17a1b031ec46106a1a2ab918
2018-02-01 10:35:42 -08:00
Peeyush Agarwal
e3a08ab5e1 Make ambient brightness day stats a system API
Test: atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I83f476f22a2100d324862cbea2a139eababa9d4e
2018-02-01 17:48:42 +00:00
Jack Yu
30295ad8f2 Added permission for binding data service
This is to make sure only the system can bind the data service.

Test: Manual
Bug: 64132030
Change-Id: Iaf4e4a604396ec37c83516f1d1f163614ef23c3d
2018-02-01 17:28:03 +00:00
Mikhail Naganov
29f479d502 Merge "Add audio presentation interface to Java API" 2018-02-01 16:46:07 +00:00
Brad Ebinger
d6d9ff3c2d Merge changes from topics "ims_sms_sms_ready", "ims_sms_rm_internal_sms", "ims_sms_disp"
* changes:
  Add and trigger onReady API for SMS over IMS.
  Unhide SMS over IMS APIs
  Remove internal version of SMS apis
  Move Sms API to proper MMTelFeature class
  Add unique id for sms APIs to be able to trigger correct smstracker
2018-02-01 16:38:36 +00:00
TreeHugger Robot
3d67f4a039 Merge "Add information about brightness config to slider events." 2018-02-01 10:37:30 +00:00
TreeHugger Robot
faf852539a Merge "Support query active microphones in MediaRecorder." 2018-02-01 07:52:55 +00:00
TreeHugger Robot
daaa009003 Merge changes I4a907600,If3205033
* changes:
  Marking used instant apps fields as System API
  Revert "Revert "Removes EphemrealResolverService and related""
2018-02-01 02:27:32 +00:00
TreeHugger Robot
23a7b8d36b Merge "Support query active microphones information in AudioRecord." 2018-02-01 01:35:26 +00:00
TreeHugger Robot
70f93ee673 Merge "Add API to set tonal shadow color" 2018-01-31 23:17:12 +00:00
Mohamed Abdalkader
304f4b5509 Add and trigger onReady API for SMS over IMS.
Test: manual test that normal code path is fine since this code path is
not yet exercisable.
BUG=69846044
Merged-In: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a
Change-Id: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a
2018-01-31 14:55:42 -08:00
TreeHugger Robot
3a2e3b03dc Merge "Revert "Revert "Adds generic intent Instant App resolution""" 2018-01-31 22:38:48 +00:00
TreeHugger Robot
490d323003 Merge "Add support for getting all available microphones characteristics." 2018-01-31 22:20:25 +00:00
Patrick Baumann
159cd024d9 Marking used instant apps fields as System API
Change-Id: I4a907600b9fa75b1789843a9c2e7d2c33aaaff6b
Fixes: 71852699
Bug: 72450666
Bug: 72700831
Test: builds and AIA still functional
2018-01-31 14:00:18 -08:00
Patrick Baumann
577d402d0d Revert "Revert "Adds generic intent Instant App resolution""
This reverts commit 860b8ba719.

The original change that was reverted contained a bug that allowed an
http view/browsable intent used to query for browsers to be considered
as a candidate for instant apps. This was resulting in an attempt to
bind to the instant app resolver while holding a lock on mPackages.

This change ensures that PMS doesn't bind while checking for the browser
status of a package in both the instant app filtering code and by adding
the FLAG_IGNORE_EPHEMERAL to the canonical browser intent.

Reason for revert: Applying fix

Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623
Fixes: 63117034
Fixes: 71916178
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-31 14:00:18 -08:00
Patrick Baumann
43c97a0e90 Revert "Revert "Removes EphemrealResolverService and related""
This reverts commit 1e0c91968e.

Reason for revert: Original issue fixed

Fixes: 38137176
Fixes: 38121489
Test: manual; builds and instant apps launch
Change-Id: If320503381b21580ac1b127c49f754b39ffcc93b
2018-01-31 14:00:18 -08:00
Adam Lesinski
7ae1dc3311 Merge "Update api files from change in doclava stubs generator" 2018-01-31 21:58:50 +00:00
Mohamed Abdalkader
904c1eca5f Unhide SMS over IMS APIs
While here add more constants for send sms result.

Test: manual
BUG:69846044
Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
2018-01-31 13:18:45 -08:00