OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Update managed service documentation for low ram devices."
TreeHugger Robot [Thu, 9 Nov 2017 23:25:22 +0000 (23:25 +0000)]
Merge "Update managed service documentation for low ram devices."

6 years agoMerge "Extensible StrictMode"
Kurt Nelson [Thu, 9 Nov 2017 23:00:31 +0000 (23:00 +0000)]
Merge "Extensible StrictMode"

6 years agoMerge "Add missing break to switch in resourceQualifierString()."
Christian Williams [Thu, 9 Nov 2017 22:58:36 +0000 (22:58 +0000)]
Merge "Add missing break to switch in resourceQualifierString()."

6 years agoMerge "Update CountAnomalyTracker to handle slicing."
TreeHugger Robot [Thu, 9 Nov 2017 22:47:56 +0000 (22:47 +0000)]
Merge "Update CountAnomalyTracker to handle slicing."

6 years agoMerge "OBEX : Handle Negative index Exception" am: 08d23cf07a am: 1c0778dd36
Hemant Gupta [Thu, 9 Nov 2017 22:41:23 +0000 (22:41 +0000)]
Merge "OBEX : Handle Negative index Exception" am: 08d23cf07a am: 1c0778dd36
am: 4d358165db

Change-Id: Idd1df7aea56ec9552d364f45e4b4e1c832305ec5

6 years agoMerge "OBEX : Handle Negative index Exception" am: 08d23cf07a
Hemant Gupta [Thu, 9 Nov 2017 22:01:32 +0000 (22:01 +0000)]
Merge "OBEX : Handle Negative index Exception" am: 08d23cf07a
am: 1c0778dd36

Change-Id: Ib9df175617a6b5a3a934caded6d44e6b7cd621b4

6 years agoMerge "OBEX : Handle Negative index Exception"
Hemant Gupta [Thu, 9 Nov 2017 21:51:52 +0000 (21:51 +0000)]
Merge "OBEX : Handle Negative index Exception"
am: 08d23cf07a

Change-Id: Icd513d2060cf1e8fe8fcd06bbedfc0ef5bf5a6fd

6 years agoMerge "Use Skia API to detect if FP16 render buffer is supported"
TreeHugger Robot [Thu, 9 Nov 2017 21:23:00 +0000 (21:23 +0000)]
Merge "Use Skia API to detect if FP16 render buffer is supported"

6 years agoMerge "Revert "Allow IMEs to use light nav bar buttons""
TreeHugger Robot [Thu, 9 Nov 2017 21:17:58 +0000 (21:17 +0000)]
Merge "Revert "Allow IMEs to use light nav bar buttons""

6 years agoMerge "Throw exception on non-finite floats"
John Reck [Thu, 9 Nov 2017 21:14:24 +0000 (21:14 +0000)]
Merge "Throw exception on non-finite floats"

6 years agoMerge "OBEX : Handle Negative index Exception"
Treehugger Robot [Thu, 9 Nov 2017 21:12:43 +0000 (21:12 +0000)]
Merge "OBEX : Handle Negative index Exception"

6 years agoUpdate CountAnomalyTracker to handle slicing.
Yang Lu [Thu, 26 Oct 2017 02:54:45 +0000 (19:54 -0700)]
Update CountAnomalyTracker to handle slicing.

Re-added CountAnomalyTracker (under the name DiscreteAnomalyDetector).
It is now able to handle dimensions.

Test: unit test passed.

Change-Id: I133fcf6db99b9e305756f7ee5891c25f0f276348

6 years agoMerge "Carrier confirmation code."
Jiuyu Sun [Thu, 9 Nov 2017 20:31:32 +0000 (20:31 +0000)]
Merge "Carrier confirmation code."

6 years agoMerge "Add metric for private dns dialog"
TreeHugger Robot [Thu, 9 Nov 2017 20:26:49 +0000 (20:26 +0000)]
Merge "Add metric for private dns dialog"

6 years agoMerge "Add config to use a display rule that ServiceState was considered" am: bbaa19c...
Jordan Liu [Thu, 9 Nov 2017 20:20:21 +0000 (20:20 +0000)]
Merge "Add config to use a display rule that ServiceState was considered" am: bbaa19cad3 am: cd89929497
am: c943355052

Change-Id: I51f2c8c7bf6f2fa5d62417459964a85e36bd4302

6 years agoExtensible StrictMode
Kurt Nelson [Wed, 30 Aug 2017 01:04:21 +0000 (18:04 -0700)]
Extensible StrictMode

