OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:10:45 +0000 (02:10 +0000)]
Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev

6 years agoMerge "Use on-screen text in a11y text changed event" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:06:27 +0000 (02:06 +0000)]
Merge "Use on-screen text in a11y text changed event" into pi-dev

6 years agoMerge "Unload wallpaper bitmap and release HwuiContext" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 01:59:26 +0000 (01:59 +0000)]
Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev

6 years agoMerge "Hide activities when AOD comes in" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 01:11:42 +0000 (01:11 +0000)]
Merge "Hide activities when AOD comes in" into pi-dev

6 years agoMerge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 00:45:23 +0000 (00:45 +0000)]
Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev

6 years agodocs: fixed typo
Joshua Baxter [Wed, 28 Mar 2018 00:33:50 +0000 (00:33 +0000)]
docs: fixed typo
am: eb5d2d96ad

Change-Id: I60e1befd90c14fe0ef6b3b8813bb2a791f8a7399

6 years agoMerge "Relax constraints on valid ImageReader usage flags" into pi-dev
Clément Julliard [Wed, 28 Mar 2018 00:23:29 +0000 (00:23 +0000)]
Merge "Relax constraints on valid ImageReader usage flags" into pi-dev

6 years agoUse on-screen text in a11y text changed event
Phil Weaver [Wed, 21 Mar 2018 19:33:59 +0000 (12:33 -0700)]
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

6 years agoMerge "Update Guardrail." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 23:44:23 +0000 (23:44 +0000)]
Merge "Update Guardrail." into pi-dev

6 years agoOptimizing TimeSparseArray#put in case of collisions
Suprabh Shukla [Tue, 27 Mar 2018 22:39:52 +0000 (15:39 -0700)]
Optimizing TimeSparseArray#put in case of collisions

Adding a linear check instead of binary searching everytime. Logging
only when the displacement is greater than 10 millis.

Test: python system/extras/boottime_tools/bootanalyze/bootanalyze.py\
-r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10
and
atest android.app.usage.TimeSparseArrayTest

Bug: 76435713
Change-Id: I8f4df59e84fc196d0f63f9433d01ebc759f104c4

6 years agoUnload wallpaper bitmap and release HwuiContext
Lucas Dupin [Tue, 27 Mar 2018 16:50:19 +0000 (09:50 -0700)]
Unload wallpaper bitmap and release HwuiContext

To decrease sysui memory usage

Test: adb dumpsys meminfo
Fixes: 74534423
Change-Id: I3cb4a5927e8d6b20a7aeba3fda253f0ba4cc18f6

6 years agoMerge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into...
TreeHugger Robot [Tue, 27 Mar 2018 23:17:31 +0000 (23:17 +0000)]
Merge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into pi-dev

6 years agoMerge "clear calling identity on isPackageSuspended" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:57:23 +0000 (22:57 +0000)]
Merge "clear calling identity on isPackageSuspended" into pi-dev

6 years agoMerge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:54:51 +0000 (22:54 +0000)]
Merge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev

6 years agoMerge "Modify Open Mobile API to follow Android API guidelines" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:54:25 +0000 (22:54 +0000)]
Merge "Modify Open Mobile API to follow Android API guidelines" into pi-dev

6 years agoMerge "Clean new TelephonyManager API." into pi-dev
Xiangyu/Malcolm Chen [Tue, 27 Mar 2018 22:42:58 +0000 (22:42 +0000)]
Merge "Clean new TelephonyManager API." into pi-dev

6 years agoMerge "Work on issue #74404949: Screen state usage API" into pi-dev
Dianne Hackborn [Tue, 27 Mar 2018 22:40:51 +0000 (22:40 +0000)]
Merge "Work on issue #74404949: Screen state usage API" into pi-dev

6 years agoMerge "Refactor AddUserAuthArgs for extensibility" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:13:37 +0000 (22:13 +0000)]
Merge "Refactor AddUserAuthArgs for extensibility" into pi-dev

6 years agoMerge "Revert "Close print writers"" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:00:07 +0000 (22:00 +0000)]
Merge "Revert "Close print writers"" into pi-dev

6 years agoMerge "Regularize some wallpaper APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:50:31 +0000 (21:50 +0000)]
Merge "Regularize some wallpaper APIs" into pi-dev

