Commit Graph

79352 Commits

Author SHA1 Message Date
Todd Kennedy
d5aaa44859 Fix APCT tests
* remove testInsertPackageSetting
* add path to c'tor for testUpdatePackageSetting0[12]

Change-Id: Ia690839268470db227538a7b64557da182d97751
Fixes: 72959078
Test: atest -it FrameworksServicesTests:PackageManagerSettingsTests
2018-02-07 15:44:19 -08:00
TreeHugger Robot
4b909212b3 Merge "STOPSHIP: Add UidCpuPower global setting" 2018-02-05 18:10:37 +00:00
Julia Reynolds
30b82786c1 Merge "Rename broadcast constants" 2018-02-05 17:07:13 +00:00
Richard Ledley
309f009127 Merge "Linkify documentation updates." 2018-02-05 17:06:53 +00:00
TreeHugger Robot
2ea1ed2470 Merge "Fix missing JavaDoc of IMM#toggleSoftInput()" 2018-02-05 16:56:45 +00:00
TreeHugger Robot
19160d923d Merge "Updating smart text selection animation" 2018-02-05 15:59:56 +00:00
TreeHugger Robot
5ce2d49b2f Merge "Introduce "adb shell dpm force-security-logs"" 2018-02-05 15:16:23 +00:00
Richard Ledley
3e43fc5623 Linkify documentation updates.
Test: Building succeeds.

Bug: 72562811

Change-Id: Idf8979107f487ca93fe970b689a16941565c22b5
2018-02-05 15:07:23 +00:00
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
Jan Althaus
80620c52b9 Updating smart text selection animation
Now animates the highlight itself as opposed to an outline.

Bug: 70540865
Test: Manually tested it with single and multi-line - ltr and rtl
Change-Id: I8afee259c9952fcff0b713bca62c82a1022f2b0d
2018-02-05 13:45:13 +01:00
TreeHugger Robot
d11dc140bc Merge "VV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2" 2018-02-05 10:17:33 +00:00
TreeHugger Robot
1bb9f29909 Merge "Autofill compatibility mode." 2018-02-05 09:55:29 +00:00
Insun Kang
718c1d122f VV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2
MediaControlView2's setTimeout API is removed and MCV2's visibility
handling logic is moved into VideoView2.

Test: build
Change-Id: I149119148f159c78e86c5061d247f0a434310719
2018-02-05 16:39:58 +09:00
Yohei Yukawa
3db07bb547 Fix missing JavaDoc of IMM#toggleSoftInput()
This CL addresses a typo in the JavaDoc of IMM#toggleSoftInput(),
which has prevented it from being treated as a valid JavaDoc.

Note that this CL removes @hide simply because it is too late.  The
method in question has already been exposed to developers since API
level 3 (Cupcake) because of the typo.

Bug: 13002424
Test: make -j doc-comment-check-docs
Change-Id: I3e42d433f20c56ee63373bb390aad59e3bd7ec4f
2018-02-05 15:26:25 +09:00
TreeHugger Robot
76be79a7c9 Merge "Exempt sync requests by FG app from app-standby" 2018-02-05 05:11:18 +00:00
TreeHugger Robot
00f255e795 Merge "VideoView2: Replace showSubtitle with setSubtitleEnabled" 2018-02-05 02:07:55 +00:00
Hugo Benichi
fbbd75839d Merge "Update OWNER files for connectivity" am: 771e229a23 am: ce0c31d392
am: 9a70530107

Change-Id: I1754c7bd602db58bd6c4e72d5f0dd77786d730da
2018-02-05 00:54:50 +00:00
Hugo Benichi
9a70530107 Merge "Update OWNER files for connectivity" am: 771e229a23
am: ce0c31d392

Change-Id: I5a995856aa347874b534312212ca73ffff0193c0
2018-02-05 00:39:54 +00:00
Hugo Benichi
ce0c31d392 Merge "Update OWNER files for connectivity"
am: 771e229a23

Change-Id: I6daf999785a855ab2a7c97f113f5f8ec87a13256
2018-02-05 00:30:14 +00:00
Hugo Benichi
771e229a23 Merge "Update OWNER files for connectivity" 2018-02-04 23:18:52 +00:00
Stanley Tng
1f3b464471 Merge "Add function to update LE connection parameters" am: 853628db72 am: c3afcfc38c
am: a4c600cb03

Change-Id: I3bbb6c7a0f51d17690c3ae47a228758a45c155ee
2018-02-04 01:20:48 +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
Pavel Maltsev
9c70dc79dd Merge "Enable multiple active Ethernet interfaces" am: 0a6c539901 am: ac908d6728
am: 3379a3eff9

Change-Id: Ibd84c2ba3252e3d65ba4a63a0be912747ea18df9
2018-02-04 01:06:51 +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
Jeff Sharkey
c7dc046e0e Merge "Polished rapid data usage alerting." 2018-02-03 22:07:34 +00:00
Jeff Sharkey
bfb43ea9e6 Polished rapid data usage alerting.
Switch to reading limit information from NetworkPolicy, which is
typically populated from SubscriptionPlan.  This lets users have
direct control over the limits we're using to trigger rapid usage
alerts, and makes the feature work without requiring that the carrier
wire up SubscriptionPlan information.