go/extensible-strictmode for design doc.

Bug: 63535923
Change-Id: Ic5c48fc06d2167dc99b86e264e114a9af49f12a1
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t
android.os.cts.StrictModeTest

6 years agoOBEX : Handle Negative index Exception
Hemant Gupta [Wed, 28 Dec 2016 06:40:47 +0000 (12:10 +0530)]
OBEX : Handle Negative index Exception

Use case:
1. Send file to remote device.
2. Wait for accepting the file transfer on remote device.
   Use Specific remote device(that sends some
     optional headers).

Failure:
No file acceptance popup seen on remote device.

Root cause:
Crash in com.android.bluetooth.

 FATAL EXCEPTION: BtOpp ClientThread
 Process: com.android.bluetooth, PID: 22527
 java.lang.NegativeArraySizeException: -3
 at javax.obex.ObexHelper.updateHeaderSet(ObexHelper.java:216)
 at javax.obex.ClientSession.sendRequest(ClientSession.java:568)
 at javax.obex.ClientSession.connect(ClientSession.java:148)
 at com.android.bluetooth.opp.BluetoothOppObexClientSession$ClientThread.
   connect(BluetoothOppObexClientSession.java:317)
 at com.android.bluetooth.opp.BluetoothOppObexClientSession$ClientThread.
   run(BluetoothOppObexClientSession.java:231)
 am_crash( 1402): [22527,0,com.android.bluetooth,818462277,java.lang.
   NegativeArraySizeException,-3,ObexHelper.java,216]

Fix:
Add length check before allocate memory and break loop if length is less than
expected header length as per OBEX Specification  to prevent crash.

Test: Verified that OPP Tx and Rx works successfully multiple times.

Bug: 35588578
Change-Id: I805e6b1d51f69645d5132c3c18db2e752d04b096

6 years agoMerge "Whitelist SettingsIntelligence to read search indexables."
TreeHugger Robot [Thu, 9 Nov 2017 19:50:20 +0000 (19:50 +0000)]
Merge "Whitelist SettingsIntelligence to read search indexables."

6 years agoMerge "Add config to use a display rule that ServiceState was considered" am: bbaa19cad3
Jordan Liu [Thu, 9 Nov 2017 19:35:09 +0000 (19:35 +0000)]
Merge "Add config to use a display rule that ServiceState was considered" am: bbaa19cad3
am: cd89929497

Change-Id: Ibc4bcf689d31d0841f97eac67578705ccc59dc8f

6 years agoMerge "Add config to use a display rule that ServiceState was considered"
Jordan Liu [Thu, 9 Nov 2017 18:51:30 +0000 (18:51 +0000)]
Merge "Add config to use a display rule that ServiceState was considered"
am: bbaa19cad3

Change-Id: I7adbdcdcefaf86e9cf6775aa23aac2618149cf92

6 years agoRevert "Allow IMEs to use light nav bar buttons"
Yohei Yukawa [Thu, 9 Nov 2017 18:45:13 +0000 (18:45 +0000)]
Revert "Allow IMEs to use light nav bar buttons"

This reverts commit af2e20e166171ba318da6fdcd824489ecead680f [1].

Reason of revert:
That commit causes an unexpected behavior change (Bug 69111208)
when the target application is using light navigation bar and
the IME does not override the navigation bar background color.

 [1]: I2cecadb82d14564d7019a9636918b06c3bcf433c

Bug: 69002467
Bug: 69002565
Fixes: 69111208
Test: Manually verified as follows:
  1. Make sure the current IME does not override navigation bar
     background color. (e.g. AOSP keyboard and SoftKeyboard sample)
  2. Open any app that specifies light nav bar (e.g. Settings app)
  3. Make sure that the navigation bar background is not dark and
     navigation bar buttons are rendered with dark color.
  4. Focus any EditText on that app.
  5. Make sure that Navigation bar background color becomes
     R.color.input_method_navigation_guard, which is black on AOSP.
     Also navigation bar buttons are rendered with light color.

Change-Id: I5e2e3007419f0ee81383b115f4073d5831c5d890

6 years agoMerge "Add config to use a display rule that ServiceState was considered"
Jordan Liu [Thu, 9 Nov 2017 18:24:16 +0000 (18:24 +0000)]
Merge "Add config to use a display rule that ServiceState was considered"

6 years agoMerge "Remove the OEM hook implementation and usage"
Jayachandran Chinnakkannu [Thu, 9 Nov 2017 18:00:28 +0000 (18:00 +0000)]
Merge "Remove the OEM hook implementation and usage"

