OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add some JobInfo APIs in light grey." into pi-dev
Nicolas Geoffray [Tue, 8 May 2018 16:06:04 +0000 (16:06 +0000)]
Merge "Add some JobInfo APIs in light grey." into pi-dev

6 years agoMerge "Cancel any recents animation whenever a display's stack order changes" into...
Winson Chung [Tue, 8 May 2018 15:51:04 +0000 (15:51 +0000)]
Merge "Cancel any recents animation whenever a display's stack order changes" into pi-dev

6 years agoMerge "Remove ticker text for screenshot saving notification." into pi-dev
android-build-team Robot [Tue, 8 May 2018 15:28:31 +0000 (15:28 +0000)]
Merge "Remove ticker text for screenshot saving notification." into pi-dev

6 years agoMerge "Fix "battery saver" notification keeping coming back." into pi-dev
Makoto Onuki [Tue, 8 May 2018 15:11:57 +0000 (15:11 +0000)]
Merge "Fix "battery saver" notification keeping coming back." into pi-dev

6 years agoAdd some JobInfo APIs in light grey.
Nicolas Geoffray [Tue, 8 May 2018 15:04:30 +0000 (16:04 +0100)]
Add some JobInfo APIs in light grey.

bug: 79258941
Test: m
Change-Id: Ief508c5785482a28ee0262cc168b01d3b632fbfa

6 years agoMerge "Adding batterystats history to proto dump." into pi-dev
android-build-team Robot [Tue, 8 May 2018 14:58:09 +0000 (14:58 +0000)]
Merge "Adding batterystats history to proto dump." into pi-dev

6 years agoMerge "Store package restriction settings at shutdown" into pi-dev
android-build-team Robot [Tue, 8 May 2018 14:22:30 +0000 (14:22 +0000)]
Merge "Store package restriction settings at shutdown" into pi-dev

6 years agoCancel any recents animation whenever a display's stack order changes
Winson Chung [Fri, 4 May 2018 01:03:15 +0000 (18:03 -0700)]
Cancel any recents animation whenever a display's stack order changes

