OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fallback added for HEAVY_CLICK effect" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Fallback added for HEAVY_CLICK effect" into pi-dev

6 years agoMerge "Mapping of haptic constants updated" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Mapping of haptic constants updated" into pi-dev

6 years agoMerge "Add haptic constants" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Add haptic constants" into pi-dev

6 years agoMerge "Don't backup/restore screen brightness" into pi-dev
Annie Meng [Mon, 9 Apr 2018 09:53:48 +0000 (09:53 +0000)]
Merge "Don't backup/restore screen brightness" into pi-dev

6 years agoMerge "Fix crash when modifying Selection" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 09:26:42 +0000 (09:26 +0000)]
Merge "Fix crash when modifying Selection" into pi-dev

6 years agoMerge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreg...
Robin Bennett [Mon, 9 Apr 2018 07:41:20 +0000 (07:41 +0000)]
Merge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreground activity." into pi-dev

6 years agoMerge "Fix the background of lockscreen showing the art work of removed media notific...
Shawn Lin [Mon, 9 Apr 2018 03:58:49 +0000 (03:58 +0000)]
Merge "Fix the background of lockscreen showing the art work of removed media notification" into pi-dev

6 years agoMerge "Remove legacy logger" into pi-dev
Jan Althaus [Sat, 7 Apr 2018 12:06:12 +0000 (12:06 +0000)]
Merge "Remove legacy logger" into pi-dev

6 years agoRemove legacy logger
Jan Althaus [Wed, 4 Apr 2018 17:40:38 +0000 (19:40 +0200)]
Remove legacy logger

Migrate DefaultLogger implementation to SelectionSessionLogger.
This cleans up after the API refactor and fixes two bugs:
- All events are currently logged twice.
- Interfaces accept a null signature, but it currently crashes the legacy logger.

Bug: 73392698
Bug: 77659305
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Test: Manually examined logs
Change-Id: I0d2b925abf5cab12d71fc2cc0fa527530c86ab10

6 years agoMerge "Fixing incomplete RemoteAction clone" into pi-dev
Jan Althaus [Sat, 7 Apr 2018 08:16:28 +0000 (08:16 +0000)]
Merge "Fixing incomplete RemoteAction clone" into pi-dev

6 years agoMerge "Register NetworkRequest callbacks with a handler" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 05:06:52 +0000 (05:06 +0000)]
Merge "Register NetworkRequest callbacks with a handler" into pi-dev

6 years agoMerge "Autofill should clear the UI filter when a value is updated to null." into...
TreeHugger Robot [Sat, 7 Apr 2018 03:59:34 +0000 (03:59 +0000)]
Merge "Autofill should clear the UI filter when a value is updated to null." into pi-dev

6 years agoMerge changes from topic "unwanted" into pi-dev
Lorenzo Colitti [Sat, 7 Apr 2018 02:41:40 +0000 (02:41 +0000)]
Merge changes from topic "unwanted" into pi-dev

* changes:
  Add @param tag for state in queryDetailsForUidTagState.
  Remove unwanted capability code per API council feedback.

6 years agoMerge "AudioFocusRequest: getOnAudioFocusChangeListener in test API" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 02:00:01 +0000 (02:00 +0000)]
Merge "AudioFocusRequest: getOnAudioFocusChangeListener in test API" into pi-dev

6 years agoAutofill should clear the UI filter when a value is updated to null.
Felipe Leme [Thu, 5 Apr 2018 20:43:41 +0000 (13:43 -0700)]
Autofill should clear the UI filter when a value is updated to null.

Test: VirtualContainerActivityCompatModeTest:testDatasetFiltering
Fixes: 77652152

Change-Id: Ifc7b8f759684fe35d1aa9218dd39b8dcf7ac4e4f

6 years agoMerge "Don't request accessibility focus in volume dialog" into pi-dev
Phil Weaver [Sat, 7 Apr 2018 00:47:34 +0000 (00:47 +0000)]
Merge "Don't request accessibility focus in volume dialog" into pi-dev

6 years agoMerge "UI modifications for user picker Test: tested on Mojave bug: 75023449" into...
TreeHugger Robot [Sat, 7 Apr 2018 00:40:28 +0000 (00:40 +0000)]
Merge "UI modifications for user picker Test: tested on Mojave bug: 75023449" into pi-dev