6 years agoUse Skia API to detect if FP16 render buffer is supported
Stan Iliev [Thu, 9 Nov 2017 17:17:35 +0000 (12:17 -0500)]
Use Skia API to detect if FP16 render buffer is supported

Use Skia GrCaps to detect if we can render into a FP16 buffer.
Exclude Extension class initialization from SkiaGL pipeline.

Bug: 68383159
Test: Passed testWindowProducerCopyToRGBA16F on gce_x86_phone emu
Change-Id: I3355bad891ed5403fbd94d18bb8ba110a3b77325

6 years agoMerge "Rename NightDisplayController and -Service"
Christine Franks [Thu, 9 Nov 2017 17:50:11 +0000 (17:50 +0000)]
Merge "Rename NightDisplayController and -Service"

6 years agoWhitelist SettingsIntelligence to read search indexables.
Fan Zhang [Wed, 8 Nov 2017 19:26:44 +0000 (11:26 -0800)]
Whitelist SettingsIntelligence to read search indexables.

This permission used to be Settings. With moving ranking to
SettingsIntelligence we need to move permission whitelisting as well

In a follow up we will remove the permission from Settings list.

Bug: 65065268
Test: flash with a clean build
Change-Id: I81fafe0b390df5990989da81629e4c6d67f1480a

6 years agoMerge "moveTaskToBack also moves ActivityStack to back"
Evan Rosky [Thu, 9 Nov 2017 17:39:59 +0000 (17:39 +0000)]
Merge "moveTaskToBack also moves ActivityStack to back"

6 years agoMerge "Update work icon in share sheet"
TreeHugger Robot [Thu, 9 Nov 2017 17:37:21 +0000 (17:37 +0000)]
Merge "Update work icon in share sheet"

6 years agoMerge "Hide NetworkStatsFactory class"
Ricky Wai [Thu, 9 Nov 2017 17:14:28 +0000 (17:14 +0000)]
Merge "Hide NetworkStatsFactory class"

6 years agoMerge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL...
Jon Dormody [Thu, 9 Nov 2017 16:58:09 +0000 (16:58 +0000)]
Merge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL Exploits" into oc-dev am: 459735662f am: 13e959bbec am: d9696eb356
am: 5770dfd1e5

Change-Id: Ide1714d289c756891cbfd63db1eb549d4aa0dfbc

6 years agoMerge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL...
Jon Dormody [Thu, 9 Nov 2017 16:42:19 +0000 (16:42 +0000)]
Merge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL Exploits" into oc-dev am: 459735662f am: 13e959bbec
am: d9696eb356

Change-Id: I616cd581d38cdae91c53b31325e08919efd92a8c

6 years agoMerge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL...
Jon Dormody [Thu, 9 Nov 2017 16:26:50 +0000 (16:26 +0000)]
Merge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL Exploits" into oc-dev am: 459735662f
am: 13e959bbec

Change-Id: Ic15e947e38c10d394081598e2c2886854388996a

6 years agoMerge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL...
Jon Dormody [Thu, 9 Nov 2017 16:17:35 +0000 (16:17 +0000)]
Merge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL Exploits" into oc-dev
am: 459735662f

Change-Id: I31f036fa2365084454ac7899d92580e985bd9f21

6 years agoMerge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL...
Jon Dormody [Thu, 9 Nov 2017 16:05:13 +0000 (16:05 +0000)]
Merge "Docs: Added a link to Updating Your Security Provider to Protect Against SSL Exploits" into oc-dev

6 years agoMerge "Add DISALLOW_CONFIG_LOCALE user restriction"
Christine Franks [Thu, 9 Nov 2017 16:02:46 +0000 (16:02 +0000)]
Merge "Add DISALLOW_CONFIG_LOCALE user restriction"

6 years agoHide NetworkStatsFactory class
Ricky Wai [Thu, 9 Nov 2017 15:22:59 +0000 (15:22 +0000)]
Hide NetworkStatsFactory class

Test: Able to compile
Change-Id: I37f385c773120405c437643b5de406772a684dcd

6 years agoMerge "Add Network security watchlist service"
Ricky Wai [Thu, 9 Nov 2017 13:35:12 +0000 (13:35 +0000)]
Merge "Add Network security watchlist service"

6 years agoMerge "MacAddress follow-up: define the core of the class" am: cd35c65b5b am: d39a50350a
Hugo Benichi [Thu, 9 Nov 2017 12:55:56 +0000 (12:55 +0000)]
Merge "MacAddress follow-up: define the core of the class" am: cd35c65b5b am: d39a50350a
am: f7c0f2e6bf