Let the user "snooze" the rapid usage alerting for a day at a time,
so we're less annoying to them.  Send the snooze broadcasts as
foreground, so that we don't re-post notifications while working
through a long background broadcast queue.

Fix notifications to use the "ALERTS" channel, since these alerts
really are higher priority than simple "STATUS" updates; this also
gives us HUN behavior when in full-screen apps.

Update both service and unit tests to work directly with
NotificationManager, instead of the raw AIDL.

Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 72444638, 72436702
Change-Id: I8d9138522a7779cc68eb9fa4777b50facb6567b7
2018-02-03 12:49:30 -07:00
Stanley Tng
a4c600cb03 Merge "Add function to update LE connection parameters" am: 853628db72
am: c3afcfc38c

Change-Id: Ib35d2c5314dcf6d12abf4d097b10dfc5df34bb55
2018-02-03 04:21:58 +00:00
Stanley Tng
c3afcfc38c Merge "Add function to update LE connection parameters"
am: 853628db72

Change-Id: I7a6a653fa9d007a71e5155180fc8e78289ad9b81
2018-02-03 04:10: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
TreeHugger Robot
39d080503e Merge "Dump usb as DualDump" 2018-02-03 02:56:30 +00: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
weijuncheng
1d64dc96f7 Merge "Add DENSITY_440" am: 6c40bbdc5e
am: a21fa41755

Change-Id: I3024b00c5060d7f6055d1e2e60a36061a10bf0ad
2018-02-03 01:37:33 +00:00
Stanley Tng
853628db72 Merge "Add function to update LE connection parameters" 2018-02-03 01:36:03 +00:00
Pavel Maltsev
3379a3eff9 Merge "Enable multiple active Ethernet interfaces" am: 0a6c539901
am: ac908d6728

Change-Id: I95a4e5d519857950297f5948525990c4808cd5fd
2018-02-03 01:25:34 +00:00
weijuncheng
a21fa41755 Merge "Add DENSITY_440"
am: 6c40bbdc5e

Change-Id: Iffc972d66f36c11e3b465fdc3ab87a5518b7e646
2018-02-03 01:16:46 +00:00
Philip P. Moltmann
371a3b879b Dump usb as DualDump
This allows to dump the USB state as proto-buf. This in turn allows to
automatically process this data.

Test: adb shell dumpsys usb
      incident_report usb
      No automated test possible as no field is guaranteed to be set
Change-Id: Ifdf22bfaf9c78226c420b11c43278013ce69f849
2018-02-02 16:40:26 -08:00
Makoto Onuki
61283ecc7f Exempt sync requests by FG app from app-standby
Test: manual test with request sync, etc
Bug: 72443754
Change-Id: Iecf2d3a8c54451324a02ca2762bda72aa219bd92
2018-02-02 16:40:25 -08:00
TreeHugger Robot
fa5f30a07d Merge "Marks Context.createPackageContextAsUser as System" 2018-02-03 00:37:24 +00:00
Pavel Maltsev
ac908d6728 Merge "Enable multiple active Ethernet interfaces"
am: 0a6c539901

Change-Id: Idea050a552dd3447cccebab2fc6f041bae06853e
2018-02-03 00:07:59 +00:00
Treehugger Robot
6c40bbdc5e Merge "Add DENSITY_440" 2018-02-03 00:03:57 +00:00
Treehugger Robot
0a6c539901 Merge "Enable multiple active Ethernet interfaces" 2018-02-02 23:13:54 +00:00
TreeHugger Robot
146ea7f702 Merge "Fix checks for showing InputMethod picker" 2018-02-02 22:36:37 +00:00
TreeHugger Robot
9d4f6963c2 Merge "Fix fsverity root hash format" 2018-02-02 22:27:51 +00:00
Ruchi Kandoi
9750a6f69a Merge "Add NFC Transaction Event intent actions and extras" am: 337e2feada
am: 8b35111d3e

Change-Id: Icedc6764b7b3fdf9b5706bedc3e4fe0dc0d39c58
2018-02-02 22:13:27 +00:00
Ruchi Kandoi
8b35111d3e Merge "Add NFC Transaction Event intent actions and extras"
am: 337e2feada

Change-Id: I02cf168c0edff40dc6d85ad90a1f3ddc71044c91
2018-02-02 22:01:34 +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
Android Build Merger (Role)
609017b275 Merge "Merge "Add ServiceSpecificExceptions for SecureElementService." am: 73e7a1a739 am: e09ba38a97 am: 4a0074089e" 2018-02-02 20:27:00 +00:00
Ruchi Kandoi
bb328e9109 Merge "Add ServiceSpecificExceptions for SecureElementService." am: 73e7a1a739 am: e09ba38a97
am: 4a0074089e

Change-Id: I860518723941e56fec03dab2298931a5fe00450f
2018-02-02 20:25:47 +00:00