6 years agoMerge "Fix regression in recent task list replacement" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 00:34:54 +0000 (00:34 +0000)]
Merge "Fix regression in recent task list replacement" into pi-dev

6 years agoAudioFocusRequest: getOnAudioFocusChangeListener in test API
Jean-Michel Trivi [Thu, 5 Apr 2018 22:46:06 +0000 (15:46 -0700)]
AudioFocusRequest: getOnAudioFocusChangeListener in test API

Bug: 77651038
Test: CTS AudioFocusTest
Change-Id: I071057f1ed0ed6c56c16182a48191d763d408ae1

6 years agoMerge "Do not animate scrim when ColorFade" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 23:18:27 +0000 (23:18 +0000)]
Merge "Do not animate scrim when ColorFade" into pi-dev

6 years agoMerge "AudioPresentation: Replace @VisibleForTesting with @TestApi" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:52:43 +0000 (22:52 +0000)]
Merge "AudioPresentation: Replace @VisibleForTesting with @TestApi" into pi-dev

6 years agoDon't request accessibility focus in volume dialog
Phil Weaver [Fri, 6 Apr 2018 22:17:17 +0000 (15:17 -0700)]
Don't request accessibility focus in volume dialog

Bug: 72824733
Test: Manually verify that TalkBack no longer announces
the entire contents of the dialog when pressing a volume
key.

Change-Id: I33162ecef8b9ef5e872a0291c5f3188c0c9d3dc1

6 years agoMerge "Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:35:56 +0000 (22:35 +0000)]
Merge "Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL" into pi-dev

6 years agoMerge changes from topic "hid-device-app-name" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:23:39 +0000 (22:23 +0000)]
Merge changes from topic "hid-device-app-name" into pi-dev

* changes:
  Show Bluetooth HID Device connection status in Settings
  Bluetooth: Add hidden API to get current user of HID Device (1/3)

6 years agoMerge "Added nullability annotations to API" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:06:04 +0000 (22:06 +0000)]
Merge "Added nullability annotations to API" into pi-dev

6 years agoMerge "Run layout when exiting window" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 21:45:50 +0000 (21:45 +0000)]
Merge "Run layout when exiting window" into pi-dev

6 years agoMerge "Early wake-up for transitions (2/2)" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 21:44:28 +0000 (21:44 +0000)]
Merge "Early wake-up for transitions (2/2)" into pi-dev

6 years agoAdds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL
Patrick Baumann [Fri, 6 Apr 2018 20:53:25 +0000 (13:53 -0700)]
Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL

Test: manual - launch installed instant app from command line
Change-Id: I0e8532a683e3a68d2c81df222aab673d09c286ed
Fixes: 75967669

6 years agoMerge "Remove clip to padding on the home button parent parent layout" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 21:13:44 +0000 (21:13 +0000)]
Merge "Remove clip to padding on the home button parent parent layout" into pi-dev

6 years agoFix regression in recent task list replacement
Winson Chung [Fri, 6 Apr 2018 17:18:39 +0000 (10:18 -0700)]
Fix regression in recent task list replacement

- Accidentally removed a user check in ag/3762067 when adding the check for
  compatible activity types :(. Added it back and a test to ensure that we
  don't remove tasks that are otherwise identical except belong to
  different users.

Bug: 77661783
Test: atest FrameworksServicesTests:RecentTasksTest
Change-Id: I9a0ec8f62e85e89f97dce615252b4c7635f505f8

6 years agoMerge "Improving jank tests diagnostics" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:57:25 +0000 (20:57 +0000)]
Merge "Improving jank tests diagnostics" into pi-dev

6 years agoMerge "Watch all networks for job invalidation signals." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:52:22 +0000 (20:52 +0000)]
Merge "Watch all networks for job invalidation signals." into pi-dev

6 years agoMerge "Hearing Aid: change get/set active device (3/3)" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:45:21 +0000 (20:45 +0000)]
Merge "Hearing Aid: change get/set active device (3/3)" into pi-dev

6 years agoMerge "Fix another animation leak" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:43:40 +0000 (20:43 +0000)]
Merge "Fix another animation leak" into pi-dev

6 years agoMerge "Add proto output of statsd stats in adb" into pi-dev
Tej Singh [Fri, 6 Apr 2018 20:42:22 +0000 (20:42 +0000)]
Merge "Add proto output of statsd stats in adb" into pi-dev