Change-Id: Iaa55c54a46844428da0ddd9d0a5ee899c0aa1dfb

6 years agoMerge "MacAddress follow-up: define the core of the class" am: cd35c65b5b
Hugo Benichi [Thu, 9 Nov 2017 12:43:52 +0000 (12:43 +0000)]
Merge "MacAddress follow-up: define the core of the class" am: cd35c65b5b
am: d39a50350a

Change-Id: I1063cbb5a468818f68ee5406e52b6cd74c85c4bf

6 years agoMerge "MacAddress follow-up: define the core of the class"
Hugo Benichi [Thu, 9 Nov 2017 12:34:40 +0000 (12:34 +0000)]
Merge "MacAddress follow-up: define the core of the class"
am: cd35c65b5b

Change-Id: Ic86df7e56a63d3f84ccaebefa904c7625105c581

6 years agoMerge "MacAddress follow-up: define the core of the class"
Hugo Benichi [Thu, 9 Nov 2017 12:22:17 +0000 (12:22 +0000)]
Merge "MacAddress follow-up: define the core of the class"

6 years agoUpdate work icon in share sheet
Tony Mak [Thu, 9 Nov 2017 10:56:56 +0000 (10:56 +0000)]
Update work icon in share sheet

Test: Open apps with custom share sheet, observe the new icon.

BUG=69028605

Change-Id: Ie3e1172099d347bd504287cfe4f5e1fcf54b97f7

6 years agoMerge "Replace work profile icon with the new one"
TreeHugger Robot [Thu, 9 Nov 2017 10:37:00 +0000 (10:37 +0000)]
Merge "Replace work profile icon with the new one"

6 years agoMerge "Remove old getLinks method"
Richard Ledley [Thu, 9 Nov 2017 10:19:47 +0000 (10:19 +0000)]
Merge "Remove old getLinks method"

6 years agoMacAddress follow-up: define the core of the class
Hugo Benichi [Wed, 8 Nov 2017 15:22:25 +0000 (00:22 +0900)]
MacAddress follow-up: define the core of the class

Test: new unit test parts of $ runtest frameworks-net
Change-Id: I08c57d2d656802f7bdd7a93fde711a7e77247583

6 years agoMerge "Add callback to DragDropController."
TreeHugger Robot [Thu, 9 Nov 2017 05:01:46 +0000 (05:01 +0000)]
Merge "Add callback to DragDropController."

6 years agoMerge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"" am:...
Andreas Gampe [Thu, 9 Nov 2017 03:50:30 +0000 (03:50 +0000)]
Merge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"" am: 08efd36872 am: 8249a5d677
am: e640dd1fd8

Change-Id: I7cc9deb80122ca587d5c711fd84ad8c217aaa438

6 years agoCarrier confirmation code.
Holly Jiuyu Sun [Sat, 14 Oct 2017 02:06:34 +0000 (19:06 -0700)]
Carrier confirmation code.

If confirmation code is null and required during downloading a profile,
returns a resovable error, and show ConfirmationCodeActivity. After we
get the confirmation code from the user, continue the operation.

Add the confirmationCode as a member in DownloadableSubscription.

Test: unit test, e2e on phone
Bug: 36730837
Change-Id: Ibe1e0fc5ddb736b411faf48ec9bea3c68972bb99

6 years agoMerge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"" am:...
Andreas Gampe [Thu, 9 Nov 2017 03:40:32 +0000 (03:40 +0000)]
Merge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"" am: 08efd36872
am: 8249a5d677

Change-Id: I28aa38d66ab9c59c269157aff71edec5bd440942

6 years agoMerge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive""
Andreas Gampe [Thu, 9 Nov 2017 03:32:07 +0000 (03:32 +0000)]
Merge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive""
am: 08efd36872

Change-Id: I97b6bbce9a969f06b923bebd60ccf9a5dee91e9e

6 years agoMerge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive""
Treehugger Robot [Thu, 9 Nov 2017 03:21:27 +0000 (03:21 +0000)]
Merge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive""

6 years agoMerge "Provide interface to temporarily fetch screenshot."
Winson Chung [Thu, 9 Nov 2017 02:32:20 +0000 (02:32 +0000)]
Merge "Provide interface to temporarily fetch screenshot."

