OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Update a bunch of AndroidTest for apct suite" into pi-dev
Julien Desprez [Thu, 15 Mar 2018 14:29:11 +0000 (14:29 +0000)]
Merge "Update a bunch of AndroidTest for apct suite" into pi-dev

6 years agoMerge "Update packages for 1.0.0-beta1" into pi-dev
Alan Viverette [Thu, 15 Mar 2018 13:32:16 +0000 (13:32 +0000)]
Merge "Update packages for 1.0.0-beta1" into pi-dev

6 years agoMerge "Add IMS#BACK_DISPOSITION_ADJUST_NOTHING" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 13:27:30 +0000 (13:27 +0000)]
Merge "Add IMS#BACK_DISPOSITION_ADJUST_NOTHING" into pi-dev

6 years agoMerge "Greylist DevicePolicyManager#setDefaultSmsApplication" into pi-dev
David Brazdil [Thu, 15 Mar 2018 13:06:15 +0000 (13:06 +0000)]
Merge "Greylist DevicePolicyManager#setDefaultSmsApplication" into pi-dev

6 years agoMerge "Add jaewan@ to OWNERS" into pi-dev
Jaewan Kim [Thu, 15 Mar 2018 12:43:29 +0000 (12:43 +0000)]
Merge "Add jaewan@ to OWNERS" into pi-dev

6 years agoMerge "Whitelist UsbPortStatus and UsbRequest members" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 12:41:17 +0000 (12:41 +0000)]
Merge "Whitelist UsbPortStatus and UsbRequest members" into pi-dev

6 years agoMerge "perfetto: Add setting to enable/disable traced" into pi-dev
Primiano Tucci [Thu, 15 Mar 2018 12:24:02 +0000 (12:24 +0000)]
Merge "perfetto: Add setting to enable/disable traced" into pi-dev

6 years agoperfetto: Add setting to enable/disable traced
Hector Dearman [Wed, 7 Mar 2018 11:12:35 +0000 (11:12 +0000)]
perfetto: Add setting to enable/disable traced

This will help us run P/H experiments by controlling the
whether traced runs through P/H.

This will allow to gradually roll out traced and, in an
emergency, remotely disable it.

Run:
$ adb shell 'ps -A | grep traced'
Should see traced.
$ adb shell 'settings put global sys_traced 0'
$ adb shell 'ps -A | grep traced'
Should no longer see traced.

Test: See above.
Bug: b/71737179
Bug: b/74383547
Change-Id: I1f564421d9abae14d7d80769e9517eb363dae33a
Merged-In: I1f564421d9abae14d7d80769e9517eb363dae33a

6 years agoMerge "Add new APIs." into pi-dev
Nicolas Geoffray [Thu, 15 Mar 2018 11:53:14 +0000 (11:53 +0000)]
Merge "Add new APIs." into pi-dev

6 years agoWhitelist UsbPortStatus and UsbRequest members
Artem Iglikov [Thu, 15 Mar 2018 10:47:26 +0000 (10:47 +0000)]
Whitelist UsbPortStatus and UsbRequest members

Bug: 74424953
Test: N/A
Change-Id: Idf0c71c16bb7d3747e00b357a88e03a27c10e9d6

6 years agoMerge "MediaSession2: Implement skipTo APIs" into pi-dev
Jaewan Kim [Thu, 15 Mar 2018 10:15:07 +0000 (10:15 +0000)]
Merge "MediaSession2: Implement skipTo APIs" into pi-dev

6 years agoMerge "Allow restoring of apps that rotated key" into pi-dev
Michal Karpinski [Thu, 15 Mar 2018 10:13:34 +0000 (10:13 +0000)]
Merge "Allow restoring of apps that rotated key" into pi-dev

6 years agoAdd new APIs.
Nicolas Geoffray [Wed, 14 Mar 2018 17:39:58 +0000 (17:39 +0000)]
Add new APIs.

bug: 64382372
Test: m
Change-Id: I6be84f5d5062737dcdd51c60be5196ac2a2a5c4b

6 years agoAdd jaewan@ to OWNERS
Jaewan Kim [Thu, 15 Mar 2018 07:49:40 +0000 (16:49 +0900)]
Add jaewan@ to OWNERS

Bug: 74897795
Test: N/A
Change-Id: I5cf110bd6f99b20f5ed2fc5d2ccdba318b0d99f8

6 years agoMediaSession2: Implement skipTo APIs
Jaewan Kim [Tue, 13 Mar 2018 06:48:36 +0000 (15:48 +0900)]
MediaSession2: Implement skipTo APIs