6 years agoMerge "Turning on proto dumping for stack traces." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:41:01 +0000 (20:41 +0000)]
Merge "Turning on proto dumping for stack traces." into pi-dev

6 years agoMerge "Removed call to setWillNotCacheDrawing and deprecated it as well as willNotCac...
Nader Jawad [Fri, 6 Apr 2018 20:40:46 +0000 (20:40 +0000)]
Merge "Removed call to setWillNotCacheDrawing and deprecated it as well as willNotCacheDrawing as intermediate caching layers are obsolete since hardware accelerated rendering was introduced in API 11" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:40:31 +0000 (20:40 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAdded nullability annotations to API
Selim Cinek [Fri, 6 Apr 2018 19:56:09 +0000 (12:56 -0700)]
Added nullability annotations to API

Certain methods where left out in the new APIs

Change-Id: Ide1e2f387a4918f2134254d862eeff06bfd3a730
Fixes: 74409592
Test: only non-semantic changes

6 years agoAudioPresentation: Replace @VisibleForTesting with @TestApi
Mikhail Naganov [Fri, 6 Apr 2018 20:04:14 +0000 (13:04 -0700)]
AudioPresentation: Replace @VisibleForTesting with @TestApi

This is to fix CTS tests failures.

Bug: 77715867
Test: make
Change-Id: I99a5ff8fab208a0e1f2e889cb7ad256e6ba08437

6 years agoMerge changes Ic0515cec,If547bd96 into pi-dev
Oscar Shu [Fri, 6 Apr 2018 20:17:40 +0000 (20:17 +0000)]
Merge changes Ic0515cec,If547bd96 into pi-dev

* changes:
  metrics: identifying dfs from non dfs scans
  metrics: watchdog connection delay field

6 years agoRegister NetworkRequest callbacks with a handler
Erik Kline [Fri, 6 Apr 2018 06:28:00 +0000 (23:28 -0700)]
Register NetworkRequest callbacks with a handler

Test: as follows
    - builds, flashes, boots
    - settings changes that cause the "x" to appear and disappear
      from the wifi icon don't crash
    - runtest frameworks-net passes (kinda no related)
Bug: 64133961
Bug: 77285360
Change-Id: I8af34d623ce265545a2ec42b56c5e87b4d077f58

6 years agoMerge "WifiConfiguration: Remove a bunch of unused fields" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:54:20 +0000 (19:54 +0000)]
Merge "WifiConfiguration: Remove a bunch of unused fields" into pi-dev

6 years agoMerge "Update NetworkScoreService to use SystemService" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:44:52 +0000 (19:44 +0000)]
Merge "Update NetworkScoreService to use SystemService" into pi-dev

6 years agoUI modifications for user picker
Aarthi Balachander [Fri, 30 Mar 2018 18:15:59 +0000 (11:15 -0700)]
UI modifications for user picker
Test: tested on Mojave
bug: 75023449

Change-Id: Ia991ca9ed9424d0008ca2328f28c0900e8d5653a

6 years agoMerge "Fix ambient display time unit error" into pi-dev
Mike Ma [Fri, 6 Apr 2018 19:32:20 +0000 (19:32 +0000)]
Merge "Fix ambient display time unit error" into pi-dev

6 years agoImproving jank tests diagnostics
Vadim Tryshev [Thu, 5 Apr 2018 20:50:38 +0000 (13:50 -0700)]
Improving jank tests diagnostics

When there were 0 total frames, ProfileData generates something like:
Janky frames: 0 (nan%)

Then the test fails to parse it, and ends up with a mysterious
"Failed to parse NUM_JANKY" diag (see the bug).

Making the case 0/0 a 0%.

Bug: 77528721
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests:android.platform.systemui.tests.jank.LauncherJankTests#testOpenAllAppsContainer
Change-Id: Ib65b80dc689f7b6ee06b108114ffd7de9d739721

6 years agoMerge "Fix support for rendering status icons" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:02:41 +0000 (19:02 +0000)]
Merge "Fix support for rendering status icons" into pi-dev

6 years agoMerge "Add new WifiWake metrics" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:48:27 +0000 (18:48 +0000)]
Merge "Add new WifiWake metrics" into pi-dev

6 years agoMerge "Marking some hidden API as TestApi." into pi-dev
Xiangyu/Malcolm Chen [Fri, 6 Apr 2018 18:32:12 +0000 (18:32 +0000)]
Merge "Marking some hidden API as TestApi." into pi-dev

6 years agoMerge "Add TestApi annotation to AudioEffect, AudioFormat, VolumeShaper" into pi-dev
Andy Hung [Fri, 6 Apr 2018 18:19:48 +0000 (18:19 +0000)]
Merge "Add TestApi annotation to AudioEffect, AudioFormat, VolumeShaper" into pi-dev

6 years agoMerge "Update battery strings to respect user 24 hour setting" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:17:11 +0000 (18:17 +0000)]
Merge "Update battery strings to respect user 24 hour setting" into pi-dev

6 years agoMerge "WifiConfiguration: Modify time display in toString" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:16:36 +0000 (18:16 +0000)]
Merge "WifiConfiguration: Modify time display in toString" into pi-dev

6 years agoMerge "Added dontSendToRestrictedApps broadcast option" into pi-dev
Fyodor Kupolov [Fri, 6 Apr 2018 17:57:10 +0000 (17:57 +0000)]
Merge "Added dontSendToRestrictedApps broadcast option" into pi-dev

6 years agoMerge changes Idca52b94,I82ae308d into pi-dev
David Brazdil [Fri, 6 Apr 2018 17:42:05 +0000 (17:42 +0000)]
Merge changes Idca52b94,I82ae308d into pi-dev

* changes:
  Sort hidden API light grey
  Add more hidden API to light grey

6 years agoFix support for rendering status icons
Brad Stenning [Fri, 6 Apr 2018 17:28:08 +0000 (10:28 -0700)]
Fix support for rendering status icons

Bug: 77698170

Test: Manual on big dog
Change-Id: Ibabc56408cfa8cbd48baac40ada63c976631170b

6 years agoMerge "Hide app if it shares uid with whitelisted app" into pi-dev
Lei Yu [Fri, 6 Apr 2018 17:19:19 +0000 (17:19 +0000)]
Merge "Hide app if it shares uid with whitelisted app" into pi-dev

6 years agoMerge "Move the alarm status icon to the first position." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:17:39 +0000 (17:17 +0000)]
Merge "Move the alarm status icon to the first position." into pi-dev

6 years agoMerge "Switch to Saturated color mode when Accessibility transforms are active" into...
TreeHugger Robot [Fri, 6 Apr 2018 17:12:01 +0000 (17:12 +0000)]
Merge "Switch to Saturated color mode when Accessibility transforms are active" into pi-dev

6 years agoRemoved call to setWillNotCacheDrawing and deprecated it as well as
Nader Jawad [Thu, 5 Apr 2018 23:34:47 +0000 (16:34 -0700)]
Removed call to setWillNotCacheDrawing and deprecated it as well as
willNotCacheDrawing as intermediate caching layers are obsolete since
hardware accelerated rendering was introduced in API 11

ImageView's current implementation of setScaleType would manually
disable it's cache if the ScaleType provided was CENTER. This was end up
not drawing the ImageView if View.LAYER_TYPE_SOFTWARE was configured on
the ImageView as the cache no longer existed. Removed the logic to
conditionally disable the drawing cache and marked
setWillNotCacheDrawing/willNotCacheDrawing as hardware accelerated
rendering makes these facilities obsolete

Fixes: 77653694
Fixes: 72139649
Test: Created a test application with an ImageView and manually set a
ScaleType of CENTER and forced the ImageView to render in a software
layer to confirm that it would render properly with a drawable of the
test application's launcher icon

Change-Id: Ie73b1e0708a265e3cc2cc74ed13539f4219dbd7d
(cherry picked from commit 2ac86880d6888b0508cdb7d6b2f22a1329a66560)

6 years agoUpdate NetworkScoreService to use SystemService
Mehdi Alizadeh [Thu, 29 Mar 2018 00:34:24 +0000 (17:34 -0700)]
Update NetworkScoreService to use SystemService

Bug: 29118511
Test: runtests.sh
Test: Ran integration tests
Test: Verified wifi assistant still works (Uses NetworkScorer).
Change-Id: I50a6bd5ab59fc69fcb331102ad80ec4bb0988c70