6 years agoMerge "Battery saver preliminary changes for P."
TreeHugger Robot [Thu, 9 Nov 2017 02:06:59 +0000 (02:06 +0000)]
Merge "Battery saver preliminary changes for P."

6 years agoMerge changes Iae56bcd2,I5b2e37c3
TreeHugger Robot [Thu, 9 Nov 2017 01:57:02 +0000 (01:57 +0000)]
Merge changes Iae56bcd2,I5b2e37c3

* changes:
  Fixed logic issue with WC.supportsSplitScreenWindowingMode()
  Don't move home task forward in some cases.

6 years agoMerge "WebView: clarify Safe Browsing opt-in in docs"
TreeHugger Robot [Thu, 9 Nov 2017 01:52:19 +0000 (01:52 +0000)]
Merge "WebView: clarify Safe Browsing opt-in in docs"

6 years agoMerge "Optimizations to reduce verity verification time"
TreeHugger Robot [Thu, 9 Nov 2017 01:42:44 +0000 (01:42 +0000)]
Merge "Optimizations to reduce verity verification time"

6 years agoMerge "Allow standby timeouts to occur after usage"
TreeHugger Robot [Thu, 9 Nov 2017 01:35:22 +0000 (01:35 +0000)]
Merge "Allow standby timeouts to occur after usage"

6 years agoMerge "Allow IMEs to use light nav bar buttons"
Yohei Yukawa [Thu, 9 Nov 2017 01:33:07 +0000 (01:33 +0000)]
Merge "Allow IMEs to use light nav bar buttons"

6 years agomoveTaskToBack also moves ActivityStack to back
Evan Rosky [Thu, 2 Nov 2017 21:19:27 +0000 (14:19 -0700)]
moveTaskToBack also moves ActivityStack to back

Bug: 67931573
Bug: 68952157
Test: manually tested with apps launching chrome. CTS
      ActivityManagerAppConfigurationTests#testTaskMoveToBackOrientation
      now passes again.
Change-Id: Ibe73e1d6accd5fd1f09d193305b1d9697ee19d97

6 years agoAdd callback to DragDropController.
Daichi Hirono [Wed, 13 Sep 2017 03:23:57 +0000 (12:23 +0900)]
Add callback to DragDropController.

The callback allows vendor code to hook drag and drop operations.

Bug: 63914027
Test: Manually drag and drop files between apps, CTS
      CrossAppDragAndDropTests
Change-Id: I33bf907b7c024a485c51bd87d7c4839718ebeb13

6 years agoMerge "Unhide MAKE_USER_EPHEMERAL"
TreeHugger Robot [Thu, 9 Nov 2017 00:39:57 +0000 (00:39 +0000)]
Merge "Unhide MAKE_USER_EPHEMERAL"

6 years agoAdd metric for private dns dialog
jackqdyulei [Thu, 9 Nov 2017 00:23:43 +0000 (16:23 -0800)]
Add metric for private dns dialog

1. DIALOG_PRIVATE_DNS
2. ACTION_PRIVATE_DNS_MODE

Bug: 68030013
Test: Build
Change-Id: I9f5aa7611ab6be27bd35ca99cc97197cfdf2ab7a

6 years agoDocs: Added a link to Updating Your Security Provider to Protect Against
Jonathan Dormody [Wed, 8 Nov 2017 23:58:16 +0000 (16:58 -0700)]
Docs: Added a link to Updating Your Security Provider to Protect Against
SSL Exploits

Test: make ds-docs

Bug: 19110275
Change-Id: I3b0a35715c16c4e30a47aab9cbaf991770426c57

6 years agoMerge "Fix issue with accessibility when switching users"
TreeHugger Robot [Thu, 9 Nov 2017 00:02:46 +0000 (00:02 +0000)]
Merge "Fix issue with accessibility when switching users"

6 years agoMerge "Remove ImsService Feature Interfaces" am: abfdf0e03d am: 61fb76d9a0
Brad Ebinger [Wed, 8 Nov 2017 23:24:27 +0000 (23:24 +0000)]
Merge "Remove ImsService Feature Interfaces" am: abfdf0e03d am: 61fb76d9a0
am: 36521b89fe

Change-Id: Ib0bc09870473c437639a4026835a0bc26e6c6b0d

6 years agoOptimizations to reduce verity verification time
Victor Hsieh [Wed, 8 Nov 2017 18:25:11 +0000 (10:25 -0800)]
Optimizations to reduce verity verification time