This implements following APIs from both session and controller.
  - skipToPlaylistItem()
  - skipToNextItem()
  - skipToPreviousItem()

Bug: 74175632
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: I47d94346c997314ff39797bac3034aa507058036

6 years agoMerge "Remove mtOffset from drawTextRun" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 06:20:41 +0000 (06:20 +0000)]
Merge "Remove mtOffset from drawTextRun" into pi-dev

6 years agoMerge "Add sysWhitelistedAppsExceptIdle in whitelist" into pi-dev
Andrew Sapperstein [Thu, 15 Mar 2018 05:09:59 +0000 (05:09 +0000)]
Merge "Add sysWhitelistedAppsExceptIdle in whitelist" into pi-dev

6 years agoMerge "Check AppOps bit for TelephonyManager#getForbiddenPlmns" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 04:37:28 +0000 (04:37 +0000)]
Merge "Check AppOps bit for TelephonyManager#getForbiddenPlmns" into pi-dev

6 years agoRemove mtOffset from drawTextRun
Seigo Nonaka [Thu, 15 Mar 2018 00:08:28 +0000 (17:08 -0700)]
Remove mtOffset from drawTextRun

Bug: 72998298
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: Ia886c1ce9f7387559d7fe00b34ce03378d56ecec

6 years agoMerge changes from topic "latency" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 03:37:00 +0000 (03:37 +0000)]
Merge changes from topic "latency" into pi-dev

* changes:
  use the dedicated latency field in logmaker
  add reserved latency field

6 years agoMerge "Add notification category: CATEGORY_NAVIGATION; Add @SystemApi @hide notificat...
TreeHugger Robot [Thu, 15 Mar 2018 03:00:46 +0000 (03:00 +0000)]
Merge "Add notification category: CATEGORY_NAVIGATION; Add @SystemApi @hide notification categories: CATEGORY_CAR_EMERGENCY, CATEGORY_CAR_WARNING, and CATEGORY_CAR_INFORMATION." into pi-dev

6 years agoMerge "Fix cleartext default for the manifest value" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:50:20 +0000 (02:50 +0000)]
Merge "Fix cleartext default for the manifest value" into pi-dev

6 years agoMerge "Update text alignment when using drawTextOnPath." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:43:58 +0000 (02:43 +0000)]
Merge "Update text alignment when using drawTextOnPath." into pi-dev

6 years agoMerge "Add msg to shade when dnd is suppressing notis" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:39:33 +0000 (02:39 +0000)]
Merge "Add msg to shade when dnd is suppressing notis" into pi-dev

6 years agoMerge "Fix PIP settings icons shows in unexpanded state." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:37:34 +0000 (02:37 +0000)]
Merge "Fix PIP settings icons shows in unexpanded state." into pi-dev

6 years agoMerge "Set options for activity being brought to front." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:35:55 +0000 (02:35 +0000)]
Merge "Set options for activity being brought to front." into pi-dev

6 years agoMerge "Making wakelock tag in PowerManager dump AUTO." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:35:13 +0000 (02:35 +0000)]
Merge "Making wakelock tag in PowerManager dump AUTO." into pi-dev

6 years agoCheck AppOps bit for TelephonyManager#getForbiddenPlmns
sqian [Thu, 1 Mar 2018 04:00:43 +0000 (20:00 -0800)]
Check AppOps bit for TelephonyManager#getForbiddenPlmns

Bug: 73884967
Test: Telephony Sanity and Compile
Merged-In: I0cf7920e138892fbcab71fae0eed1293f0b2e404
(cherry picked from commit 52102d28685b8b75a7f290ad42b31fc4029ee5cd)

Change-Id: I9e3456e5f1e479b0e2b102f6c90db57cd0e977fe

6 years agoMerge "Set span boundary at word boundary in perf test" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:29:53 +0000 (02:29 +0000)]
Merge "Set span boundary at word boundary in perf test" into pi-dev

6 years agoMerge "Support slicing by chain." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:27:15 +0000 (02:27 +0000)]
Merge "Support slicing by chain." into pi-dev

6 years agoMerge "Disable clicks on buttons without actions" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:26:50 +0000 (02:26 +0000)]
Merge "Disable clicks on buttons without actions" into pi-dev

6 years agoMerge "WifiConfiguration: Undeprecate WPA_PSK" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:11:46 +0000 (02:11 +0000)]
Merge "WifiConfiguration: Undeprecate WPA_PSK" into pi-dev

6 years agoMerge "Fixed data connection state callback not working" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:07:55 +0000 (02:07 +0000)]
Merge "Fixed data connection state callback not working" into pi-dev