6 years agoMerge "ALSA jack detection support - match upstream kernel" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:50:15 +0000 (21:50 +0000)]
Merge "ALSA jack detection support - match upstream kernel" into pi-dev

6 years agoALSA jack detection support - match upstream kernel
Andrew Chant [Mon, 26 Mar 2018 23:53:34 +0000 (16:53 -0700)]
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

6 years agoMerge "Migrate from config.xml to SystemConfig for disabled carrier apps" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:48:06 +0000 (21:48 +0000)]
Merge "Migrate from config.xml to SystemConfig for disabled carrier apps" into pi-dev

6 years agoMerge "Using an intent-action instead of a fixed compoenent for quick-step service...
TreeHugger Robot [Tue, 27 Mar 2018 21:46:56 +0000 (21:46 +0000)]
Merge "Using an intent-action instead of a fixed compoenent for quick-step service" into pi-dev

6 years agoMerge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:45:46 +0000 (21:45 +0000)]
Merge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev

6 years agoMerge "Add lock when adjusting suggested stream volume." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:43:19 +0000 (21:43 +0000)]
Merge "Add lock when adjusting suggested stream volume." into pi-dev

6 years agoMerge "Add auto battery saver suggestion notification/dialog" into pi-dev
Makoto Onuki [Tue, 27 Mar 2018 21:20:13 +0000 (21:20 +0000)]
Merge "Add auto battery saver suggestion notification/dialog" into pi-dev

6 years agoMerge "Use package context for loading task description icon resource" into pi-dev
Winson Chung [Tue, 27 Mar 2018 21:03:59 +0000 (21:03 +0000)]
Merge "Use package context for loading task description icon resource" into pi-dev

6 years agoMerge "Revert "Unhide enable_apps carrier config key."" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:58:54 +0000 (20:58 +0000)]
Merge "Revert "Unhide enable_apps carrier config key."" into pi-dev

6 years agoMerge "Don't animate dim layer exit when recents animation finishes." into pi-dev
Chavi Weingarten [Tue, 27 Mar 2018 20:56:17 +0000 (20:56 +0000)]
Merge "Don't animate dim layer exit when recents animation finishes." into pi-dev

6 years agoMerge "Track USB data link in batterystats" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:52:57 +0000 (20:52 +0000)]
Merge "Track USB data link in batterystats" into pi-dev

6 years agoRelax constraints on valid ImageReader usage flags
Clément Julliard [Tue, 27 Mar 2018 20:48:27 +0000 (13:48 -0700)]
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

6 years agoMerge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev
Andrew Chant [Tue, 27 Mar 2018 20:44:53 +0000 (20:44 +0000)]
Merge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev

6 years agoMerge changes Iba4e52c2,I81160755 into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:28:31 +0000 (20:28 +0000)]
Merge changes Iba4e52c2,I81160755 into pi-dev

* changes:
  Public volumes only browsable by mounting user.
  Public volumes are only visible to mounted user.

6 years agoWork on issue #74404949: Screen state usage API
Dianne Hackborn [Mon, 26 Feb 2018 21:07:42 +0000 (13:07 -0800)]
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

6 years agoMerge "Remove feature flag for battery settings" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:23:23 +0000 (20:23 +0000)]
Merge "Remove feature flag for battery settings" into pi-dev

6 years agoMerge "Avoid binder call while dragging" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:10:28 +0000 (20:10 +0000)]
Merge "Avoid binder call while dragging" into pi-dev

6 years agoRevert "Close print writers"
Narayan Kamath [Tue, 27 Mar 2018 17:56:54 +0000 (17:56 +0000)]
Revert "Close print writers"

This reverts commit 390b242367cc17276d74d3a4af2f2bce2f4f7b57.

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 1af397c9f7b7d90d6235b72dcfe65a1f5441a09f)

6 years agoMerge "Recover dataset picker when view fail to autofill." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:48:44 +0000 (19:48 +0000)]
Merge "Recover dataset picker when view fail to autofill." into pi-dev

6 years agoMerge "Camera2: Add distortion correction support" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:26:44 +0000 (19:26 +0000)]
Merge "Camera2: Add distortion correction support" into pi-dev

6 years agoMerge "Show dynamic subtext for RestrictedSwitchPreference." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:23:50 +0000 (19:23 +0000)]
Merge "Show dynamic subtext for RestrictedSwitchPreference." into pi-dev