Test: with CPU locked to low freq, verification time of a 400 MB apk is
      reduced from about 2528 ms to 1942 ms, vs 915 ms of the old
      algorithm.  Writing directly into ByteBuffer's backing array saves
      around 100 ms but it does not work for DirectByteBuffer, thus I
      didn't implement this optimization.
Bug: 30972906
Change-Id: I00cf782e18a8351569eaf4593188c1ce6796a634

6 years agoMerge "Remove ImsService Feature Interfaces" am: abfdf0e03d
Brad Ebinger [Wed, 8 Nov 2017 23:13:35 +0000 (23:13 +0000)]
Merge "Remove ImsService Feature Interfaces" am: abfdf0e03d
am: 61fb76d9a0

Change-Id: Ib8602579b1028fd086c4fc0a13897a671bb6b73e

6 years agoAllow standby timeouts to occur after usage
Amith Yamasani [Tue, 7 Nov 2017 21:59:37 +0000 (13:59 -0800)]
Allow standby timeouts to occur after usage

And inform listeners when the bucket changes, not just when
going in and out of RARE bucket.
Avoid redundant callbacks when informing listeners.

Bug: 63527785
Test: runtest -x
frameworks/base/services/tests/servicestests/src/com/android/server/usage/AppStandbyControllerTests.java
Change-Id: Icd98d59f597147fbf8ea4bf44edf4b3b3d5c8e14

6 years agoMerge "Remove ImsService Feature Interfaces"
Brad Ebinger [Wed, 8 Nov 2017 23:04:09 +0000 (23:04 +0000)]
Merge "Remove ImsService Feature Interfaces"
am: abfdf0e03d

Change-Id: Ie142d4673c2a3930b3e7c3bcba617e5e26c8fb9c

6 years agoProvide interface to temporarily fetch screenshot.
Winson Chung [Wed, 8 Nov 2017 22:32:32 +0000 (14:32 -0800)]
Provide interface to temporarily fetch screenshot.

Bug: 68774229
Test: Build nexus launcher and verify we can call to get the screenshot
Change-Id: I6a5456efca94f45cda000fe9e097ec524540592b

6 years agoMerge "Remove ImsService Feature Interfaces"
Brad Ebinger [Wed, 8 Nov 2017 22:54:33 +0000 (22:54 +0000)]
Merge "Remove ImsService Feature Interfaces"

6 years agoFixed logic issue with WC.supportsSplitScreenWindowingMode()
Wale Ogunwale [Wed, 8 Nov 2017 22:52:40 +0000 (14:52 -0800)]
Fixed logic issue with WC.supportsSplitScreenWindowingMode()

A container can support split-screen windowing mode while in pinned or
freeform mode. However, there were some call-points that were using the
method to determine if the container is affected by the split-screen
stack resizing. So, just created a new method
ActivityStack.affectedBySplitScreenResize() for those.

Change-Id: Iae56bcd2cb696179dda39b77a69035d5f067a23d
Fixes: 68762925
Test: go/wm-smoke
Test: Manual steps from bug.

6 years agoMerge "Fix assertFloatingToolbarDoesNotContainItem"
TreeHugger Robot [Wed, 8 Nov 2017 22:42:43 +0000 (22:42 +0000)]
Merge "Fix assertFloatingToolbarDoesNotContainItem"

6 years agoMerge "Add missed finish() call"
TreeHugger Robot [Wed, 8 Nov 2017 22:39:41 +0000 (22:39 +0000)]
Merge "Add missed finish() call"

6 years agoMerge "Don't let keyguard to influence orientation when dismissing"
TreeHugger Robot [Wed, 8 Nov 2017 22:37:11 +0000 (22:37 +0000)]
Merge "Don't let keyguard to influence orientation when dismissing"

6 years agoBattery saver preliminary changes for P.
Makoto Onuki [Wed, 8 Nov 2017 22:32:03 +0000 (14:32 -0800)]
Battery saver preliminary changes for P.

- Flags for force app standby for jobs and alarms, and sensors.
- Don't disable GPS when the screen is off.

Bug: 68769804
Test: manual
Change-Id: I13661498dbc25051f2be0423cb50a55e4e592dc4

6 years agoMerge "Restore legacy recents package check to unblock quickstep development"
Winson Chung [Wed, 8 Nov 2017 22:33:30 +0000 (22:33 +0000)]
Merge "Restore legacy recents package check to unblock quickstep development"

6 years agoMerge "Update wal mode of the connection when disabling WAL"
Fyodor Kupolov [Wed, 8 Nov 2017 22:21:21 +0000 (22:21 +0000)]
Merge "Update wal mode of the connection when disabling WAL"

6 years agoMerge "Implement SkSL cache"
TreeHugger Robot [Wed, 8 Nov 2017 21:59:05 +0000 (21:59 +0000)]
Merge "Implement SkSL cache"

6 years agoWebView: clarify Safe Browsing opt-in in docs
Nate Fischer [Wed, 8 Nov 2017 21:39:08 +0000 (13:39 -0800)]
WebView: clarify Safe Browsing opt-in in docs

No change to logic, just docs updates.

It looks like our documentation for the Safe Browsing manifest tag was
poor. This clarifies that the manifest opt-in should go inside the
application tag.

This also updates the documentation for MetricsOptOut, since this has
the same requirement.

Bug: 69007974
Test: make docs (verify it looks better)
Change-Id: Ieb29932f1460e3aa25c486b47692b63c0b87f509

6 years agoMerge "AAPT2: Differentiate between Android and Java package names"
TreeHugger Robot [Wed, 8 Nov 2017 21:08:26 +0000 (21:08 +0000)]
Merge "AAPT2: Differentiate between Android and Java package names"

6 years agoMerge "Disable integer sanitizer in release function." am: 969ceebc5d am: cd9e2c04fa
Ivan Lozano [Wed, 8 Nov 2017 20:37:58 +0000 (20:37 +0000)]
Merge "Disable integer sanitizer in release function." am: 969ceebc5d am: cd9e2c04fa
am: 71f9c0aa4a

Change-Id: I07b5e209fca1c5ec932bd8b45e214f09dc822dde

6 years agoDon't move home task forward in some cases.
Wale Ogunwale [Wed, 8 Nov 2017 16:58:03 +0000 (08:58 -0800)]
Don't move home task forward in some cases.

Don't move the home task forward if we are starting an activity from
recent in split-screen mode since recents should still be visible in
this case.

Change-Id: I5b2e37c3644983f6feb08c09a10d15d7aa2bc45a
Fixes: 68489631
Test: go/wm-smoke
Test: Steps from bug.

6 years agoMerge "Disable integer sanitizer in release function." am: 969ceebc5d
Ivan Lozano [Wed, 8 Nov 2017 20:28:30 +0000 (20:28 +0000)]
Merge "Disable integer sanitizer in release function." am: 969ceebc5d
am: cd9e2c04fa

Change-Id: I0c586b04bf232703ddc33bf162ac82148f241e11

6 years agoMerge "Disable integer sanitizer in release function."
Ivan Lozano [Wed, 8 Nov 2017 20:20:06 +0000 (20:20 +0000)]
Merge "Disable integer sanitizer in release function."
am: 969ceebc5d

Change-Id: If880a4a81b11c32a5906ccc3f0d999ae515cfbc8

6 years agoMerge "Create a new user restriction to disallow user switching"
TreeHugger Robot [Wed, 8 Nov 2017 20:16:22 +0000 (20:16 +0000)]
Merge "Create a new user restriction to disallow user switching"

6 years agoDon't let keyguard to influence orientation when dismissing
Andrii Kulian [Tue, 10 Oct 2017 07:41:41 +0000 (00:41 -0700)]
Don't let keyguard to influence orientation when dismissing

When keyguard is being dismissed it still was overriding orientation
for the display, which caused report of wrong configuration to
activity that was becoming visible.

Bug: 66979760
Bug: 36897968
Fixes: 68131425
Test: Launch Unity 4 based game, lock and unlock screen, check UI
Test: com.android.server.wm.DisplayContentTests#testOrientationDefinedByKeyguard
Change-Id: I0a180b8e941a85ba4174a40cdec2ff0b8f3e00eb

6 years agoMerge "Disable integer sanitizer in release function."
Ivan Lozano [Wed, 8 Nov 2017 20:07:36 +0000 (20:07 +0000)]
Merge "Disable integer sanitizer in release function."

6 years agoMerge "Add OWNED_BY field." am: 107141be5c am: 9c7be233c3
yuemingw [Wed, 8 Nov 2017 19:54:54 +0000 (19:54 +0000)]
Merge "Add OWNED_BY field." am: 107141be5c am: 9c7be233c3
am: 592d620238

Change-Id: Ib023411485c971815f05e0b1e5894adbc725a6d8

6 years agoReplace work profile icon with the new one
Tony Mak [Wed, 8 Nov 2017 19:54:15 +0000 (19:54 +0000)]
Replace work profile icon with the new one

Test: Check Printing / Google Settings / Wifi data usage page,
      observe the new icon.