6 years agoMerge "[RTT][AWARE] Minor update to distance documentation" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 02:07:13 +0000 (02:07 +0000)]
Merge "[RTT][AWARE] Minor update to distance documentation" into pi-dev

6 years agoMerge "Don't time out startForegroundService when debugging the app" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 01:53:39 +0000 (01:53 +0000)]
Merge "Don't time out startForegroundService when debugging the app" into pi-dev

6 years agoMerge "DO NOT MERGE Fix the null return value of getTrustedHardwareCertPath" into...
TreeHugger Robot [Thu, 15 Mar 2018 01:36:24 +0000 (01:36 +0000)]
Merge "DO NOT MERGE Fix the null return value of getTrustedHardwareCertPath" into pi-dev

6 years agouse the dedicated latency field in logmaker
Chris Wren [Wed, 14 Mar 2018 17:16:10 +0000 (13:16 -0400)]
use the dedicated latency field in logmaker

Bug: 65724609
Test: runtest systemui
Change-Id: Ic5d3f569c06f641454c356f64f773db59140fedc

6 years agoadd reserved latency field
Chris Wren [Wed, 14 Mar 2018 16:16:04 +0000 (12:16 -0400)]
add reserved latency field

Bug: 65724609
Test: make
Change-Id: I9bc8d9bf6818c93cd21c02962d93ab1193d56fc9

6 years agoMerge changes I68dab076,Ife50c3d3,I705518be,I949fbe81 into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 01:16:09 +0000 (01:16 +0000)]
Merge changes I68dab076,Ife50c3d3,I705518be,I949fbe81 into pi-dev

* changes:
  Disable move animations for ScreenDecor overlays.
  WindowManager: Use WindowSurfaceController for seamless rotation
  Prevent freezing the display while rotating seamlessly.
  Eliminate usage of global transaction for display configuration.

6 years agoMerge "Added hackbod@ & ogunwale@ to display owners file." into pi-dev
Wale Ogunwale [Thu, 15 Mar 2018 01:16:05 +0000 (01:16 +0000)]
Merge "Added hackbod@ & ogunwale@ to display owners file." into pi-dev

6 years agoMerge "Unhiding APIs in UsageEvents for public use" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 01:08:33 +0000 (01:08 +0000)]
Merge "Unhiding APIs in UsageEvents for public use" into pi-dev

6 years agoAdded hackbod@ & ogunwale@ to display owners file.
Wale Ogunwale [Thu, 15 Mar 2018 01:04:04 +0000 (18:04 -0700)]
Added hackbod@ & ogunwale@ to display owners file.

We need to be able to submit stuff while michaelwr@ is OOO.
For example: ag/3690123

Test: can merge is stuff
Bug: 72038766
Change-Id: I1dd2260b54d95bbb6ebd27d871aeddfe3eefacdd

6 years agoMerge "Telephony(MSIM): Default NW mode property for each slot" into pi-dev
Pengquan Meng [Thu, 15 Mar 2018 01:01:15 +0000 (01:01 +0000)]
Merge "Telephony(MSIM): Default NW mode property for each slot" into pi-dev

6 years agoMerge changes from topic "centralize-quick-3s" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 00:53:19 +0000 (00:53 +0000)]
Merge changes from topic "centralize-quick-3s" into pi-dev

* changes:
  Fixes crash on navbar using 3rd party launchers
  Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""

6 years agoDisable clicks on buttons without actions
Lucas Dupin [Wed, 14 Mar 2018 19:39:00 +0000 (12:39 -0700)]
Disable clicks on buttons without actions

Test: navigate on lock screen with usb keyboard
Change-Id: I5cb6a605a3fca956c0f3148cdcee4807fb23f186
Fixes: 73718973

6 years agoMerge "Also apply prefix when dumping isAllowedToUseHiddenApi" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 00:37:37 +0000 (00:37 +0000)]
Merge "Also apply prefix when dumping isAllowedToUseHiddenApi" into pi-dev

6 years agoSet span boundary at word boundary in perf test
Seigo Nonaka [Wed, 14 Mar 2018 21:38:32 +0000 (14:38 -0700)]
Set span boundary at word boundary in perf test

The style span interval should be the same with word boundary. This
generates weird test case.

Bug: 72998298
Test: N/A
Change-Id: Id1132a455c8b1dd74e21eaeb259703a33ac3b01f

6 years agoMaking wakelock tag in PowerManager dump AUTO.
Kweku Adams [Thu, 15 Mar 2018 00:12:06 +0000 (17:12 -0700)]
Making wakelock tag in PowerManager dump AUTO.