6 years agoMerge "[Notif] Add Blocking helper to swipe" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:19:40 +0000 (19:19 +0000)]
Merge "[Notif] Add Blocking helper to swipe" into pi-dev

6 years agoHide activities when AOD comes in
Lucas Dupin [Thu, 15 Feb 2018 22:16:18 +0000 (14:16 -0800)]
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

6 years agoTrack USB data link in batterystats
Mike Ma [Sun, 25 Mar 2018 09:32:35 +0000 (02:32 -0700)]
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

6 years agoMerge "Don't let callers OOM the system process." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:05:24 +0000 (19:05 +0000)]
Merge "Don't let callers OOM the system process." into pi-dev

6 years agoclear calling identity on isPackageSuspended
Beverly [Tue, 27 Mar 2018 15:37:58 +0000 (11:37 -0400)]
clear calling identity on isPackageSuspended

Fixes: 76441207
Test: inspection
Change-Id: Ic58f727177fce82e882a7ad1c1414c9d5a5bfee8

6 years agoMerge "Docs: add more detail to SurfaceTexture#getTimestamp" into pi-dev
Jesse Hall [Tue, 27 Mar 2018 18:54:28 +0000 (18:54 +0000)]
Merge "Docs: add more detail to SurfaceTexture#getTimestamp" into pi-dev

6 years agoMerge "[QS] Update landscape UI" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:52:36 +0000 (18:52 +0000)]
Merge "[QS] Update landscape UI" into pi-dev

6 years agoRefactoring SystemSettingsProto to avoid method limit.
Kweku Adams [Tue, 27 Mar 2018 18:38:15 +0000 (11:38 -0700)]
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

6 years agoMerge "Tweak FingerprintDialog" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:43:17 +0000 (18:43 +0000)]
Merge "Tweak FingerprintDialog" into pi-dev

6 years agoMerge "Adjust the volumeDialog layout" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:40:39 +0000 (18:40 +0000)]
Merge "Adjust the volumeDialog layout" into pi-dev

6 years agoAvoid binder call while dragging
Lucas Dupin [Tue, 27 Mar 2018 18:35:33 +0000 (11:35 -0700)]
Avoid binder call while dragging

Test: change auth method, swipe up
Test: brakpoint at binder call
Change-Id: I2a5454e1f80dae094866a5b3f32d02bd528a0696
Fixes: 76456138

6 years agoUpdate Guardrail.
Yao Chen [Tue, 27 Mar 2018 17:59:45 +0000 (10:59 -0700)]
Update Guardrail.

+ Config count is 10 per uid
+ Update the limit for metrics, matchers, conditions, etc.

Test: statsd_test

Bug: 73122377

Change-Id: I3e1adfe318d1354a7c9d1bf484855661aa3a1fc8

6 years agoMerge "Support sliced condition change in GaugeMetric" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:27:27 +0000 (18:27 +0000)]
Merge "Support sliced condition change in GaugeMetric" into pi-dev

6 years agoMerge "WebView: clarify shouldInterceptRequest docs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:23:02 +0000 (18:23 +0000)]
Merge "WebView: clarify shouldInterceptRequest docs" into pi-dev

6 years agoAdd UsbDeviceAdded and update PhysicalDropDetected
Andrew Chant [Fri, 23 Mar 2018 04:07:33 +0000 (21:07 -0700)]
Add UsbDeviceAdded and update PhysicalDropDetected

Add UsbDeviceAdded to log VID, PID, and interface
types of USB devices added to the system.

Add a fall duration to physical drop detected.

Bug: 74260509
Bug: 74261750

Test: Built and booted Walleye

Change-Id: I2b38697ba52869bc448fac2cc4b8bdb3fa75fa64

6 years agoMerge "Refactoring SecureSettingsProto to avoid method limit." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:09:37 +0000 (18:09 +0000)]
Merge "Refactoring SecureSettingsProto to avoid method limit." into pi-dev

6 years agoDon't animate dim layer exit when recents animation finishes.
chaviw [Mon, 26 Mar 2018 21:06:17 +0000 (14:06 -0700)]
Don't animate dim layer exit when recents animation finishes.