BUG: 69028605
Change-Id: I344dfe6d6a99a8fdadfd7283dc851ea865566c18

6 years agoMerge "Add OWNED_BY field." am: 107141be5c
yuemingw [Wed, 8 Nov 2017 19:45:14 +0000 (19:45 +0000)]
Merge "Add OWNED_BY field." am: 107141be5c
am: 9c7be233c3

Change-Id: Icf11a35867625a5a47450f5dc9a1b05ec00de502

6 years agoMerge "Add OWNED_BY field."
yuemingw [Wed, 8 Nov 2017 19:36:44 +0000 (19:36 +0000)]
Merge "Add OWNED_BY field."
am: 107141be5c

Change-Id: Ib3ee22a0407881e6e7e754ea3504f5568c0ac31a

6 years agoMerge "Add OWNED_BY field."
Treehugger Robot [Wed, 8 Nov 2017 19:28:37 +0000 (19:28 +0000)]
Merge "Add OWNED_BY field."

6 years agoMerge "Very initial field detection prototype."
TreeHugger Robot [Wed, 8 Nov 2017 19:13:39 +0000 (19:13 +0000)]
Merge "Very initial field detection prototype."

6 years agoAdd Network security watchlist service
Ricky Wai [Fri, 27 Oct 2017 13:46:01 +0000 (14:46 +0100)]
Add Network security watchlist service

Network security watchlist service is a service to monitor all potential
harmful network traffic. By setting a network watchlist, any connections
that visit any site from watchlist will be logged.

Logs will be aggregated everyday and encoded using differential
privacy before exporting it from framework.

This feature is disabled now, run "setprop ro.network_watchlist_enabled true" to enable it.

All network events are handled in an async bg thread, it should not
cause any delay in netd. Also, it uses the hooks in enterprise network logging,
so we can run netd_benchmark to measure the impact to netd.

Here are the things not included in this CL:
- ConfigUpdater to get and set watchlist
- Differential privacy encoding logic and reporting
- CTS
- Memory and performance optimization for internal watchlist data structure

Test: manual - turn on the feature, hard code a watchlist xml, process
that visited that domain is being logged in sqlite.
Test: run netd_benchmark - seems no obvious performance change.
Test: bit FrameworksCoreTests:android.net.NetworkWatchlistManagerTests
Test: runtest frameworks-net
Test: runtest frameworks-services -p com.android.server.net.watchlist

Bug: 63908748

Change-Id: I09595178bac0070a867bc5e0501a7bf2c840e398

6 years agoImplement SkSL cache
Stan Iliev [Mon, 9 Oct 2017 19:49:32 +0000 (15:49 -0400)]
Implement SkSL cache

Implement SkSL cache by reusing code and logic from egl_cache_t.

Test: Improves startup times for gmail by 15ms and 10ms for calc app.
Bug: 66740665
Change-Id: I9ba479c649ba97a2c29a48d40579ba001264c957

6 years agoThrow exception on non-finite floats
John Reck [Wed, 8 Nov 2017 17:38:13 +0000 (09:38 -0800)]
Throw exception on non-finite floats

Bug: 62780151
Test: CTS tests added
Change-Id: Ia1f7cbb8cf44ba7bac6d93ea4d11b73c7973a69a

6 years agoMerge "Fix signature for finalize() to resolve API Lint error" am: c8ff280e73 am...
nharold [Wed, 8 Nov 2017 18:46:41 +0000 (18:46 +0000)]
Merge "Fix signature for finalize() to resolve API Lint error" am: c8ff280e73 am: c09d405e1d
am: f61308b9e4

Change-Id: I4b91b3b01ef24d43439bbc41bc8acaa7c690522b

6 years agoAdd missed finish() call
Victor Hsieh [Wed, 8 Nov 2017 18:44:20 +0000 (10:44 -0800)]
Add missed finish() call

Note this is for code correctness and has no effect in current case.

Test: build
Bug: 30972906
Change-Id: I1dad13e75492da546c1d3717bbe2d23b9e5d9c90

6 years agoRename NightDisplayController and -Service
Christine Franks [Thu, 2 Nov 2017 01:35:16 +0000 (18:35 -0700)]
Rename NightDisplayController and -Service

Bug: 68258004
Test: make -j100 && runtest -x
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/AutoTileManagerTest.java
&& runtest -c com.android.server.ColorDisplayServiceTest
frameworks-services
Change-Id: I2b89942bd412e4d6958e65b62bc345fb1e60176f