Bug: 74837756
Test: N/A
Change-Id: If9b982c35eee8f2643e2bc2e2f5dbd1a0e00de12

6 years agoFixed data connection state callback not working
Jack Yu [Wed, 14 Mar 2018 23:23:38 +0000 (16:23 -0700)]
Fixed data connection state callback not working

The old behavior of onDataConnectionStateChanged callback is that
if at least one data connection for one APN type (e.g. default,
mms, supl, ims, etc...) is connected, then it reports connected.
It only reports disconnected if data for all APN types are
disconnected.

Since now we have data connections are always connected. For example,
even if the user disables data, the unmetered IMS data remains
connected. In this case the client's onDataConnectionStateChanged
won't be called.

Now we changed the behavior of onDataConnectionStateChanged to
report the connection state for default APN type only. This matches
the behavior of TelephonyManager.getDataState().

Test: Manual
Bug: 73226433
Change-Id: I0744cf33337864c946af6e7d186bab78584acfa4

6 years agoMerge changes I14df050f,I55c30f78,I269eae0f into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 23:52:38 +0000 (23:52 +0000)]
Merge changes I14df050f,I55c30f78,I269eae0f into pi-dev

* changes:
  Frameworks: Refactor FileDescriptorTable errors
  Frameworks: Add app name to zygote abort
  Frameworks: Refactor zygote abort code

6 years agoAdd IMS#BACK_DISPOSITION_ADJUST_NOTHING
Yohei Yukawa [Wed, 14 Mar 2018 20:03:42 +0000 (13:03 -0700)]
Add IMS#BACK_DISPOSITION_ADJUST_NOTHING

This is a follow up CL to our previous attempt [1] to make
InputMethodService#setBackDisposition() work and make sense.

Based on the feedback from several IME developers, we learned that
InputMethodService#setBackDisposition() is still confusing.

My conclusion is that trying to reuse existing flags was a mistake.
Here are the rationale for deprecating those two flags.

 * BACK_DISPOSITION_WILL_NOT_DISMISS

   This flag had never been used until we started using it in our
   previous CL [1].  However, it turns out that what this flag means
   is hard to understand because its JavaDoc only says
      "This input method will not consume the back key."
   To address the original goal of Bug 38513361, we can (and should)
   introduce a new flag rather than reusing this confusing flag.
   Deprecating this flag should have no impact because it had never
   been used.

 * BACK_DISPOSITION_WILL_DISMISS

   On pre-P devices IME could abuse this flag to override the back
   button to "dismiss" mode even after IME lost the focus.  On the
   other hand, as far as we know there is no good use case for this
   flag.  Hence rather than trying to fix such an abuse scenario, we
   should just deprecate this flag.

Instead, a newly introduced flag BACK_DISPOSITION_ADJUST_NOTHING
should be sufficient to achieve the original goal of Bug 38513361.
This flag does not rely on the concept "dismiss" and key event
handling hence it would be much easier to maintain.

 [1]: I99e7c413fe1a93f8d8cff897b5c5f0947690d2c0
      3fecef119e1921204ea06792586ee10a94608ae6

Fix: 74403102
Test: atest CtsInputMethodTestCases
Change-Id: I064209c40da79fffb2627e8f580818a793017b1f

6 years agoMerge "Add stats from storage manager to dumpsys result" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 23:05:33 +0000 (23:05 +0000)]
Merge "Add stats from storage manager to dumpsys result" into pi-dev

6 years agoFix PIP settings icons shows in unexpanded state.
Tracy Zhou [Wed, 14 Mar 2018 23:00:56 +0000 (16:00 -0700)]
Fix PIP settings icons shows in unexpanded state.

Change-Id: Ieb18fbd53dee443ae19e3a2f3f9d8d101e38c911
Fixes: 74598599
Test: atest
CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests

6 years agoMerge "docs: Javadoc typo fix" into pi-dev
Andrew Solovay [Wed, 14 Mar 2018 22:59:22 +0000 (22:59 +0000)]
Merge "docs: Javadoc typo fix" into pi-dev

6 years agoSupport slicing by chain.
Yangster-mac [Sun, 11 Mar 2018 07:22:59 +0000 (23:22 -0800)]
Support slicing by chain.

BUG: b/73975181

Test: statsd test
Change-Id: I913ae0f68ff21ed0703bb5da9c60d3eaa3bf5981

6 years agoSet options for activity being brought to front.
chaviw [Wed, 14 Mar 2018 22:28:07 +0000 (15:28 -0700)]
Set options for activity being brought to front.

