Commit Graph

363410 Commits

Author SHA1 Message Date
TreeHugger Robot
ebd87bf395 Merge "Use on-screen text in a11y text changed event" into pi-dev 2018-03-28 02:06:27 +00:00
TreeHugger Robot
3844e1d83c Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev 2018-03-28 01:59:26 +00:00
TreeHugger Robot
11866a4242 Merge "Hide activities when AOD comes in" into pi-dev 2018-03-28 01:11:42 +00:00
TreeHugger Robot
1c73370df4 Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev 2018-03-28 00:45:23 +00:00
Joshua Baxter
2ae75ba1ab docs: fixed typo
am: eb5d2d96ad

Change-Id: I60e1befd90c14fe0ef6b3b8813bb2a791f8a7399
2018-03-28 00:33:50 +00:00
Clément Julliard
fa43016626 Merge "Relax constraints on valid ImageReader usage flags" into pi-dev 2018-03-28 00:23:29 +00:00
Phil Weaver
092f754397 Use on-screen text in a11y text changed event
The beforeText in a text changed event was coming from
the underlying CharSequence, not what was on the screen.
As a result, it was not sent for password fields. Now
we just provide whatever is on the screen, which is
obfuscated to the same degree it is for a user looking
at the screen.

Bug: 75324441
Test: Verified with password field in TalkBack sample app.
Also atest CtsAccessibilityServiceTestCases

Change-Id: Ib7a10313d2f9d0e44d2052e81e47f19967a67bc4
2018-03-27 17:07:24 -07:00
TreeHugger Robot
55b486eb6e Merge "Update Guardrail." into pi-dev 2018-03-27 23:44:23 +00:00
Lucas Dupin
41c25cee06 Unload wallpaper bitmap and release HwuiContext
To decrease sysui memory usage

Test: adb dumpsys meminfo
Fixes: 74534423
Change-Id: I3cb4a5927e8d6b20a7aeba3fda253f0ba4cc18f6
2018-03-27 16:30:07 -07:00
TreeHugger Robot
788e74a613 Merge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into pi-dev 2018-03-27 23:17:31 +00:00
TreeHugger Robot
15db763bca Merge "clear calling identity on isPackageSuspended" into pi-dev 2018-03-27 22:57:23 +00:00
TreeHugger Robot
f2977ce61e Merge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev 2018-03-27 22:54:51 +00:00
TreeHugger Robot
df369da85f Merge "Modify Open Mobile API to follow Android API guidelines" into pi-dev 2018-03-27 22:54:25 +00:00
Xiangyu/Malcolm Chen
2fc8197b4d Merge "Clean new TelephonyManager API." into pi-dev 2018-03-27 22:42:58 +00:00
Dianne Hackborn
00f3c4333e Merge "Work on issue #74404949: Screen state usage API" into pi-dev 2018-03-27 22:40:51 +00:00
TreeHugger Robot
56e9c026b3 Merge "Refactor AddUserAuthArgs for extensibility" into pi-dev 2018-03-27 22:13:37 +00:00
TreeHugger Robot
cdaba41a6f Merge "Revert "Close print writers"" into pi-dev 2018-03-27 22:00:07 +00:00
TreeHugger Robot
17b6490ce1 Merge "Regularize some wallpaper APIs" into pi-dev 2018-03-27 21:50:31 +00:00
TreeHugger Robot
0fba0640a1 Merge "ALSA jack detection support - match upstream kernel" into pi-dev 2018-03-27 21:50:15 +00:00
Andrew Chant
afaef83e0a ALSA jack detection support - match upstream kernel
Match upstream Linux kernel support for UAC2 jack detection.
The patch that was included upstream names USB input and
output jack controls by ending them in
"Input Jack" or "Output Jack" respectively.

see 5a222e84945 ('ALSA: usb-audio: UAC2 jack detection') in
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

Update UsbAlsaJackDetector appropriately.

Test: Verified on a UAC2 device with the above kernel patch,
tinymix -D 1 produced:
...
2       BOOL    1       Headset - Input Jack                     Off
...
9       BOOL    1       Headset - Output Jack                    On
With a headset connected,  and when the jack was unplugged, Youtube
paused.