Recents animation handles animating the entire Task, which includes the
dim layer. After the recents animation is completed, there's no need for
the dim layer to start the exit animation. The recents animation takes
care of fading out the dim layer. Instead, just set the dimmer
mAnimateExit to false so the next call to updateDims will remove the dim
layer instead of starting the exit animation.

Test: Enter quick step with assistant open. Dim no longer flickers
at the end of the quick step animation.
Test: DimmerTests#testRemoveDimImmediately
Fixes: 74606159

Change-Id: Iceb4edde5edffdbba57dca35f258d9b3d7bf74f4

6 years agoShow dynamic subtext for RestrictedSwitchPreference.
yuemingw [Mon, 12 Mar 2018 17:04:04 +0000 (17:04 +0000)]
Show dynamic subtext for RestrictedSwitchPreference.

Show dynamic subtext for RestrictedSwitchPreference when corresponding
restriction is on according to the current settings status controlled
by this RestrictedSwitchPreference. I.e., show "enabled by admin"
when corresponding setting is currently turned on by admin, or
"disabled by admin". In the past, this string is hard coded in xml and
the subtext of RestrictedSwitchPreference always shows one of
"enabled by admin" and "disabled by admin" regardless of the current
status of the setting.

Bug: 73811933
Test: manually by TestDPC
Change-Id: I2bbeee14e650b288d71f6aa59fc63dd78e18d49e

6 years agoMerge "Remove deprecated android.graphics.Canvas APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:00:29 +0000 (18:00 +0000)]
Merge "Remove deprecated android.graphics.Canvas APIs" into pi-dev

6 years agoMerge "Guard against null server" into pi-dev
Jerry Zhang [Tue, 27 Mar 2018 17:54:21 +0000 (17:54 +0000)]
Merge "Guard against null server" into pi-dev

6 years agoRecover dataset picker when view fail to autofill.
Felipe Leme [Mon, 26 Mar 2018 23:18:45 +0000 (16:18 -0700)]
Recover dataset picker when view fail to autofill.

When a dataset is selected, the framework tries to autofill all views belonging
to it. But if one (or more view) failed to autofill, we should let the user
recover by tapping the view again.

This scenario typically happens when views are recycled.

Test: atest MutableAutofillIdTest#testViewGoneDuringAutofillCanStillBeFilled
Test: atest CtsAutoFillServiceTestCases # manually retrying flaky failures

Fixes: 76149637

Change-Id: I7a6352c68b4a7d5e4cb80a7346c66efd831f21c8

6 years agoUse package context for loading task description icon resource
Winson Chung [Tue, 27 Mar 2018 02:18:39 +0000 (19:18 -0700)]
Use package context for loading task description icon resource

Bug: 73816146
Test: Manual, swipe up, ensure we still load icons
Change-Id: I21d39da5891e2f4cdf5427bcb03049ed05780c87

6 years agoMerge "Only resolve users on content:// Uris." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:43:27 +0000 (17:43 +0000)]
Merge "Only resolve users on content:// Uris." into pi-dev

6 years agoAdd auto battery saver suggestion notification/dialog
Makoto Onuki [Thu, 22 Mar 2018 17:43:03 +0000 (10:43 -0700)]
Add auto battery saver suggestion notification/dialog

Spec: go/ebs-low-battery-mode-flow

- Basically when the user manually enables battery saver 4 times,
we show this notification to suggest turning on "scheduled"
(i.e. auto) battery saver.

- We show it through 8th time. If the user hits "no thanks",
or if auto-saver is enabled already, we will not show it.

- Introduced a new notification channel "HINTS" with
IMPORTANCE_DEFAULT.

Bug: 74120126
Test: Manual test with ll development/scripts/battery_simulator.py

Change-Id: I713abc59dc7caee6882ba848c3e3aabaf778c2bd

6 years agoMerge "Add exception catching for BlockedNumberContract methods used by Telecom....
Tyler Gunn [Tue, 27 Mar 2018 17:39:26 +0000 (17:39 +0000)]
Merge "Add exception catching for BlockedNumberContract methods used by Telecom." into pi-dev

6 years agoPublic volumes only browsable by mounting user.
Jeff Sharkey [Tue, 27 Mar 2018 17:35:32 +0000 (11:35 -0600)]
Public volumes only browsable by mounting user.