In the case where the activity is brought to the front instead of
creating a new activity, set the options for that ActivityRecord.

Fixes: 74793215
Test: Open app and see animation. Press home. Open same app again.
Animation works.

Change-Id: I1b8505d3db6f7de23b37e433b9ec9727b01444e5

6 years agoMerge "Enable local search for instant apps" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 22:23:24 +0000 (22:23 +0000)]
Merge "Enable local search for instant apps" into pi-dev

6 years agoWifiConfiguration: Undeprecate WPA_PSK
Roshan Pius [Wed, 14 Mar 2018 22:10:18 +0000 (15:10 -0700)]
WifiConfiguration: Undeprecate WPA_PSK

This is needed for client mode operations for configuring WPA_PSK
networks. There is no alternative public value for WPA_PSK.
The intention was to deprecate usage of this value for AP
mode, but since we share the same object across client & AP mode
operations, we cannot mark this field deprecated.

Bug: 72332080
Test: make update-api
Change-Id: I75f675b630080d853422f945d7cbc37c5f205fde

6 years agoDO NOT MERGE Fix the null return value of getTrustedHardwareCertPath
Bo Zhu [Fri, 9 Mar 2018 20:32:13 +0000 (12:32 -0800)]
DO NOT MERGE Fix the null return value of getTrustedHardwareCertPath

I forgot to serialize and deserialize it in the last CL adding it.

Bug: 74359698
Change-Id: I34f9225dc63b55223c2a7db23ee3fa6abf056a0d
Test: atest RecoveryControllerHostTest
(cherry picked from commit b4d2cc684dcd94a1482c8c2e66d421d481032833)

6 years agoMerge "Improved Application.getAutofillClient()" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 22:02:10 +0000 (22:02 +0000)]
Merge "Improved Application.getAutofillClient()" into pi-dev

6 years agoMerge "Add ability to filter remote animation adapter by activity type" into pi-dev
Jorim Jaggi [Wed, 14 Mar 2018 21:55:07 +0000 (21:55 +0000)]
Merge "Add ability to filter remote animation adapter by activity type" into pi-dev

6 years agoAdd notification category: CATEGORY_NAVIGATION;
Adora Zhang [Mon, 12 Mar 2018 21:07:50 +0000 (14:07 -0700)]
Add notification category: CATEGORY_NAVIGATION;
Add @SystemApi @hide notification categories: CATEGORY_CAR_EMERGENCY, CATEGORY_CAR_WARNING, and CATEGORY_CAR_INFORMATION.

Bug: 74546526
Test: runtest -x tests/app/src/android/app/cts/NotificationTest.java

Change-Id: Ib997992e039d2eddbd9c744816c35e279f9f9682

6 years agoMerge "incidentd: cleaning up settings.proto" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 21:31:32 +0000 (21:31 +0000)]
Merge "incidentd: cleaning up settings.proto" into pi-dev

6 years agoMerge "Disable RecoverableKeyStoreManager for custom lockscreens." into pi-dev
Aseem Kumar [Wed, 14 Mar 2018 21:29:12 +0000 (21:29 +0000)]
Merge "Disable RecoverableKeyStoreManager for custom lockscreens." into pi-dev

6 years agoUnhiding APIs in UsageEvents for public use
Suprabh Shukla [Fri, 9 Mar 2018 02:34:15 +0000 (18:34 -0800)]
Unhiding APIs in UsageEvents for public use

These apis are needed to interpret standby bucket change history
when using UsageStatsManager#queryEventsForSelf

Test: atest android.app.usage.cts.UsageStatsTest#testQueryEventsForSelf

Bug: 71906213
Change-Id: Ib9f458bf32089ad30c97eca9dd5cc4df5a392191

6 years agoMerge changes Iaf63b4e8,Ie76044d4 into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 21:25:23 +0000 (21:25 +0000)]
Merge changes Iaf63b4e8,Ie76044d4 into pi-dev

* changes:
  Change DND upgrade noti text and channel
  Reevaluate volume settings toggle onShow.

6 years agoFixes crash on navbar using 3rd party launchers
Matthew Ng [Wed, 14 Mar 2018 19:26:14 +0000 (12:26 -0700)]
Fixes crash on navbar using 3rd party launchers

When using a 3rd party launcher, the touch service
connection from pixel launcher and system ui is
disconnecting causing the nav bar to crash when
tapping it because onTouchIntercept returns true
from a NavigationBarView and handles the
onTouchEvent that does not check for a valid
connection. Check for a valid connection to
launcher service in onTouchEvent and before
proxying data to prevent the crash.