6 years agoMerge "media: Populate Image scaling mode in reader and writer" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:06:44 +0000 (17:06 +0000)]
Merge "media: Populate Image scaling mode in reader and writer" into pi-dev

6 years agoMerge "Generalize the recents animation to work with non-home activity." into pi-dev
Winson Chung [Fri, 6 Apr 2018 16:45:02 +0000 (16:45 +0000)]
Merge "Generalize the recents animation to work with non-home activity." into pi-dev

6 years agoMerge "Migrated the Person class to its own file" into pi-dev
Selim Cinek [Fri, 6 Apr 2018 15:59:34 +0000 (15:59 +0000)]
Merge "Migrated the Person class to its own file" into pi-dev

6 years agoFix crash when modifying Selection
Clara Bayarri [Tue, 27 Mar 2018 13:25:33 +0000 (14:25 +0100)]
Fix crash when modifying Selection

The root of this bug was in the fact that Selection.removeSelection
removes two spans, the start index and end index of the selection.
Each span removal triggers Editor#onSpanRemoved, which in turn tries
to set a selection. This meant that if we started with selection
(100, 120), then removeSpan(start) was called, so we had (-1, 120),
then the onSpanRemoved code tried to set a selection so set it to
(120, 120), then removeSpan(end) was called, ending up in (120, -1).

There are two stages to this fix
1. A lot of our code assumes that when either start or end selection
are larger than -1, both are valid. Therefore when we have one of them
out of sync, we crash. Fixed this assumption in all the places I found

2. We didn't have a mechanism to use FLAG_INTERMEDIATE when removing
spans, only when adding them, so this CL adds a remove with flags. This
allows us to not trigger onSpanRemoved when only one of the selection
indexes is removed.
Because this is an added method to an interface, the default just
calls the existing method. The new method is implemented in
SpannableStringInternal and SpannableStringBuilder to read
FLAG_INTERMEDIATE and avoid sending a spans changed event.
Selection.removeSelection then uses FLAG_INTERMEDIATE when removing
the first of the two selection spans.

Note that 2. would be enough to fix the current bug, but we want to
avoid other implementations of Spannable from crashing in the wild.
In general, it seems like a good idea to verify both selection indexes
are valid whenever they are used.

Bug: 72101848
Test: atest FrameworksCoreTests:SpannableStringBuilderTest
Test: atest FrameworksCoreTests:SpannableStringTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Test: atest android.text.cts.SelectionTest (note new test as well)
Test: atest android.view.inputmethod.cts.BaseInputConnectionTest
Test: atest android.text.DynamicLayoutTest
Change-Id: I0d647fad152d0bef0f2115a46c3d17ebd8642281

6 years agoMerge "Added gamma correction to autobrightness." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:48:43 +0000 (15:48 +0000)]
Merge "Added gamma correction to autobrightness." into pi-dev

6 years agoMerge "Update Javadoc to clarify which calls are logged." into pi-dev
Pankaj Kanwar [Fri, 6 Apr 2018 15:40:39 +0000 (15:40 +0000)]
Merge "Update Javadoc to clarify which calls are logged." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:31:24 +0000 (15:31 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Inherit packageName/windowAnimations on TaskSnapshotSurface" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 15:31:21 +0000 (15:31 +0000)]
Merge "Inherit packageName/windowAnimations on TaskSnapshotSurface" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:31:20 +0000 (15:31 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoRun layout when exiting window
Jorim Jaggi [Fri, 6 Apr 2018 15:22:03 +0000 (17:22 +0200)]
Run layout when exiting window

Such that a layout with canAffectSystemUiFlags() return false
happens immediately after starting the exit animation.

Test: Open dialog on top of light bar app, close dialog, observe
icons changing color in sync with window animation
Test: go/wm-smoke
Fixes: 77690715

Change-Id: I8c255a34f91c47261c1d14174f620142a2c49eb7

6 years agoMerge "Trigger new frame after display is ready to turn on" into pi-dev
Lucas Dupin [Fri, 6 Apr 2018 15:21:07 +0000 (15:21 +0000)]
Merge "Trigger new frame after display is ready to turn on" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:18:46 +0000 (15:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:18:42 +0000 (15:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:18:25 +0000 (15:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Add more API on hiddenapi-light-greylist.txt" into pi-dev
David Brazdil [Fri, 6 Apr 2018 15:12:39 +0000 (15:12 +0000)]
Merge "Add more API on hiddenapi-light-greylist.txt" into pi-dev

6 years agoSort hidden API light grey
David Brazdil [Fri, 6 Apr 2018 15:11:09 +0000 (16:11 +0100)]
Sort hidden API light grey

Previous changes kept the file unsorted

Bug: 64382372
Test: make
Change-Id: Idca52b9476cda1eabb8dc2a90d6e8182e1a58b32

6 years agoAdd more hidden API to light grey
David Brazdil [Fri, 6 Apr 2018 15:10:44 +0000 (16:10 +0100)]
Add more hidden API to light grey

Bug: 77487572
Test: make
Change-Id: I82ae308d26542e7e72e174e9531f2de80e182e26

6 years agoFallback added for HEAVY_CLICK effect
Alexey Kuzmin [Tue, 20 Mar 2018 18:25:51 +0000 (18:25 +0000)]
Fallback added for HEAVY_CLICK effect

Test: Do any UI gesture causing HEAVY_CLICK (for example, long press
home button). HEAVY_CLICK should be played, and adb logcat should not
show message "Failed to play prebaked effect, no fallback"
Bug: 74882420
Fixes: 74776434

Merged-In: I151e0b02842c29fe67802d77411ae0f7d0f63c39
Change-Id: I151e0b02842c29fe67802d77411ae0f7d0f63c39

6 years agoMapping of haptic constants updated
Alexey Kuzmin [Tue, 20 Mar 2018 18:21:51 +0000 (18:21 +0000)]
Mapping of haptic constants updated

Bug: 74882420
Test: Haptic effects should correspond to UI effects as it's written in docs

Merged-In: I6bf041775aa0ee2f7903b9e7ef794a75f011bd2f
Change-Id: I6bf041775aa0ee2f7903b9e7ef794a75f011bd2f

6 years agoAdd haptic constants
Alexey Kuzmin [Tue, 20 Mar 2018 18:05:12 +0000 (18:05 +0000)]
Add haptic constants

New hidden constants added to HapticFeedbackConstants.
Test: m update-api shows no changes
Bug: 74882420

Merged-in: I164a944b23e958e89b8d3064cb512cee739b27fd
Change-Id: I164a944b23e958e89b8d3064cb512cee739b27fd

6 years agoMerge "Add deprecation notice to Linkify MAP_ADDRESSES" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 14:55:00 +0000 (14:55 +0000)]
Merge "Add deprecation notice to Linkify MAP_ADDRESSES" into pi-dev

6 years agoMove the alarm status icon to the first position.
Amin Shaikh [Fri, 6 Apr 2018 14:50:23 +0000 (10:50 -0400)]
Move the alarm status icon to the first position.

Change-Id: I0330af8ae721421454c9e02216344d4841868d63
Bug: 74985733
Fixes: 77689775
Test: visual

6 years agoMerge "Wait for unknown vis to resolve before forcing keyguard orientation" into...
Jorim Jaggi [Fri, 6 Apr 2018 14:46:20 +0000 (14:46 +0000)]
Merge "Wait for unknown vis to resolve before forcing keyguard orientation" into pi-dev

6 years agoMerge "Add Polish keycharactermap" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 14:38:16 +0000 (14:38 +0000)]
Merge "Add Polish keycharactermap" into pi-dev

6 years agoMerge "Fix typo in comments." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 14:27:18 +0000 (14:27 +0000)]
Merge "Fix typo in comments." into pi-dev

6 years agoAdd @param tag for state in queryDetailsForUidTagState.
Lorenzo Colitti [Fri, 6 Apr 2018 13:56:52 +0000 (22:56 +0900)]
Add @param tag for state in queryDetailsForUidTagState.

Change-Id: I22de424ccb2b30b2a56edd17dc982565b8aa7d4a
Fix: 77518425
Test: make doc-comment-check-docs

6 years agoInherit packageName/windowAnimations on TaskSnapshotSurface
Jorim Jaggi [Fri, 6 Apr 2018 14:02:07 +0000 (16:02 +0200)]
Inherit packageName/windowAnimations on TaskSnapshotSurface

Such that when the starting window gets picked for the animation,
we can resolve the animation as well.

Test: Long press home, "Home settings", press home, repeat
Test: go/wm-smoke
Change-Id: I81cd022ccd13a720f7ba7a037cb686126cb36722
Fixes: 77688444

6 years agoRemove unwanted capability code per API council feedback.
Lorenzo Colitti [Fri, 6 Apr 2018 08:35:33 +0000 (17:35 +0900)]
Remove unwanted capability code per API council feedback.

The addition of hasUnwantedCapability was late in the release
cycle and does not simplify the API enough to be worth it. The
recommendation is, in a future release, to do something more
complete: not just add something like addUnwantedCapability, but
also deprecate all the NET_CAPABILITY_NOT_xxx constants and add
opposite NET_CAPABILITY_xxx constants for use with it.

Fix: 77601789
Test: builds, boots
Test: atest android.net.cts.NetworkRequestTest
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: Ib98fb01da4a4a0bae464787b589ad88f45002eb8

6 years agoMerge "Light grey MethodHandles$Lookup;-><init>" into pi-dev
Nicolas Geoffray [Fri, 6 Apr 2018 13:57:25 +0000 (13:57 +0000)]
Merge "Light grey MethodHandles$Lookup;-><init>" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 6 Apr 2018 13:47:23 +0000 (06:47 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4ce56eab007e4d30a0e74f1d5951b819c4f7e36d

6 years agoMerge "Treat hidden API exemptions as whitelist." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:45:32 +0000 (13:45 +0000)]
Merge "Treat hidden API exemptions as whitelist." into pi-dev

6 years agoMerge "Listen for bluetooth audio changes in system ui." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:37:06 +0000 (13:37 +0000)]
Merge "Listen for bluetooth audio changes in system ui." into pi-dev

6 years agoMerge changes from topic "gpuprio" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:30:33 +0000 (13:30 +0000)]
Merge changes from topic "gpuprio" into pi-dev