We can't browse public volumes mounted for a different user, so don't
return an Intent claiming that we can, since it'll just fail.

Test: manual
Bug: 74056525
Change-Id: Iba4e52c2672258b981d2912875e55949bb35e310

6 years agodocs: fixed typo
Joshua Baxter [Tue, 27 Mar 2018 17:34:53 +0000 (17:34 +0000)]
docs: fixed typo
am: 3639e2f929

Change-Id: I6f7381045bb25fdcc9f86e3e2dd0d7b8c4eda853

6 years agoPublic volumes are only visible to mounted user.
Jeff Sharkey [Tue, 27 Mar 2018 17:30:53 +0000 (11:30 -0600)]
Public volumes are only visible to mounted user.

New lower-level security fixes are blocking access, so make these
upper-level APIs reflect those properties.

Test: manual
Bug: 68857050
Change-Id: I81160755180f4f419d8577ea1f18a6ece10c560c

6 years agoMerge "Do not create snapshot on first init" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:28:32 +0000 (17:28 +0000)]
Merge "Do not create snapshot on first init" into pi-dev

6 years agoRevert "Unhide enable_apps carrier config key."
Meng Wang [Fri, 23 Mar 2018 23:25:03 +0000 (16:25 -0700)]
Revert "Unhide enable_apps carrier config key."

This reverts commit 4793b28d3f2a65492aa7049c5e6e77c1cdbbb1a3.

Reason for revert: This is not intended as a public API.

Bug: 62907095
Test: make
Change-Id: Id79f91c72eac3929fa5ee7ac1cdd9df8671a1eb1
(cherry picked from commit f47a426206cd89d49df8369eaa98a685365a62ed)

6 years agodocs: fixed typo
Joshua Baxter [Tue, 27 Mar 2018 17:28:05 +0000 (10:28 -0700)]
docs: fixed typo

Test: make ds-docs

Bug: 36944055
Change-Id: I52c6d6404340ada5a18b99fd37a2f1d75af00677

6 years agoMerge "Use transaction for local activity relaunch" into pi-dev
Andrii Kulian [Tue, 27 Mar 2018 17:24:42 +0000 (17:24 +0000)]
Merge "Use transaction for local activity relaunch" into pi-dev

6 years agoMerge "[Magnifier-35] Do not show when text is large" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:20:12 +0000 (17:20 +0000)]
Merge "[Magnifier-35] Do not show when text is large" into pi-dev

6 years agoUsing an intent-action instead of a fixed compoenent for quick-step service
Sunny Goyal [Tue, 27 Mar 2018 17:14:49 +0000 (10:14 -0700)]
Using an intent-action instead of a fixed compoenent for quick-step service

Bug: 76856007
Test: Verified everything builds and works
Change-Id: Ia8258356f84edc9fddc9ac1d2787ffde25c2ecf0

6 years ago[Notif] Add Blocking helper to swipe
Rohan Shah [Thu, 15 Mar 2018 21:40:02 +0000 (14:40 -0700)]
[Notif] Add Blocking helper to swipe

Implemented blocking helper UI as part of guts - the
ExpandableNotificationRow that's swiped away is effectively detached
from the notification logic but kept in as a view in the layout (it'll
still show up when looping through the normal view hierarchy). We
purposefully open up NotificationInfo with the intent of showing it as
the blocking helper.

It's animated away/closed when the user interacts with any other content
or swipes away, as with guts (Can be changed in the future if we want it
to stick around for longer).

KIs, that will be tracked in bugs once CL is in:
- Swiping a notification if it's partially hidden by the shelf does not
bring it up into focus
- If only one notification is showing, the shade auto-closes as if it
didn't have any notifications (which it technically doesn't)
- Animation on multiple blocking helper shows cuts too early and doesn't
allow the notification to transition out
- Long press on notification dismisses (it should probably ignore it)
- Metrics are still missing
- Accessibility needs a runthrough

Bug: 63095540,73783854
Test: Visually & Ran all tests
Change-Id: Iaa5e3d5537bbb72c946fdd7ee35b155e22ca2b05

6 years agoMerge "Priority only dnd doesn't change ringer" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:14:17 +0000 (17:14 +0000)]
Merge "Priority only dnd doesn't change ringer" into pi-dev

6 years agoDon't let callers OOM the system process.
Jeff Sharkey [Tue, 27 Mar 2018 17:09:16 +0000 (11:09 -0600)]
Don't let callers OOM the system process.

Constrain our default history size to 180 days; if we end up needing
more, we'll dynamically grow the history object.

Test: manual
Bug: 70916680
Change-Id: Id885f9800ad8f45fb0c1a89dab5a4b10ffd9e2f2

6 years agoDocs: add more detail to SurfaceTexture#getTimestamp
Jesse Hall [Fri, 23 Mar 2018 16:43:42 +0000 (09:43 -0700)]
Docs: add more detail to SurfaceTexture#getTimestamp

Copies language from <android/surface_texture.h> that connects
EGL/Vulkan presentation timestamps to SurfaceTexture#getTimestamp.

In the process, reorganized the existing language to talk about
general properties of the timestamp, and then talk about behavior of
specific producers instead of mixing them together.

Bug: 72755997
Test: make docs
Change-Id: I88253f9e23df7d7c4fe3c1c51ff2ac494da1913c
(cherry picked from commit 63d2a0e00005e9b5bb6e62d752a23ef2e43b03d4)

6 years agoMerge "[Notif] Disable long click listener after dismiss" into pi-dev
Rohan Shah [Tue, 27 Mar 2018 17:06:51 +0000 (17:06 +0000)]
Merge "[Notif] Disable long click listener after dismiss" into pi-dev

6 years agoMerge "Downgrade OOB warning of priv app to warning" into pi-dev
Victor Hsieh [Tue, 27 Mar 2018 17:04:01 +0000 (17:04 +0000)]
Merge "Downgrade OOB warning of priv app to warning" into pi-dev

6 years agoMerge "Add serialization methods to hidden API light greylist" into pi-dev
David Brazdil [Tue, 27 Mar 2018 16:55:18 +0000 (16:55 +0000)]
Merge "Add serialization methods to hidden API light greylist" into pi-dev

6 years agoAdd serialization methods to hidden API light greylist
David Brazdil [Mon, 26 Mar 2018 15:02:23 +0000 (16:02 +0100)]
Add serialization methods to hidden API light greylist

This patch adds a build-time rule that adds all members with signatures:
  readObject(Ljava/io/ObjectInputStream;)V
  readObjectNoData()V
  readResolve()Ljava/lang/Object;
  serialVersionUID:J
  serialPersistentFields:[Ljava/io/ObjectStreamField
  writeObject(Ljava/io/ObjectOutputStream;)V
  writeReplace()Ljava/lang/Object;
to the hidden API light greylist. This is needed so that apps can retain
the ability to write their own serializers.

Bug: 64382372
Bug: 73255398
Test: make
Change-Id: I0103f47044e957bbff0a39230ff53562f3feddac

6 years agoMerge "Clear calling identity in finish callback" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:44:26 +0000 (16:44 +0000)]
Merge "Clear calling identity in finish callback" into pi-dev

6 years agoMerge "Disable long press recents whenever overview service is bound" into pi-dev
Winson Chung [Tue, 27 Mar 2018 16:43:55 +0000 (16:43 +0000)]
Merge "Disable long press recents whenever overview service is bound" into pi-dev

6 years agoMerge "Update onboarding based on swipe up state" into pi-dev
Winson Chung [Tue, 27 Mar 2018 16:43:14 +0000 (16:43 +0000)]
Merge "Update onboarding based on swipe up state" into pi-dev

6 years agoFix statsd logging in BatteryStats (nesting prob.)
Bookatz [Mon, 26 Mar 2018 20:03:50 +0000 (13:03 -0700)]
Fix statsd logging in BatteryStats (nesting prob.)

Several statsd atoms are not logged correctly from batterystats, due to
possible nesting issues (batterystats only reports a single stop at the
end, whereas statsd expects each stop, resulting in statsd thinking that
the event is still continuing). This cl fixes those.

Bug: 69478888
Test: current ones still pass
Change-Id: I3ae8d7cc3d2eec7d4ab2721c83d208384adbf690

6 years agoMerge "API council requested tweaks to JobInfo." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:25:23 +0000 (16:25 +0000)]
Merge "API council requested tweaks to JobInfo." into pi-dev

6 years agoSupport sliced condition change in GaugeMetric
Yao Chen [Thu, 22 Mar 2018 22:21:52 +0000 (15:21 -0700)]
Support sliced condition change in GaugeMetric