Fixes: 74726495
Test: change to 3rd party launcher press nav bar

Change-Id: I6f7efe78599b0829fd90aa0436463e77ec51f634

6 years agoMerge "Add Duplex mode to ServiceState." into pi-dev
Eric Schwarzenbach [Wed, 14 Mar 2018 21:05:43 +0000 (21:05 +0000)]
Merge "Add Duplex mode to ServiceState." into pi-dev

6 years agoRevert "Revert "Centralized quick step/scrub/switch logic (1/2)""
Matthew Ng [Wed, 14 Mar 2018 19:43:18 +0000 (19:43 +0000)]
Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""

This reverts commit 0e490d9208de480ed38fe31a12029fc59b0955e9.

Reason for revert: Will be merged with fix
Bug: 74726495
Test: manual

Change-Id: I36ea9c2702107b23eff4adb1f3ba9fdc1be12999

6 years ago[RTT][AWARE] Minor update to distance documentation
Etan Cohen [Wed, 14 Mar 2018 20:49:43 +0000 (13:49 -0700)]
[RTT][AWARE] Minor update to distance documentation

Clarify that measured distance may be negative.

Bug: 63446747
Test: builds
Change-Id: Iff73c1e22dcf98dfce6fc69b7c9d4cf8a05af8d7

6 years agoAlso apply prefix when dumping isAllowedToUseHiddenApi
Yohei Yukawa [Wed, 14 Mar 2018 20:43:47 +0000 (13:43 -0700)]
Also apply prefix when dumping isAllowedToUseHiddenApi

This is a follow up CL to a CL [1] that added one more state dump from
ApplicationInfo regarding whether the app is exampted from the API
restriction but forgot to take care of prefix handling.

 [1]: I01e837253d00c6ffa841a9e5c226204a3e11b827
      974290b032b4d98603925d36851422986a5d7d0e

Bug: 64382372
Test: Ran the following command to see "isAllowedToUseHiddenApi"
      is aligned with other outputs from ApplicationInfo.
         adb shell ime list -a
Change-Id: I9c77d9b557245b7f3b51631140bd564feef601ce

6 years agoMerge "Increase size of BatteryStatsService stats buffer" into pi-dev
Kelly Rossmoyer [Wed, 14 Mar 2018 20:43:14 +0000 (20:43 +0000)]
Merge "Increase size of BatteryStatsService stats buffer" into pi-dev

6 years agoMerge "Start the webview_zygote at boot, but in the background." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:32:32 +0000 (20:32 +0000)]
Merge "Start the webview_zygote at boot, but in the background." into pi-dev

6 years agoEnable local search for instant apps
Todd Kennedy [Wed, 14 Mar 2018 15:09:00 +0000 (08:09 -0700)]
Enable local search for instant apps

When getting the set of searchable activities, fetch instant
applications. But, this means that the set needs a final
filter to prevent leaking application existence.

Change-Id: I6b9daf031ce54061c4500d9edae1d738848158c4
Fixes: 68211791
Test: atest -it CtsAppSecurityHostTestCases:EphemeralTest#testGetSearchableInfo
(cherry picked from commit 8b9d664cae1681c6107bd6caf807e786f96190ca)

6 years agoMerge "Document the byte packing order of the current Bitmap.Configs" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:23:29 +0000 (20:23 +0000)]
Merge "Document the byte packing order of the current Bitmap.Configs" into pi-dev

6 years agoMerge "Add API to get currently pinned slices" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:12:54 +0000 (20:12 +0000)]
Merge "Add API to get currently pinned slices" into pi-dev

6 years agoImproved Application.getAutofillClient()
Felipe Leme [Wed, 14 Mar 2018 19:33:58 +0000 (12:33 -0700)]
Improved Application.getAutofillClient()

- Fixed usage of activity instead of record.activity
- Added (optional) verbose logging

Bug: 74793485
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest#testAutofill_appContext\
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest#testAutofill_appContext

Change-Id: I03721cab6428e580b13444bf045f33dc3d787a8d

6 years agoAdd stats from storage manager to dumpsys result
yro [Wed, 14 Mar 2018 01:08:09 +0000 (18:08 -0700)]
Add stats from storage manager to dumpsys result

Bug: 74601313
Test: manual test, statsd_test
Change-Id: Ifdde6bb10d29f3983b0c27a66a6e30f1f40308ee

6 years agoMerge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev
Winson Chung [Wed, 14 Mar 2018 19:42:13 +0000 (19:42 +0000)]
Merge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev

6 years agoRevert "Centralized quick step/scrub/switch logic (1/2)"
Winson Chung [Wed, 14 Mar 2018 16:08:43 +0000 (16:08 +0000)]
Revert "Centralized quick step/scrub/switch logic (1/2)"

This reverts commit b06ae3bf131b0bd0ded398d3a06974a6a9d78a50.

Reason for revert: b/74726495
Bug: 74726495

Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f

6 years agodocs: Javadoc typo fix
Andrew Solovay [Mon, 12 Mar 2018 22:11:50 +0000 (15:11 -0700)]
docs: Javadoc typo fix

Doc is staged to:

http://go/dac-stage/reference/android/webkit/WebView.html

Exempt-From-Owner-Approval: Doc-only change
Bug: 20926682
Test: make ds-docs
Change-Id: Ib966923b75c8a70da5415f38e4217caeecc44cbe
Merged-In: Ib966923b75c8a70da5415f38e4217caeecc44cbe

6 years agoDisable RecoverableKeyStoreManager for custom lockscreens.
Aseem Kumar [Tue, 13 Mar 2018 01:05:16 +0000 (18:05 -0700)]
Disable RecoverableKeyStoreManager for custom lockscreens.

Bug: 74225107
Test: adb shell am instrument \
-w -e package com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I88fc0fe7fdb23439d781cac96632196465553a38

6 years agoDisable move animations for ScreenDecor overlays.
Robert Carr [Wed, 14 Mar 2018 18:51:23 +0000 (11:51 -0700)]
Disable move animations for ScreenDecor overlays.

They look pretty weird during seamless rotation.

Bug: 72038766
Test: Manual.
Change-Id: I68dab0761a9faca42324e64a545477302c6e3bbe

6 years agoUpdate text alignment when using drawTextOnPath.
Derek Sollenberger [Wed, 14 Mar 2018 19:03:13 +0000 (15:03 -0400)]
Update text alignment when using drawTextOnPath.

This is only a partial fix for the bug, but does ensure that Skia
doesn't attempt to realign the text after minikin already has.

Test: CtsGraphicsTestCases and test app in bug.
Bug: 25360203
Change-Id: I6222963b23b910f0261f562f8816604575d540fa

6 years agoMerge "Add wall clock timestamp for ConfigMetricsReport and gauge atoms." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 19:03:06 +0000 (19:03 +0000)]
Merge "Add wall clock timestamp for ConfigMetricsReport and gauge atoms." into pi-dev

6 years agoWindowManager: Use WindowSurfaceController for seamless rotation
Robert Carr [Wed, 14 Mar 2018 18:50:52 +0000 (11:50 -0700)]
WindowManager: Use WindowSurfaceController for seamless rotation

Otherwise we run in to the issues with the cache when exiting
seamless rotation.

Bug: 72038766
Test: Manual. go/wm-smoke
Change-Id: Ife50c3d3a77fbcfe9d8a7ef40c45444bbb8b4e93

6 years agoPrevent freezing the display while rotating seamlessly.
Robert Carr [Fri, 16 Feb 2018 19:46:16 +0000 (11:46 -0800)]
Prevent freezing the display while rotating seamlessly.

Following recent changes we are now receiving WindowManagerService#reconfigureDisplayLocked
during rotation. This is interpreted as another change in display
configuration that requires screen freezing and we continue on to startFreezingDisplayLocked.
This triggers the screenshot based freezing, but we were already trying to seamlessly rotate.
It seems a sensible solution to just disable screenshot based freezing while seamlessly as
we now disable screenshot based freezing while already using it.

Bug: 72038766
Test: Manual. go/wm-smoke.
Change-Id: I705518be11302cfaa95207e3b3d0c7e93e54ebbf

6 years agoEliminate usage of global transaction for display configuration.
Robert Carr [Thu, 15 Feb 2018 23:36:23 +0000 (15:36 -0800)]
Eliminate usage of global transaction for display configuration.

For seamless rotation to work in the brave new world we need the setting
of the display projection to occur in the same transaction as the
reconfiguration of the stack SurfaceControl. To understand this simply see
that the inverse rotation for seamless rotation happens at the
WindowStateAnimator level so if the stack bounds weren't updated to the new
rotation we would clip. This means: We need to use the pending transaction.
We also need to port the rotation animation to use the pending transaction
as it needs to perform transactions at the same time as setting the display
projection. A pleasant consequence is we can eliminate some "inTransaction"
code-paths that always seemed to be a bit of a wart.