* changes:
  Add ThreadedRendererCompat for Launcher use
  Add ability to change context priority of RT GL context

6 years agoWait for unknown vis to resolve before forcing keyguard orientation
Jorim Jaggi [Fri, 6 Apr 2018 13:11:47 +0000 (15:11 +0200)]
Wait for unknown vis to resolve before forcing keyguard orientation

If TRANSIT_UNOCCLUDE is set it may only be so because we are
starting another activity that occludes the Keyguard.
UnknownVisibilityController knows about this, so ask it and wait
with forcing Keyguard orientation if needed.

Test: Take image from secure camera in landscape, press on the
photo, ensure no rotations
Test: Dismiss alarm in landscape, observe no rotations
Fixes: 68819499

Change-Id: If143ce43f620d77d62f5812950a040e531cc0a02

6 years agoMerge "Update anim to spec" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 13:07:20 +0000 (13:07 +0000)]
Merge "Update anim to spec" into pi-dev

6 years agoFix typo in comments.
Mathew Inwood [Fri, 6 Apr 2018 12:53:45 +0000 (13:53 +0100)]
Fix typo in comments.

Keep the nitpickers happy.

Test: m
Bug: 77517571
Change-Id: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8

6 years agoMerge "Tweak SystemUpdatePolicy APIs" into pi-dev
Rubin Xu [Fri, 6 Apr 2018 12:54:24 +0000 (12:54 +0000)]
Merge "Tweak SystemUpdatePolicy APIs" into pi-dev

6 years agoDon't backup/restore screen brightness
Annie Meng [Thu, 5 Apr 2018 17:49:52 +0000 (18:49 +0100)]
Don't backup/restore screen brightness

We no longer want to backup and restore screen brightness as it could
leave the new device in an unusable state and doesn't make sense
cross-device.

Test: 1) atest SettingsBackupTest
2) atest SettingsValidatorsTest
3) Manual:
- Old backup set that has screen brightness does not restore with change
- Screen brightness does not backup or restore with change
Bug: 77583401
Merged-In: I8a6d950717e6aeb9bf6773c14708ee70069f9df0

Change-Id: I8a6d950717e6aeb9bf6773c14708ee70069f9df0
(cherry picked from commit 931b41b71a411dd714025970aeb752c71e86b239)

6 years agoMerge "Add new hidden APIs to light grey" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 12:45:23 +0000 (12:45 +0000)]
Merge "Add new hidden APIs to light grey" into pi-dev