TODO: We need CTS to verify the behavior.

Bug: 73958484
Test: statsd_test
Change-Id: I56406983ddede12bc6a2e12188693a0c51ccae5c

6 years agoMerge "Whitelisting Launcher3 for hidden APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:06:54 +0000 (16:06 +0000)]
Merge "Whitelisting Launcher3 for hidden APIs" into pi-dev

6 years agoModify Open Mobile API to follow Android API guidelines
Ruchi Kandoi [Thu, 22 Mar 2018 18:06:36 +0000 (11:06 -0700)]
Modify Open Mobile API to follow Android API guidelines

- Add @Nullable/@NonNull to input arguments for APIs
- Remove deprecated methods openBasicChannel(aid) and
  openLogicalChannel(aid)
- SecureElementListener is converted to a stand-alone interface
- serviceConnected() callback is renamed to onServiceConnected()

Bug: 64994044
Test: Run Cts Test
Change-Id: I503044a26a81dae8befb87fb8e8ac96d19de883b
(cherry picked from commit d785fc4f6d238fcab6e2dbfbf53a57e14f248ec4)

6 years agoMerge "[QS] Change spacing for QQS in landscape" into pi-dev
Rohan Shah [Tue, 27 Mar 2018 15:38:26 +0000 (15:38 +0000)]
Merge "[QS] Change spacing for QQS in landscape" into pi-dev

6 years ago[Magnifier-35] Do not show when text is large
Mihai Popa [Wed, 21 Mar 2018 19:45:06 +0000 (19:45 +0000)]
[Magnifier-35] Do not show when text is large

There is no point in displaying the magnifier when the text is large
enough. In this CL we are using the font metrics of the TextView to
decide whether the magnifier should be displayed or not.

Bug: 70608551
Test: manual testing
Change-Id: Icb2fb4412b6b930dfb3322e51fd0139152cf9d39

6 years agoAdd exception catching for BlockedNumberContract methods used by Telecom.
Tyler Gunn [Mon, 26 Mar 2018 22:49:23 +0000 (22:49 +0000)]
Add exception catching for BlockedNumberContract methods used by Telecom.

The content resolver can throw in some instances when using the blocked
number provider.  Rather than crashing all of telecom, adding exception
handling to provide graceful fallback in these cases.

Test: Compile / build
Bug: 74965829
Merged-In: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
Change-Id: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
(cherry picked from commit b408ebe55737438ac257872cb7f26e21701ec459)

6 years agoMerge "Handle insets for letterboxing correctly" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 15:10:27 +0000 (15:10 +0000)]
Merge "Handle insets for letterboxing correctly" into pi-dev

6 years agoDowngrade OOB warning of priv app to warning
Victor Hsieh [Tue, 27 Mar 2018 14:22:32 +0000 (07:22 -0700)]
Downgrade OOB warning of priv app to warning

We can't enforce priv apps to uncompress .dex and .so just yet until all
priv apps from Play have done so.

Also fix the wrong default value.

Test: build
Bug: 76440172
Bug: 63920015
Change-Id: I98ab7272702c1693752f8e4ecb53e1b1eb5e1f35

6 years agoMerge "Fix broken test RecoverySnapshotStorageTest" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:55:46 +0000 (14:55 +0000)]
Merge "Fix broken test RecoverySnapshotStorageTest" into pi-dev

6 years agoMerge "Suppress expected exception due to missing network_watchlist.xml" into pi-dev
Ricky Wai [Tue, 27 Mar 2018 14:48:52 +0000 (14:48 +0000)]
Merge "Suppress expected exception due to missing network_watchlist.xml" into pi-dev

6 years agoMerge "Added safeguards for pushed brighntess curve." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:43:14 +0000 (14:43 +0000)]
Merge "Added safeguards for pushed brighntess curve." into pi-dev

6 years agoAPI council requested tweaks to JobInfo.
Jeff Sharkey [Tue, 27 Mar 2018 01:10:02 +0000 (19:10 -0600)]
API council requested tweaks to JobInfo.

Split network estimates into separate download/upload values, and
add missing accessor methods.

Test: none
Bug: 749454087403254174032817
Change-Id: I4c92b8a867690dc4f048701f13142655c3370958