Bug: 72038766
Test: Manual. go/wm-smoke.
Change-Id: I949fbe8150d452c1ef5c13e704ddf87269f824f3

6 years agoTelephony(MSIM): Default NW mode property for each slot
Sandeep Gutta [Wed, 16 Mar 2016 16:07:25 +0000 (21:37 +0530)]
Telephony(MSIM): Default NW mode property for each slot

For dual SIM devices, add provision to configure different default
Network modes for each slot, using the existing system property to
configure this default network modes.

Bug: 28384694
Test: manual - Checked different default NW mode can be set
for each slot.
Merged-Id: I72b11522cb51a425e28ddc407014387a20cb2cd7
Change-Id: I72b11522cb51a425e28ddc407014387a20cb2cd7

6 years agoMerge "Remove unused shared lib from statsd" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 18:48:20 +0000 (18:48 +0000)]
Merge "Remove unused shared lib from statsd" into pi-dev

6 years agoMerge "Removed redundant method ContentResolver.releasePersistableUriPermission(...
TreeHugger Robot [Wed, 14 Mar 2018 18:42:38 +0000 (18:42 +0000)]
Merge "Removed redundant method ContentResolver.releasePersistableUriPermission()" into pi-dev

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 18:09:51 +0000 (18:09 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729 am: 8a095b5f19 am: 0886b1a751
am: 25d38a56ae  -s ours

Change-Id: I0bf700a857b7eba5aebf66e0c2f7970234d7ac00

6 years agoGreylist DevicePolicyManager#setDefaultSmsApplication
Christine Franks [Fri, 23 Feb 2018 19:18:34 +0000 (11:18 -0800)]
Greylist DevicePolicyManager#setDefaultSmsApplication

Bug: 73788187
Test: make -j100
Change-Id: Ic8f68c8af773625f11674810c52c6b05d746728b

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 17:58:15 +0000 (17:58 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729 am: 8a095b5f19
am: 0886b1a751

Change-Id: I6fb6521317ef9d9e2d6afab056bc8993bed9720c

6 years agoAdd msg to shade when dnd is suppressing notis
Julia Reynolds [Wed, 14 Mar 2018 13:49:35 +0000 (09:49 -0400)]
Add msg to shade when dnd is suppressing notis

Appears when DND is on, shade notifications are suppressed,
and the shade is empty, regardless of whether any notifications
are currently blocked.

Test: atest SystemUITests
Bug: 74075050
Change-Id: Icba7d5eb41b0e6cbef3dec538a833d5995d9b379

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 17:39:54 +0000 (17:39 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729
am: 8a095b5f19

Change-Id: I6eb246ce670723e1f21ee4cf45d5c5e48b91f1ce

6 years agoFrameworks: Refactor FileDescriptorTable errors
Andreas Gampe [Mon, 12 Mar 2018 21:53:34 +0000 (14:53 -0700)]
Frameworks: Refactor FileDescriptorTable errors

Surface error messages to the caller.

(cherry picked from commit 183a5d3cfa6bcdc817dfe6e5512fb6912bb44583)

Bug: 74531335
Test: m
Test: Device boots
Merged-In: I14df050feb7f5417bb08d190492c3050cdbb1c1d
Change-Id: I14df050feb7f5417bb08d190492c3050cdbb1c1d

6 years agoFrameworks: Add app name to zygote abort
Andreas Gampe [Mon, 12 Mar 2018 19:17:25 +0000 (12:17 -0700)]
Frameworks: Add app name to zygote abort

If possible, add the target process name to the zygote abort.

(cherry picked from commit bf94c2c1d789cbe0be77a70536dc08d6f0bd7e5c)

Bug: 74531335
Test: m
Test: Device boots
Test: Manual - fake a failure
Merged-In: I55c30f78246876fdc1b822056351dbbb14c1247e
Change-Id: I55c30f78246876fdc1b822056351dbbb14c1247e

6 years agoFrameworks: Refactor zygote abort code
Andreas Gampe [Mon, 12 Mar 2018 19:08:55 +0000 (12:08 -0700)]
Frameworks: Refactor zygote abort code

Fail in the main fork function. This will simplify follow-ups that
will include more data in the abort.

(cherry picked from commit b8aae1969c6b8f9ac420745166edcd6c9fe59717)

Bug: 74531335
Test: m
Test: Device boots
Merged-In: I269eae0fb15e96fb27d02d4b7c6fdf7e9e8e3346
Change-Id: I269eae0fb15e96fb27d02d4b7c6fdf7e9e8e3346

6 years agoMerge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 17:32:43 +0000 (17:32 +0000)]
Merge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev