OSDN Git Service

android-x86/frameworks-base.git
6 years agoDisable ContentService.DEBUG
Makoto Onuki [Mon, 9 Apr 2018 15:59:01 +0000 (08:59 -0700)]
Disable ContentService.DEBUG

Bug: 77778401
Test: boot
Change-Id: I4fb5ff3555736bd92eb25a25219d35b8ade19708

6 years agoMerge "Update more dialog themes to use medium headline font." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 15:42:37 +0000 (15:42 +0000)]
Merge "Update more dialog themes to use medium headline font." into pi-dev

6 years agoMerge "Support bluetooth not using MultinetworkPolicyTracker" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 14:35:51 +0000 (14:35 +0000)]
Merge "Support bluetooth not using MultinetworkPolicyTracker" into pi-dev

6 years agoMerge "NO PARTIAL RERUN: Do not return recycled bitmaps" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 14:32:41 +0000 (14:32 +0000)]
Merge "NO PARTIAL RERUN: Do not return recycled bitmaps" into pi-dev

6 years agoMerge "Update Javadoc of setLockTaskEnabled to reflect known issue" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 13:39:31 +0000 (13:39 +0000)]
Merge "Update Javadoc of setLockTaskEnabled to reflect known issue" into pi-dev

6 years agoMerge "DisplayContentTests: Mark and improve flaky test" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 13:16:11 +0000 (13:16 +0000)]
Merge "DisplayContentTests: Mark and improve flaky test" into pi-dev

6 years agoMerge "Permission Check For DPM.getPermittedAccessibilityServices" into pi-dev
Eric Sandness [Mon, 9 Apr 2018 13:10:59 +0000 (13:10 +0000)]
Merge "Permission Check For DPM.getPermittedAccessibilityServices" into pi-dev

6 years agoMerge "Fixing broken logging of OTHER events" into pi-dev
Jan Althaus [Mon, 9 Apr 2018 13:09:55 +0000 (13:09 +0000)]
Merge "Fixing broken logging of OTHER events" into pi-dev

6 years agoMerge "Only match addresses without zip codes if at the end." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 13:02:13 +0000 (13:02 +0000)]
Merge "Only match addresses without zip codes if at the end." into pi-dev

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 agoSupport bluetooth not using MultinetworkPolicyTracker
Erik Kline [Mon, 12 Mar 2018 14:18:58 +0000 (23:18 +0900)]
Support bluetooth not using MultinetworkPolicyTracker

This required advancing the IpManager to IpClient refactoring
(Bluetooth used IpManager and friends). Most importantly, the
Bluetooth code used WaitForProvisioningCallback, so this is
moved into IpClient proper now. Also: some more renaming
cleanup.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 62476366
Bug: 72663849

Merged-In: I5e5b2c59ad3ea9ad574e8e683bcab3b09cfe0791
Merged-In: I89b45310181d952129fb2294db63654da9b4057f
Change-Id: I9eee2a9d5c31cdd48a054a7edc3403584efb1864
(cherry picked from commit 8d1fe54be1b605846cca9dfe4a966b3c5e739caa)

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 agoPermission Check For DPM.getPermittedAccessibilityServices
Eric Sandness [Tue, 3 Apr 2018 17:12:39 +0000 (18:12 +0100)]
Permission Check For DPM.getPermittedAccessibilityServices

Require the callers of DPM.getPermittedAccessibilityServices(userId) to
hold the MANAGE_USERS permission.  The only known callers of this API
are settings apps that already hold this permission.

Bug: 62343414
Test: com.android.server.devicepolicy.DevicePolicyManagerTest
Test: com.google.android.gts.devicepolicy.DeviceOwnerTest
Test: Manually checked accessibility settings in DO and PO modes
Change-Id: I8ee3f876fcaffa63636645f0f59709cd147254ef

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 agoUpdate more dialog themes to use medium headline font.
Andrew Sapperstein [Sun, 8 Apr 2018 22:29:22 +0000 (15:29 -0700)]
Update more dialog themes to use medium headline font.

Updates more of the DeviceDefault Dialog themes to use
DialogWindowTitle.DeviceDefault and other related styles.

Also updates DialogWindowTitle.DeviceDefault to use the medium headline
font config for its fontFamily to enable OEM customization.

Bug: 70296667
Test: visual inspection
Change-Id: I77adba91d62caf327f96e237d1dd30126ef555c6

6 years agoDisplayContentTests: Mark and improve flaky test
Adrian Roos [Sun, 8 Apr 2018 17:59:08 +0000 (10:59 -0700)]
DisplayContentTests: Mark and improve flaky test

Marks testForAllWindows as flaky. Also improves assertForAllWindowsOrder
to output the actual vs expected output in case the test fails.

Bug: 77772044
Test: atest DisplayContentTests
Change-Id: I975a02621ffb968af24b962fccbe998ded651715

6 years agoNO PARTIAL RERUN: Do not return recycled bitmaps
Lucas Dupin [Sat, 7 Apr 2018 18:08:15 +0000 (11:08 -0700)]
NO PARTIAL RERUN: Do not return recycled bitmaps

There's also no need to offload WallpaperManager#forgetLoadedBitmap
because Bitmap#recycle is asynchronous - and the whole method is
synchronized.

Fixes 77597550
Test: atest cts/tests/framework/base/activitymanager/src/android/server/am/ActivityManagerMultiDisplayTests.java

Change-Id: I88014e21bd05e10c2f524393bb637596708e4e63

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 agoFixing broken logging of OTHER events
Jan Althaus [Sat, 7 Apr 2018 07:37:36 +0000 (09:37 +0200)]
Fixing broken logging of OTHER events

This bug means we never received logs for events like 'Web Search'

Bug: 77659305
Test: atest FrameworksCoreTests:SelectionEventTest
Change-Id: I6f79897f548d0d19710578e309e0b645bb78e1e3

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 agoOnly match addresses without zip codes if at the end.
Torne (Richard Coles) [Fri, 6 Apr 2018 19:17:55 +0000 (15:17 -0400)]
Only match addresses without zip codes if at the end.

The old native implementation of findAddress only accepted addresses
without zip codes if they appeared at the end of the string. This was
probably a bug as the documentation implies this should work in all
cases, but fixing this bug has caused a lot of false positives while not
fixing very many false negatives and this functionality is being
deprecated anyway, so change it back.

Fixes: 75409267
Test: tested upstream in chromium; direct copy of that code
Change-Id: I3f3c300035cf02a23284737431bc6f94f542cbe7

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