Bug: 70632415
Change-Id: I2e5dd48c7a9d174aabbb3a3315496fb30f7a545a
2018-03-27 21:49:53 +00:00
TreeHugger Robot
781e50a49b Merge "Migrate from config.xml to SystemConfig for disabled carrier apps" into pi-dev 2018-03-27 21:48:06 +00:00
TreeHugger Robot
4d40f040d3 Merge "Using an intent-action instead of a fixed compoenent for quick-step service" into pi-dev 2018-03-27 21:46:56 +00:00
TreeHugger Robot
dda147e179 Merge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev 2018-03-27 21:45:46 +00:00
TreeHugger Robot
aa614fafc7 Merge "Add lock when adjusting suggested stream volume." into pi-dev 2018-03-27 21:43:19 +00:00
Makoto Onuki
452ae34af5 Merge "Add auto battery saver suggestion notification/dialog" into pi-dev 2018-03-27 21:20:13 +00:00
Winson Chung
a17eccac73 Merge "Use package context for loading task description icon resource" into pi-dev 2018-03-27 21:03:59 +00:00
TreeHugger Robot
2cc67382c0 Merge "Revert "Unhide enable_apps carrier config key."" into pi-dev 2018-03-27 20:58:54 +00:00
Chavi Weingarten
ce61d118de Merge "Don't animate dim layer exit when recents animation finishes." into pi-dev 2018-03-27 20:56:17 +00:00
TreeHugger Robot
3787f73198 Merge "Track USB data link in batterystats" into pi-dev 2018-03-27 20:52:57 +00:00
Clément Julliard
a7d2de4868 Relax constraints on valid ImageReader usage flags
The only allowed format - usage pairs are currently:
* PRIVATE with USAGE_GPU_SAMPLED_IMAGE
* PRIVATE with USAGE_VIDEO_ENCODE
* PRIVATE with USAGE_GPU_SAMPLED_IMAGE | USAGE_VIDEO_ENCODE
* Non-PRIVATE with USAGE_CPU_READ_RARELY
* Non-PRIVATE with USAGE_CPU_READ_OFTEN

This commit enable other cases, ie. PRIVATE with
GRALLOC_USAGE_HW_COMPOSER.

Bug: 77148005
Test: Manually tested it.
Change-Id: I414c25bc62d52a3573461df6cec4d88512509ec4
2018-03-27 13:48:27 -07:00
Andrew Chant
b8d8ccf9e4 Merge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev 2018-03-27 20:44:53 +00:00
TreeHugger Robot
5681efd1af Merge changes Iba4e52c2,I81160755 into pi-dev
* changes:
  Public volumes only browsable by mounting user.
  Public volumes are only visible to mounted user.
2018-03-27 20:28:31 +00:00
Dianne Hackborn
ced54398cc Work on issue #74404949: Screen state usage API
Add usage stats tracking of screen time.  There are two new
events, one for when the device is an interactive state, the
other for when it is non-interactive.  Also add a whole new
usage stats API for retrieving aggregated data that is associated
with general events, not particular packages.  In this case
it allows you to find the time the device spent interactive
and non-interactive and the count of the transitions in to
each of those states.

Bug: 74404949
Test: atest CtsUsageStatsTestCases:UsageStatsTest\#testInteractiveEvents

Change-Id: Ibe6d55e2aecb0c8519b1358644378ec5c7a4250d
2018-03-27 13:27:20 -07:00
TreeHugger Robot
dea705ba59 Merge "Remove feature flag for battery settings" into pi-dev 2018-03-27 20:23:23 +00:00
TreeHugger Robot
8261cbe32d Merge "Avoid binder call while dragging" into pi-dev 2018-03-27 20:10:28 +00:00
Narayan Kamath
aa6e21281a Revert "Close print writers"
This reverts commit 390b242367.

The reverted change closed the output PrintWriter too early
and led to truncated dumps.