- The recents animation holds a reference to the stack that the recents
  stack was previously behind (before the animation started) and should be
  restored behind after the animation ends. Due to the ordering of events,
  it is possible for a call to cancelRecentsAnimation() to come in after
  we have started the transition to home

  ie.
  1) in app A
  2) touch down on home button -> start recents animation, home stack
     saves A stack as the one to restore behind if animation doesn't
     finish
  3) touch up to trigger button -> PWM to start home activity and
     simultaneously proxies the motion even to launcher which happens to
     call cancelRecentsAnimation (as a part of a catch all)
  4) PWM start activity -> move home stack to top
  5) cancelRecentsAnimation from launcher will try to restore the home
     stack behind A, when the rest of the system has already thought
     that the home stack was already moved to the front and focused

  Instead of depending on any particular ordering of events, we can just
  cancel the recents animation (without reordering) whenever the display's
  stacks change so as not to affect any upcoming changes. There is only
  one stack order changed listener (the recents animation, and there can
  only be one animation at a time; the previous animation is always
  canceled and unregisters the listener when cleaning up.
- Revert the old workaround for Beta 1 in PWM as it doesn't catch other
  cases
- Removed confusing code suggesting that we were using a non-default
  display (we are always only ever doing this animation for the default
  display since that's where we resolved the target stack).

Bug: 73188263
Test: Was able to repro by artificially calling cancelRecentsAnimation
      immediately after starting home (and also by swiping up, holding,
      then invoking the home via adb (to trigger start activity) and then
      releasing (to trigger cancelRecentsAnimation)). Ensure that case
      now works.
Test: atest FrameworksServicesTests:RecentsAnimationTest
Test: atest FrameworksServicesTests:ActivityStackTests

Change-Id: Iec1a29b5bb53737b4be3f1a3719c4e7c26313a11

6 years agoMerge "AOD padding animation should match slice" into pi-dev
android-build-team Robot [Tue, 8 May 2018 05:52:36 +0000 (05:52 +0000)]
Merge "AOD padding animation should match slice" into pi-dev

6 years agoMerge "Reload wallpaper after user unlock." into pi-dev
Wei Sheng Shih [Tue, 8 May 2018 04:13:35 +0000 (04:13 +0000)]
Merge "Reload wallpaper after user unlock." into pi-dev

6 years agoMerge "Make TelecomManager#endCall a public API." into pi-dev
Tyler Gunn [Tue, 8 May 2018 04:01:35 +0000 (04:01 +0000)]
Merge "Make TelecomManager#endCall a public API." into pi-dev

6 years agoMerge changes from topic "change-shared-user-apk-cert-pi-dev" into pi-dev
Bryan Henry [Tue, 8 May 2018 03:08:19 +0000 (03:08 +0000)]
Merge changes from topic "change-shared-user-apk-cert-pi-dev" into pi-dev

* changes:
  Allow changing signing cert for system apps that use shared users
  Revert "Allow shared users to rotate signing certs in an OTA"

6 years agoMerge "Update text size of overflow number view" into pi-dev
android-build-team Robot [Tue, 8 May 2018 01:47:14 +0000 (01:47 +0000)]
Merge "Update text size of overflow number view" into pi-dev

6 years agoUpdate text size of overflow number view
dongwan0605.kim [Sun, 6 May 2018 09:04:52 +0000 (18:04 +0900)]
Update text size of overflow number view

When density or font size is updated, overflow number view's size
was not updated.

Test: Group notification with overflow number existing
> Change density or font size > Check overflow number view's size

Change-Id: I6f464b12f83b954f7fbfdd5d64153598b5407e08
Fixes: 79350890

6 years agoMerge "Reset the profile when system application change version." into pi-dev
android-build-team Robot [Tue, 8 May 2018 01:31:52 +0000 (01:31 +0000)]
Merge "Reset the profile when system application change version." into pi-dev

6 years agoAdding batterystats history to proto dump.
Kweku Adams [Mon, 16 Apr 2018 23:54:24 +0000 (16:54 -0700)]
Adding batterystats history to proto dump.

It will only print out a dump for userdebug or eng builds.

Bug: 77727638
Test: flash device and check output of incident proto and
'dumpsys batterystats -c --history'

Merged-In: Ib74d4c664f23a61e6fc33f700ba6a3c6fad32c74
Change-Id: Ia0c993d1281cc350d93f9c13f5540b349a4bfb84

6 years agoMerge "AudioFocusRequest: fix doc for focus listener dispatch" into pi-dev
Jean-Michel Trivi [Tue, 8 May 2018 00:53:02 +0000 (00:53 +0000)]
Merge "AudioFocusRequest: fix doc for focus listener dispatch" into pi-dev

6 years agoStore package restriction settings at shutdown
Tetsutoki Shiozawa [Wed, 25 Nov 2015 14:02:36 +0000 (23:02 +0900)]
Store package restriction settings at shutdown

Symptom:
Disabled package was re-enabled by restarting a device.

Root cause:
PMS postpones storing the package restriction settings in 10
seconds by design. When a package gets disabled right before
shutdown, PMS fails to store the last changes.

Solution:
Store package restriction settings at shutdown.

Test: Manually:
1. Run "pm suspend <package-name>"
2. Press power and reboot device within 10 seconds
3. Verify that <package-name> remains suspended

BUG: 7344774479209078
Change-Id: I4fe76c1f003e51653304cfaeaa5129d84803ce1e
Merged-In: I4fe76c1f003e51653304cfaeaa5129d84803ce1e

6 years agoMerge "Expose media projection consent UI to instant apps" into pi-dev
Svetoslav Ganov [Tue, 8 May 2018 00:26:03 +0000 (00:26 +0000)]
Merge "Expose media projection consent UI to instant apps" into pi-dev

6 years agoReset the profile when system application change version.
Hyangseok Chae [Sun, 1 Apr 2018 23:23:31 +0000 (08:23 +0900)]
Reset the profile when system application change version.

Background optimization has flag checkProfiles as true,
performDexOptLI check profile is updated with checkProfiles.
(isProfileUpdated() -> mergeProfiles -> analyze_profiles())
analyze_profiles decides if it is need to compile and clear
the profile or not. But analyze_profiles and profman merge
only based on existing profiles. Eventhough checksum of
application dex was changed, profman only check the profile
can be merge or not.

With below TC, the return value of profman is PROFMAN_BIN_
RETURN_CODE_SKIP_COMPILATION(1). Because current profile
has not enough informations than reference profile.
I think ProcessProfilesInternal should consider change
of dex checksum, If there are mismatch checksum of dex
between profiles and dex, then profman should return with
PROFMAN_BIN_RETURN_CODE_BAD_PROFILES (2).
After that analyze_profiles can reset profiles with
PROFMAN_BIN_RETURN_CODE_BAD_PROFILES.

But profman does not have that implemtation for verify
the profile based on checksum. So, It is need to drop
the profile based on change of application version.

Test: System update
1. Factory Image with system application. (vendor, system app)
2. Use Sample application to generage current profile.
3. BackgroundDexOptService optimize with speed-profile.
4. Use Sample application to generage current profile.
5. There are small size of current profile and large size
    of reference profile.
6. System update with application change.
7. Reboot.
8. Next background optimization would be fail permanently.

Bug: 77839992

Change-Id: Iac575ae5906498a59b750df0b281fab01df57b3e

6 years agoAOD padding animation should match slice
Lucas Dupin [Mon, 7 May 2018 23:00:11 +0000 (16:00 -0700)]
AOD padding animation should match slice

Top padding animates when a new notification arrives and same duration
should be used, otherwise elements would overlap.

Test: visual
Bug: 76110106
Change-Id: I016a796df93fd1b6852922bc646f616c68ec624e

6 years agoRemove ticker text for screenshot saving notification.
Alison Cichowlas [Tue, 1 May 2018 13:56:37 +0000 (09:56 -0400)]
Remove ticker text for screenshot saving notification.

Info here is duplicated in the context text, and was read twice for a11y.

Test: Manual, with TalkBack - trigger several SS notifications.
Bug: 77585533
Change-Id: I369c749df3030536f7118661262228d1882ab1b8

6 years agoMerge "Unsuspending packages on suspending app data clear" into pi-dev
android-build-team Robot [Mon, 7 May 2018 23:59:15 +0000 (23:59 +0000)]
Merge "Unsuspending packages on suspending app data clear" into pi-dev

6 years agoMerge "Fixes statsd returning too much data at once." into pi-dev
Yang Lu [Mon, 7 May 2018 23:49:54 +0000 (23:49 +0000)]
Merge "Fixes statsd returning too much data at once." into pi-dev

6 years agoMerge "Fixes first jump of dividerview when invoking splitscreen" into pi-dev
android-build-team Robot [Mon, 7 May 2018 23:39:05 +0000 (23:39 +0000)]
Merge "Fixes first jump of dividerview when invoking splitscreen" into pi-dev

6 years agoMerge "Fix build break" into pi-dev
Lin Guo [Mon, 7 May 2018 22:41:07 +0000 (22:41 +0000)]
Merge "Fix build break" into pi-dev

6 years agoFix build break
Lin Guo [Mon, 7 May 2018 22:01:40 +0000 (15:01 -0700)]
Fix build break

Remove the androidx.annotation.DrawableRes import

BUG:79371277
Test: manual
Change-Id: Ic4c5bf799d2ed9a15ed50a3f8c91bb804ad5cbbb

6 years agoMerge "Remove the clock view when DISABLE_CLOCK is set" into pi-dev
android-build-team Robot [Mon, 7 May 2018 22:05:40 +0000 (22:05 +0000)]
Merge "Remove the clock view when DISABLE_CLOCK is set" into pi-dev

6 years agoMerge "Simulate handling of event when throttling" into pi-dev
android-build-team Robot [Mon, 7 May 2018 21:59:57 +0000 (21:59 +0000)]
Merge "Simulate handling of event when throttling" into pi-dev

6 years agoMerge "New FIELD_AUTOFILL_COMPAT_MODE field." into pi-dev
android-build-team Robot [Mon, 7 May 2018 21:59:24 +0000 (21:59 +0000)]
Merge "New FIELD_AUTOFILL_COMPAT_MODE field." into pi-dev

6 years agoMerge "WindowManager: Emit windows from forAllWindows closer to Z-order" into pi-dev
Rob Carr [Mon, 7 May 2018 21:48:31 +0000 (21:48 +0000)]
Merge "WindowManager: Emit windows from forAllWindows closer to Z-order" into pi-dev

6 years agoUnsuspending packages on suspending app data clear
Suprabh Shukla [Sat, 28 Apr 2018 02:30:30 +0000 (19:30 -0700)]
Unsuspending packages on suspending app data clear

A suspending app loses all app data, jobs, alarms, etc. when its data is
cleared. The packages it suspended should get unsuspended so the device
is not left in an inconsistent state.
Also simplifying the permission check to block any cross user calls not
from system or root.

Test: Manual test by suspending with com.android.frameworks.servicestests
and then clearing data via Settings and also "adb shell pm clear"

Bug: 77801553
Change-Id: I20424322b5917f3b87e2cf48a6444de9f242d311

6 years agoMerge "Update date during time tick event" into pi-dev
Lucas Dupin [Mon, 7 May 2018 21:39:52 +0000 (21:39 +0000)]
Merge "Update date during time tick event" into pi-dev

6 years agoMerge "Re-enable the logging of APP_BREADCRUMB_REPORTED atom" into pi-dev
Howard Ro [Mon, 7 May 2018 21:26:47 +0000 (21:26 +0000)]
Merge "Re-enable the logging of APP_BREADCRUMB_REPORTED atom" into pi-dev

6 years agoMerge "Refactor CarVolumeDialogImpl to use CarAudioManager" into pi-dev
Lin Guo [Mon, 7 May 2018 21:12:19 +0000 (21:12 +0000)]
Merge "Refactor CarVolumeDialogImpl to use CarAudioManager" into pi-dev

6 years agoFix "battery saver" notification keeping coming back.
Makoto Onuki [Mon, 7 May 2018 20:56:40 +0000 (13:56 -0700)]
Fix "battery saver" notification keeping coming back.

We have a delete intent set on this notification and but apparently
in this case it wasn't delivered or delayed. So add an extra check to make sure
we don't post it more than needed.

Also set FLAG_RECEIVER_FOREGROUND to pending broadcasts to make sure it won't
delayed too much.

Fixes: 79313125
Test: Manual test with:
1. Clear all battery saver settings
adb shell settings delete global low_power
adb shell settings delete global low_power_sticky
adb shell settings delete global low_power_trigger_level
adb shell settings delete secure low_power_manual_activation_count
adb shell settings delete secure low_power_warning_acknowledged
adb shell settings delete secure suppress_auto_battery_saver_suggestion
2. ./development/scripts/battery_simulator.py and set level to 10

3. Dismiss battery saver notification

Change-Id: I659fdb8a4dc8136e6c159fb566f30642c8a53fb2

6 years agoMerge "Fixed the historic messaging experience" into pi-dev
Selim Cinek [Mon, 7 May 2018 20:48:38 +0000 (20:48 +0000)]
Merge "Fixed the historic messaging experience" into pi-dev

6 years agoMerge "Ensure GL & Gralloc both support FP16 before using it" into pi-dev
John Reck [Mon, 7 May 2018 20:26:02 +0000 (20:26 +0000)]
Merge "Ensure GL & Gralloc both support FP16 before using it" into pi-dev

6 years agoMerge "Fixed the padding when the sender name was empty" into pi-dev
Selim Cinek [Mon, 7 May 2018 19:51:59 +0000 (19:51 +0000)]
Merge "Fixed the padding when the sender name was empty" into pi-dev

6 years agoMerge "[Lock screen] Add a11y string for password" into pi-dev
android-build-team Robot [Mon, 7 May 2018 19:50:17 +0000 (19:50 +0000)]
Merge "[Lock screen] Add a11y string for password" into pi-dev

6 years agoMerge "Bluetooth: Fix HFP SCO logic and documentation" into pi-dev
android-build-team Robot [Mon, 7 May 2018 19:45:34 +0000 (19:45 +0000)]
Merge "Bluetooth: Fix HFP SCO logic and documentation" into pi-dev

6 years agoMerge "Clear references to animation runner when the animation ends." into pi-dev
android-build-team Robot [Mon, 7 May 2018 19:34:59 +0000 (19:34 +0000)]
Merge "Clear references to animation runner when the animation ends." into pi-dev

6 years agoWindowManager: Emit windows from forAllWindows closer to Z-order
Robert Carr [Wed, 25 Apr 2018 22:06:07 +0000 (15:06 -0700)]
WindowManager: Emit windows from forAllWindows closer to Z-order

Otherwise IME windows will be reported as under the docked divider.

Bug: 77526241
Test: Manual. WindowContainerTraversalTests.
Change-Id: I008e253464b36c61973f49c7992352fb96649dc1

6 years agoNew FIELD_AUTOFILL_COMPAT_MODE field.
Felipe Leme [Mon, 7 May 2018 17:18:47 +0000 (10:18 -0700)]
New FIELD_AUTOFILL_COMPAT_MODE field.

This field is used on pretty much all Autofill metrics, except
AUTOFILL_USERDATA_UPDATED, AUTOFILL_SERVICE_DISABLED_SELF, and
AUTOFILL_INVALID_PERMISSION.

Test: atest CtsAutoFillServiceTestCases
Test: adb shell logcat -b events | grep sysui

Bug: 79351659

Change-Id: I2e2f3dcc780a3896162b158926f5ee89c7cb342d

6 years agoFixes first jump of dividerview when invoking splitscreen
Matthew Ng [Mon, 7 May 2018 19:11:13 +0000 (12:11 -0700)]
Fixes first jump of dividerview when invoking splitscreen

The divider's position at the beginning is set to empty rect because
splitscreen is not ready yet so it sets the previous position that is
empty rect. In this case, the divider is positioned when splitscreen is
not ready yet but divider becomes visible so it shows this jump. If
the divider was set to splitscreen ignoring visibility then the divider
will be positioned correctly.

Change-Id: Ic959a4ade89d07ccfeeb8179e2f08e34d31860d6
Fixes: 79262454
Test: reboot, invoke splitscreen via overview

6 years agoUpdate date during time tick event
Lucas Dupin [Sat, 5 May 2018 00:42:33 +0000 (17:42 -0700)]
Update date during time tick event

Remove extra broadcast action and use existing doze_time_tick alarm to
update slice.

Change-Id: If167c8d81e5f5a67050d7904ce2497c1bdb70e9a
Fixes: 77988364
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardStatusViewTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java

6 years agoRemove the clock view when DISABLE_CLOCK is set
Evan Laird [Fri, 4 May 2018 15:58:30 +0000 (11:58 -0400)]
Remove the clock view when DISABLE_CLOCK is set

Gets rid of Floating Notification Syndromeâ„¢

The easiest way to see this is launching SUW or pinned-task mode with
debug.layout set to true, and see that there is no box containing the
clock in these modes

Test: visual;
Change-Id: I518bc04d2dca2fb56f13e0cebc475929edaf2c48
Fixes: 77630482

6 years agoMerge "Show up to 8 icons before eliding; fix animations" into pi-dev
android-build-team Robot [Mon, 7 May 2018 18:08:23 +0000 (18:08 +0000)]
Merge "Show up to 8 icons before eliding; fix animations" into pi-dev

6 years agoMerge "a11y edits to dnd dialog and volume ring toggle" into pi-dev
android-build-team Robot [Mon, 7 May 2018 18:05:28 +0000 (18:05 +0000)]
Merge "a11y edits to dnd dialog and volume ring toggle" into pi-dev

6 years agoMerge "Clearer GnssDebug text output" into pi-dev
android-build-team Robot [Mon, 7 May 2018 18:01:40 +0000 (18:01 +0000)]
Merge "Clearer GnssDebug text output" into pi-dev

6 years agoMerge "Added toggle overview custom action over home button for a11y" into pi-dev
android-build-team Robot [Mon, 7 May 2018 17:17:10 +0000 (17:17 +0000)]
Merge "Added toggle overview custom action over home button for a11y" into pi-dev

6 years agoClear references to animation runner when the animation ends.
Winson Chung [Mon, 7 May 2018 17:06:55 +0000 (10:06 -0700)]
Clear references to animation runner when the animation ends.

Bug: 79322746
Test: Swipe up, ensure that there are no references from the system to the
      launcher animation runner

Change-Id: Ib0fd59c20ab9f9b24dfad732519d33c4a8a148e3

6 years agoEnsure GL & Gralloc both support FP16 before using it
John Reck [Fri, 4 May 2018 22:55:33 +0000 (15:55 -0700)]
Ensure GL & Gralloc both support FP16 before using it

Change-Id: I3bda750b6011d9a69969fc938a230c2445ee8dae
Merged-In: Id8a53885178d698c7b2fd6fc5ea8d4e36ce2ef15
Fixes: 77973662
Test: builds & CTS passes

6 years agoMerge "wifi.proto: Add metrics for radio mode change" into pi-dev
android-build-team Robot [Mon, 7 May 2018 16:49:25 +0000 (16:49 +0000)]
Merge "wifi.proto: Add metrics for radio mode change" into pi-dev

6 years agoMerge "Don't be clever with strings" into pi-dev
android-build-team Robot [Mon, 7 May 2018 16:10:34 +0000 (16:10 +0000)]
Merge "Don't be clever with strings" into pi-dev

6 years agoMerge "Align account icon size of ChooseAccountTypeActivity" into pi-dev
android-build-team Robot [Mon, 7 May 2018 15:54:52 +0000 (15:54 +0000)]
Merge "Align account icon size of ChooseAccountTypeActivity" into pi-dev

6 years agowifi.proto: Add metrics for radio mode change
Roshan Pius [Tue, 24 Apr 2018 23:30:13 +0000 (16:30 -0700)]
wifi.proto: Add metrics for radio mode change

Bug: 69117051
Test: Unit tests
Change-Id: Ia3df096a4368cdf1d2c254a4610b204dfb0e3778

6 years agoShow up to 8 icons before eliding; fix animations
Evan Laird [Fri, 4 May 2018 20:14:00 +0000 (16:14 -0400)]
Show up to 8 icons before eliding; fix animations

Show up to 8 (including battery) system icons, and after 8 show 7 icons
and only 1 etc dot

Test: visual
Change-Id: I4c1eeb2bd6afd9d5a1aed3358919f0d29ef2a084
Fixes: 79165032

6 years agoDon't be clever with strings
Julia Reynolds [Mon, 7 May 2018 13:42:38 +0000 (09:42 -0400)]
Don't be clever with strings

The app ops strings were not translating well, leading to
crashes in some languages

Test: atest SystemUITests
Change-Id: Iee18504217c5c13543ad130f502695e3919d7ddf
Fixes: 77640411

6 years agoGreylist updates from bugs, Monday edition.
Mathew Inwood [Mon, 7 May 2018 11:33:29 +0000 (12:33 +0100)]
Greylist updates from bugs, Monday edition.

Bug: 70902300
Bug: 73426088
Bug: 77584762
Bug: 78471731
Bug: 79187318
Bug: 79245978
Bug: 79264141
Bug: 79265613
Bug: 79324905
Test: m
Change-Id: I1355518ca1668d79e6d3da3bcd117dc752c85e62

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Mon, 7 May 2018 05:50:27 +0000 (05:50 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Mon, 7 May 2018 05:47:45 +0000 (05:47 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Mon, 7 May 2018 05:47:41 +0000 (05:47 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Mon, 7 May 2018 05:34:14 +0000 (05:34 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoRe-enable the logging of APP_BREADCRUMB_REPORTED atom
yro [Fri, 4 May 2018 20:02:53 +0000 (13:02 -0700)]
Re-enable the logging of APP_BREADCRUMB_REPORTED atom

Bug: 78613419
Test: manual, cts, unit tests
Change-Id: I279158c8031eda3ee648053ae6a0d13fde7f1176

6 years agoMerge "[RTT] Update RTT preamble selection algorithm" into pi-dev
Etan Cohen [Mon, 7 May 2018 03:58:42 +0000 (03:58 +0000)]
Merge "[RTT] Update RTT preamble selection algorithm" into pi-dev

6 years agoAllow changing signing cert for system apps that use shared users
Bryan Henry [Sun, 6 May 2018 20:36:17 +0000 (13:36 -0700)]
Allow changing signing cert for system apps that use shared users

This allows changing the signing certificate of system apps that use
shared users across an OTA, but still verifies that all signatures
within a given boot are consistent for a given shared user.

Bug: 72837107
Bug: 77973716
Bug: 74501739
Test: Flashed dev-keys build into slot b and (local) release-keys build
into slot a, booted into b, then successfully booted into a without
wiping userdata.
Test: Same as above, but treated com.android.mtp (uses android.media UID)
as PRESIGNED during release signing so it kept dev-keys. Verified it
wasn't scanned first and that only that package was rejected.
Test: Same as above, but treated com.android.providers.downloads (uses
android.media UID) as PRESIGNED during release signing so it kept
dev-keys. Verified it was scanned first (out of APKs using this UID) and
that only this package was accepted. Verified other APKs using
android.media UID that were scanned after were rejected.

Change-Id: I2076e8358cae22e45a24aa4c32a1b8dd446679ca

6 years agoMerge "DO NOT MERGE Fix error where androidx targets were being used." into pi-dev
android-build-team Robot [Sat, 5 May 2018 05:16:49 +0000 (05:16 +0000)]
Merge "DO NOT MERGE Fix error where androidx targets were being used." into pi-dev

6 years ago[RTT] Update RTT preamble selection algorithm
Etan Cohen [Fri, 27 Apr 2018 00:49:20 +0000 (17:49 -0700)]
[RTT] Update RTT preamble selection algorithm

Select preamble to use for RTT exchange using IEs advertised by the
AP rather than channel width (which is used as a backup method).

Bug: 69965964
Test: unit test & integration tests
Change-Id: I60ef31c4627795bd4da505f31998b49668d1a115

6 years agoBluetooth: Fix HFP SCO logic and documentation
Jack He [Thu, 3 May 2018 02:10:56 +0000 (19:10 -0700)]
Bluetooth: Fix HFP SCO logic and documentation

AudioService:
* Call setBtScoActiveDevice and setBluetoothScoOn both in AudioService's
  broadcast receiver so that these two methods must be triggerred in
  the same sequence as ACTIVE_DEVICE_CHANGED and AUDIO_STATE_CHANGED
  intents are sent and we no longer need to handle race condition by
  synchronously checking active device in setBluetoothScoOn
* Default sco audio mode when no headset is active should be virtual
  voice call, as many HFP devices do not accept SCO audio without an
  ongoing call
* Synchronize checkScoAudioState() method with mScoClients
* Add helper functions connectBluetoothScoHelper and
  disconnectBluetoothScoHelper to call various SCO setup and tear down
  methods based on sco audio mode
* Try raw, virtual call, and voice recognition mode when disconnecting
  externally started SCO
* Add new sco state SCO_STATE_DEACTIVATING to allow back to back calling
  of startBluetoothSco and stopBluetoothSco

Audio Manager:
* Modified AudioManager logic so that removed devices callback is called
  before newly added devices

BluetoothHeadset:
* Modified BluetoothHeadset so that start and stop SCO using virtual
  voice call no longer need a parameter and will use active device by
  default
* Modified documentation around various sco mangement APIs to match
  their expected behaviors

Bug: 76114959
Test: VoIP calls sanity test cases
Change-Id: Id50db88f4ff36069b0f392c81dd9d90c24cd2206

6 years agoMerge "[AWARE] Update docs for service discovery callbacks" into pi-dev
android-build-team Robot [Sat, 5 May 2018 02:11:03 +0000 (02:11 +0000)]
Merge "[AWARE] Update docs for service discovery callbacks" into pi-dev

6 years agoMerge "Fix spelling errors in BluetoothGatt documentation" into pi-dev
android-build-team Robot [Sat, 5 May 2018 01:29:53 +0000 (01:29 +0000)]
Merge "Fix spelling errors in BluetoothGatt documentation" into pi-dev

6 years agoMerge "Fixed the paddings when replying with inline reply" into pi-dev
Selim Cinek [Sat, 5 May 2018 01:18:28 +0000 (01:18 +0000)]
Merge "Fixed the paddings when replying with inline reply" into pi-dev

6 years agoAudioFocusRequest: fix doc for focus listener dispatch
Jean-Michel Trivi [Sat, 5 May 2018 01:16:11 +0000 (18:16 -0700)]
AudioFocusRequest: fix doc for focus listener dispatch

Bug: 78617702
Test: make offline-sdk-docs
Change-Id: I6eeacfdc309f76295276e271bb5700ec6f89148a

6 years agoDO NOT MERGE Fix error where androidx targets were being used.
Anthony Chen [Sat, 5 May 2018 01:04:58 +0000 (18:04 -0700)]
DO NOT MERGE Fix error where androidx targets were being used.

SystemUI has not been migrated to androidx in pi-dev and should not be
referencing this new namespace.

Bug: 79270323
Test: build and deploy SystemUI
Change-Id: I44ee76137f0413e8abd1f6d6f8e322251a9dffa7

6 years agoAdded toggle overview custom action over home button for a11y
Matthew Ng [Fri, 4 May 2018 18:10:14 +0000 (11:10 -0700)]
Added toggle overview custom action over home button for a11y

The toggle overview custom action only appears when swipe up ui is shown
(2 buttons).

Change-Id: I8b3790c98b663dd04bec921a9f7372733c73ea4e
Fixes: 78177915
Test: use talkback, enable swipe up ui and toggle overview via home btn

6 years ago[Lock screen] Add a11y string for password
Rohan Shah [Fri, 4 May 2018 22:54:19 +0000 (15:54 -0700)]
[Lock screen] Add a11y string for password

Added "device password" a11y string to be consistent with other
callouts such as for the PIN.

Test: Checked talkback string
Fixes: 77605737
Change-Id: Ie27eba47486ecb494693e8f4a9458f398dbabd1c

6 years agoFixes statsd returning too much data at once.
David Chen [Thu, 3 May 2018 17:29:11 +0000 (10:29 -0700)]
Fixes statsd returning too much data at once.

We observe a single ConfigMetricsReportList can be greater than the
safe size for the binder transaction buffer since we only check the
size of the current metrics in progress, but we also return the
previous reports stored on disk.

This change will attempt to send another ConfigMetricsReportList
as soon as possible if there's already a report on disk.

Also fixes a bug when trying to trigger data fetch before the client
has registered the corresponding dataFetchOperation.

Bug: 79201869
Test: Tested manually on marlin-eng
Change-Id: I2d3677162804a27e7a7a95d482d80c46bd994a67

6 years agoMerge "Fixed an issue when pulling down from heads up" into pi-dev
android-build-team Robot [Fri, 4 May 2018 23:51:53 +0000 (23:51 +0000)]
Merge "Fixed an issue when pulling down from heads up" into pi-dev

6 years agoMerge "Fixing a memory leak with notifications" into pi-dev
android-build-team Robot [Fri, 4 May 2018 23:44:27 +0000 (23:44 +0000)]
Merge "Fixing a memory leak with notifications" into pi-dev

6 years agoMerge "Convert RTT background throttle to a settable value (1/2)." into pi-dev
android-build-team Robot [Fri, 4 May 2018 23:40:22 +0000 (23:40 +0000)]
Merge "Convert RTT background throttle to a settable value (1/2)." into pi-dev

6 years agoFixed the padding when the sender name was empty
Selim Cinek [Fri, 4 May 2018 23:22:05 +0000 (16:22 -0700)]
Fixed the padding when the sender name was empty

Certain apps use empty sender names, which looks very
broken. Let me do this one last workaround...

Change-Id: I958319d1e4f9387e5e05afb304c05bef55c3e2fb
Fixes: 73139872
Test: receive a message with empty sender, observe visually

6 years agoFix spelling errors in BluetoothGatt documentation
Stanley Tng [Thu, 3 May 2018 15:50:49 +0000 (08:50 -0700)]
Fix spelling errors in BluetoothGatt documentation

Correct "paramter" to "parameter". Correct "connectoin" to connection.

Bug: 79198797
Test: Compile
Change-Id: I98646eec66da2aaa6f74ae2db35ea914c6a105a1
(cherry picked from commit 505c05839b8b28c5c465c2a537cf3da8a2004e63)

6 years agoMerge "Suppress the first volume adjustment" into pi-dev
android-build-team Robot [Fri, 4 May 2018 22:56:22 +0000 (22:56 +0000)]
Merge "Suppress the first volume adjustment" into pi-dev

6 years agoFixed the paddings when replying with inline reply
Selim Cinek [Fri, 4 May 2018 22:46:18 +0000 (15:46 -0700)]
Fixed the paddings when replying with inline reply

The paddings weren't applied properly when we were
sending and when heads-upped since the view wasn't
actually focused and we didn't get an update anymore.

Test: inline reply from HUN, normal, observe normal paddings
Change-Id: I0e0422b5f6ca3ed9a53b4b665016791d6ca0f68f
Fixes: 73819283

6 years agoMerge "Properly prepare system server profiles" into pi-dev
Calin Juravle [Fri, 4 May 2018 22:46:15 +0000 (22:46 +0000)]
Merge "Properly prepare system server profiles" into pi-dev

6 years agoWifiConfiguration: Fix documentation for SSID
Roshan Pius [Thu, 3 May 2018 18:32:55 +0000 (11:32 -0700)]
WifiConfiguration: Fix documentation for SSID

SSID strings can be UTF-8 encoded. Fix documentation to reflect that.

Bug: 78483295
Test: Compiles
Change-Id: Ib25967a52627a17a13b5d5b418fc3c3c3d05f7c8

6 years agoSuppress the first volume adjustment
Julia Reynolds [Fri, 4 May 2018 19:34:55 +0000 (15:34 -0400)]
Suppress the first volume adjustment

Of the default volume stream

Test: manual
Change-Id: I829cea7080243ba204723a24c24e9158e30c12f4
Fixes: 78562363

6 years agoMerge "Add DND indicator to AOD" into pi-dev
android-build-team Robot [Fri, 4 May 2018 21:45:36 +0000 (21:45 +0000)]
Merge "Add DND indicator to AOD" into pi-dev

6 years ago[automerger skipped] Merge "Osu: fixed Mismatch between createFromParcel and writeToP...
Ecco Park [Fri, 4 May 2018 21:27:07 +0000 (14:27 -0700)]
[automerger skipped] Merge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev am: a13c8187c8 am: 8720a5e1b7
am: b3e9029c91  -s ours

Change-Id: I64bfb8fd033d5d4482b7c2f322089a78d2226fb8

6 years agoMerge "Fixed an animation issue with Smart Replies" into pi-dev
android-build-team Robot [Fri, 4 May 2018 21:17:18 +0000 (21:17 +0000)]
Merge "Fixed an animation issue with Smart Replies" into pi-dev

6 years agoMerge "Add clearCallingIdentity for VrManagerService.setVr2dDisplayProperties." into...
Min Xia [Fri, 4 May 2018 21:10:29 +0000 (21:10 +0000)]
Merge "Add clearCallingIdentity for VrManagerService.setVr2dDisplayProperties." into pi-dev

6 years agoSimulate handling of event when throttling
Philip P. Moltmann [Fri, 4 May 2018 20:59:45 +0000 (13:59 -0700)]
Simulate handling of event when throttling

When trottling we need to simulate handling of the event as otherwise
the DSP gets upset and SoundTriggerService and SoundTriggerHelper get
out of sync.

(1) Currently the DSP requires to open and release the AudioRecord if
a event was detected. Hence If we drop and event we need to do the
minimal version of that

(2) If a recognitions is set up with !allowMultipleTriggers the other
parts assume that as soon as one even is handled no further will be
needed. The other parts of the system are not aware of throttling.
Hence even when throttled we have to destroy the service when
!allowMultipleTriggers.

We do this by splitting the ops into three parts.

Setup (always executed): Takes care of problem (2) by checking the flag
and setting the destroy-once-ops-and-handled flag

Execute (not thottled): Send the op to the remote service

Drop (Trottled): Do what is needed if the remote service is not
involved. This handled issue (1)

Test: Caused throttling and saw - AudioRecord started and released
                                - service connection destroyed
Bug: 78212455

Change-Id: I0ff81a7b38d07db1365be7ecc44e93cf329b32d5

6 years agoa11y edits to dnd dialog and volume ring toggle
Beverly [Thu, 3 May 2018 21:32:41 +0000 (17:32 -0400)]
a11y edits to dnd dialog and volume ring toggle

- don't use announce in the dnd enable dialog - instead make the radio
button content a live region
- add hints to volume dialog ring button and edit content descriptions

Change-Id: I4b0db5e9d8dc6df3f48a4eccad1045d7baca4031
Fixes: 78914992
Fixes: 76385188
Test: manual

6 years agoMerge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev...
Ecco Park [Fri, 4 May 2018 20:46:09 +0000 (13:46 -0700)]
Merge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev am: a13c8187c8
am: 8720a5e1b7

Change-Id: I9f7936aeb38e472acbb1246ff160a4ec20aba419

6 years agoProperly prepare system server profiles
Calin Juravle [Thu, 3 May 2018 06:39:19 +0000 (23:39 -0700)]
Properly prepare system server profiles

Update the logic for system server profiles to work without disabling
SELinux policies.

Test: check that system_server profile is created without disabling
SElinux

Bug: 74081010
Change-Id: I8aa1e57da0f8059bcfb149fe7366d8278b4bf516

6 years agoFixed an issue when pulling down from heads up
Selim Cinek [Fri, 4 May 2018 20:42:46 +0000 (13:42 -0700)]
Fixed an issue when pulling down from heads up

When pulling down from above the notification, the heads
up wouldn't become unpinned and the shade expanded instead.
\ 3
Test: pull down from HUN above HUN
Fixes:  78458244

Change-Id: I3bf724f100a3cba1fa09e1de35041e4552ed81ff

6 years agoMerge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev
Ecco Park [Fri, 4 May 2018 20:34:34 +0000 (13:34 -0700)]
Merge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev
am: a13c8187c8

Change-Id: I5ffcd6ba62f2c085f2a9929fadd0366238c9183a

6 years agoMerge "Grant SharedStorageBackup storage access." into pi-dev
android-build-team Robot [Fri, 4 May 2018 20:29:56 +0000 (20:29 +0000)]
Merge "Grant SharedStorageBackup storage access." into pi-dev

6 years agoMerge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev
Ecco Park [Fri, 4 May 2018 20:21:53 +0000 (20:21 +0000)]
Merge "Osu: fixed Mismatch between createFromParcel and writeToParcel" into oc-dev