Bug: 74423421
Change-Id: I62902f2aa20be460b6dec42e811b21bf953fcfe3
Test: manual
(cherry picked from commit 1af397c9f7)
2018-03-27 20:05:39 +00:00
TreeHugger Robot
828ffa45a1 Merge "Recover dataset picker when view fail to autofill." into pi-dev 2018-03-27 19:48:44 +00:00
TreeHugger Robot
3801d3a7d9 Merge "Camera2: Add distortion correction support" into pi-dev 2018-03-27 19:26:44 +00:00
TreeHugger Robot
e1c4324e6c Merge "Show dynamic subtext for RestrictedSwitchPreference." into pi-dev 2018-03-27 19:23:50 +00:00
TreeHugger Robot
f431ded9dd Merge "[Notif] Add Blocking helper to swipe" into pi-dev 2018-03-27 19:19:40 +00:00
Lucas Dupin
47a65c79c9 Hide activities when AOD comes in
Display timeout does not lock the keyguard, which means that
activities won't immediatelly disappear.

We need to factor AOD into to equation to make sure that
the user won't see phantom activities under the status bar
window when the display times out.

Fixes: 73120928
Test: open Settings, wait for display timeout
Test: Wait for display timeout, press power, see launcher
Test: Launch maps, start navigation (FLAG_SHOW_WHEN_LOCKED)
Test: Go to AOD, press power button: activity is occluding keyguard
Test: Press home: bouncer shows up
Test: Unlock: maps goes into pip mode
Test: Go to AOD and back to lock screen: keyguard visible
Test: Expand maps, go to AOD, back to lock screen: maps is occluding keyguard
Change-Id: I9b7512313af2f851d8788ec53de7880bce3bed2c
2018-03-27 12:12:14 -07:00
Mike Ma
926a97cd3f Track USB data link in batterystats
Record USB data link state in addition to plug & charging state, since
modern USB controller can keep USB data link connected with minimum
current. Device is not acutally charging at those times.
Test: manual
Fixes: 76209292

Change-Id: I0710d547399a631d594488a524682ccc32a25ce6
2018-03-27 12:05:48 -07:00
TreeHugger Robot
c08aa83b48 Merge "Don't let callers OOM the system process." into pi-dev 2018-03-27 19:05:24 +00:00
Beverly
2be7a05a1c clear calling identity on isPackageSuspended
Fixes: 76441207
Test: inspection
Change-Id: Ic58f727177fce82e882a7ad1c1414c9d5a5bfee8
2018-03-27 18:59:15 +00:00
Jesse Hall
bef42cd87f Merge "Docs: add more detail to SurfaceTexture#getTimestamp" into pi-dev 2018-03-27 18:54:28 +00:00
TreeHugger Robot
6d0412ee22 Merge "[QS] Update landscape UI" into pi-dev 2018-03-27 18:52:36 +00:00
Kweku Adams
a9c0bb17e0 Refactoring SystemSettingsProto to avoid method limit.
Bug: 76011704
Bug: 74975371
Test: flash device and check incident.proto output
and m EMMA_INSTRUMENT_STATIC=true EMMA_INSTRUMENT=true out/target/common/obj/APPS/CtsStatsdApp_intermediates/jacoco/work/instrumented/updated.stamp
and atest CtsIncidentHostTestCases:com.android.server.cts.SettingsIncidentTest

Change-Id: I30bb0f35dacd55c11603f9f8b9888c7d35df7a54
2018-03-27 11:44:42 -07:00
TreeHugger Robot
b57843059a Merge "Tweak FingerprintDialog" into pi-dev 2018-03-27 18:43:17 +00:00
TreeHugger Robot
e19226b121 Merge "Adjust the volumeDialog layout" into pi-dev 2018-03-27 18:40:39 +00:00
Lucas Dupin
25a2c118f4 Avoid binder call while dragging
Test: change auth method, swipe up
Test: brakpoint at binder call
Change-Id: I2a5454e1f80dae094866a5b3f32d02bd528a0696
Fixes: 76456138
2018-03-27 11:35:33 -07:00