OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add a global setting to turn on/off the proc state cpu times tracking."
Sudheer Shanka [Tue, 9 Jan 2018 02:28:51 +0000 (02:28 +0000)]
Merge "Add a global setting to turn on/off the proc state cpu times tracking."

6 years agoMerge "incidentd: Updating process state enum."
TreeHugger Robot [Tue, 9 Jan 2018 02:20:32 +0000 (02:20 +0000)]
Merge "incidentd: Updating process state enum."

6 years agoMerge "Remove SystemApi annotation from EuiccManager.getOtaStatus()"
TreeHugger Robot [Tue, 9 Jan 2018 02:03:01 +0000 (02:03 +0000)]
Merge "Remove SystemApi annotation from EuiccManager.getOtaStatus()"

6 years agoMerge "Fixes recents visibility when overview service connection changes"
TreeHugger Robot [Tue, 9 Jan 2018 01:56:58 +0000 (01:56 +0000)]
Merge "Fixes recents visibility when overview service connection changes"

6 years agoMerge "Work on issue #70859548: Reduce amount of time spent collecting pss data"
TreeHugger Robot [Tue, 9 Jan 2018 01:29:00 +0000 (01:29 +0000)]
Merge "Work on issue #70859548: Reduce amount of time spent collecting pss data"

6 years agoMerge "Adjust animation final crop bounds so it's in screen space."
Chavi Weingarten [Tue, 9 Jan 2018 01:27:31 +0000 (01:27 +0000)]
Merge "Adjust animation final crop bounds so it's in screen space."

6 years agoMerge "Remove DEMO_USER_SETUP_COMPLETE"
Christine Franks [Tue, 9 Jan 2018 00:56:08 +0000 (00:56 +0000)]
Merge "Remove DEMO_USER_SETUP_COMPLETE"

6 years agoAdd a global setting to turn on/off the proc state cpu times tracking.
Sudheer Shanka [Sat, 6 Jan 2018 01:25:46 +0000 (17:25 -0800)]
Add a global setting to turn on/off the proc state cpu times tracking.

Bug: 66953194
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Test: atest hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BstatsCpuTimesValidationTest.java
Change-Id: Id26476ad77c95994f358d8bd59b6c2e6513c4c54

6 years agoMerge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config...
Cassie Han [Tue, 9 Jan 2018 00:17:11 +0000 (00:17 +0000)]
Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." am: 9c1279d2ae am: 28dd9dfeb5
am: 658e7119a6

Change-Id: If54d03e016ef258b391540b46389f4e3d26e4cb6

6 years agoMerge "Add a Java FindAddress implentation." am: 9ea410a6f8 am: da4e3b68fb
Toby Sargeant [Tue, 9 Jan 2018 00:12:33 +0000 (00:12 +0000)]
Merge "Add a Java FindAddress implentation." am: 9ea410a6f8 am: da4e3b68fb
am: ef5218836d

Change-Id: Ic896c9f805330c28e9e0c3ca583f28e80bc47184

6 years agoMerge "Block location quick settings when disallow_config_location_mode is set."
TreeHugger Robot [Tue, 9 Jan 2018 00:01:03 +0000 (00:01 +0000)]
Merge "Block location quick settings when disallow_config_location_mode is set."

6 years agoMerge "Attribute procstate cpu times to correct battery/screen on/off buckets."
Sudheer Shanka [Mon, 8 Jan 2018 23:51:40 +0000 (23:51 +0000)]
Merge "Attribute procstate cpu times to correct battery/screen on/off buckets."

6 years agoMerge "Some fixes in duration metrics"
TreeHugger Robot [Mon, 8 Jan 2018 23:42:26 +0000 (23:42 +0000)]
Merge "Some fixes in duration metrics"

6 years agoHFP: Add APIs for set and get active device (1/3)
Jack He [Wed, 3 Jan 2018 20:13:26 +0000 (12:13 -0800)]
HFP: Add APIs for set and get active device (1/3)

1. Call BluetoothHeadset.setActiveDevice(BluetoothDevice device) to set
   a connected HFP/HSP device as active.
2. Listen for BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED intent
   that will contain the latest active device (in EXTRA_DEVICE field).
   If the active device could not be changed, the EXTRA_DEVICE
   field could be null.
3. If setActiveDevice() is NOT in-progress, BluetoothA2dp.getActiveDevice()
   can be used. If setActiveDevice() is in-progress, the result is undefined.
4. BluetoothHeadset.setActiveDevice() could be called by some other parts of
   the system, so interested parties should always listen for
   BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED intents and prepared
   for active device updates.

Bug: 68951996
Test: manual
Change-Id: I22ca639a04fed7bf17df59c405ddeda90dafb8ff
(cherry picked from commit 05f4bc40743654ea501b18d70ee162a08b81b35c)

6 years agoMerge "Reconnect overview service to launcher when its package name changes"
TreeHugger Robot [Mon, 8 Jan 2018 23:33:21 +0000 (23:33 +0000)]
Merge "Reconnect overview service to launcher when its package name changes"

6 years agoMerge "Renaming leftover from previous CL..."
TreeHugger Robot [Mon, 8 Jan 2018 23:09:32 +0000 (23:09 +0000)]
Merge "Renaming leftover from previous CL..."

6 years agoMerge "Sigh, people wrote tests with weird assumptions."
Jeff Sharkey [Mon, 8 Jan 2018 23:01:15 +0000 (23:01 +0000)]
Merge "Sigh, people wrote tests with weird assumptions."

6 years agoMerge changes I3610bfef,I7b898f21,I32ab03b1
TreeHugger Robot [Mon, 8 Jan 2018 22:53:07 +0000 (22:53 +0000)]
Merge changes I3610bfef,I7b898f21,I32ab03b1

* changes:
  Superficial improvements to ZOrderingTest.
  Ensure docked divider is below always-on-top stacks.
  Restore old stack Z ordering promotion.

6 years agoMerge "Keyguard slice layout fixes"
TreeHugger Robot [Mon, 8 Jan 2018 22:38:21 +0000 (22:38 +0000)]
Merge "Keyguard slice layout fixes"

6 years agoFixes recents visibility when overview service connection changes
Matthew Ng [Mon, 8 Jan 2018 22:26:40 +0000 (14:26 -0800)]
Fixes recents visibility when overview service connection changes

When the service is connected, it will immediately show the recents
button and when disconnected the button will be invisible.

Test: manual, toggle in launcher settings
Bug: 67957962
Change-Id: Ie36c4f0a50b6c3ae11e5367ae70a57ee16056e09

6 years agoMerge "Remove obsolete aidl list" am: abac8f7a86 am: 6b8fff4eb5
Colin Cross [Mon, 8 Jan 2018 22:28:31 +0000 (22:28 +0000)]
Merge "Remove obsolete aidl list" am: abac8f7a86 am: 6b8fff4eb5
am: 48d6926f38  -s ours

Change-Id: I71bf710fd98e857a69163ba2302db5369aa8337a

6 years agoMerge changes from topics "bt-hfp-add-set-active-device-method", "bt-system-api-annot...
Jack He [Mon, 8 Jan 2018 22:21:43 +0000 (22:21 +0000)]
Merge changes from topics "bt-hfp-add-set-active-device-method", "bt-system-api-annotations" am: 25259faa27 am: d16d93361b
am: b1ebd51c01  -s ours

Change-Id: I443bd449131bc242527229b3b238632d7ed1a8b7

6 years agoBlock location quick settings when disallow_config_location_mode is set.
yuemingw [Mon, 8 Jan 2018 22:12:05 +0000 (22:12 +0000)]
Block location quick settings when disallow_config_location_mode is set.

Bug: 67674888
Test: manual

Change-Id: I157e513ff556c99b1cf86a99c6f46023a044cef1

6 years agoMerge "Change warning message for roaming for DTAG."
Pankaj Kanwar [Mon, 8 Jan 2018 22:02:18 +0000 (22:02 +0000)]
Merge "Change warning message for roaming for DTAG."

6 years agoRemove DEMO_USER_SETUP_COMPLETE
Christine Franks [Mon, 8 Jan 2018 21:40:19 +0000 (13:40 -0800)]
Remove DEMO_USER_SETUP_COMPLETE

This @hide setting is no longer used.

Bug: 71594447
Test: make -j100
Change-Id: Ib412f4c16eabb5bedb9e4538db294bfdfb2a4478

6 years agoAdjust animation final crop bounds so it's in screen space.
chaviw [Mon, 8 Jan 2018 21:36:23 +0000 (13:36 -0800)]
Adjust animation final crop bounds so it's in screen space.

The final crop bounds for animations should use the screen space bounds
instead of stack bounds. Adjust the bounds so they're offset by the
stack position.

Test: WindowAnimationSpec#testApply_clipAfterOffsetPosition
Change-Id: Ibfda5ab505ee3206175e5f59e82f1c16f78d19c4
Fixes: 71619195

6 years agoMerge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config...
Cassie Han [Mon, 8 Jan 2018 21:28:02 +0000 (21:28 +0000)]
Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." am: 9c1279d2ae
am: 28dd9dfeb5

Change-Id: I9b8a48709850b545b806fb605d1d94e9cdefe1d0

6 years agoMerge "Move to libc++ from stlport." am: c6dd5f9037 am: 81da46f982
Dan Albert [Mon, 8 Jan 2018 21:25:59 +0000 (21:25 +0000)]
Merge "Move to libc++ from stlport." am: c6dd5f9037 am: 81da46f982
am: eff28b5863

Change-Id: Ia45b5a174feaddff5e5839a231af18fb5bb3cb7a

6 years agoMerge "Add a Java FindAddress implentation." am: 9ea410a6f8
Toby Sargeant [Mon, 8 Jan 2018 21:23:45 +0000 (21:23 +0000)]
Merge "Add a Java FindAddress implentation." am: 9ea410a6f8
am: da4e3b68fb

Change-Id: I7b2448fcb2edb4bc9000fd5e55f7295e6c6ff676

6 years agoMerge "Add virtual dtor for virtual classes" am: 27f61a94d6 am: 2d7813a4a7
Yi Kong [Mon, 8 Jan 2018 21:22:21 +0000 (21:22 +0000)]
Merge "Add virtual dtor for virtual classes" am: 27f61a94d6 am: 2d7813a4a7
am: 2807036b09

Change-Id: I3723483c2aac5580a7db3256a39eca278a3ee9fb

6 years agoMerge "Remove obsolete aidl list" am: abac8f7a86
Colin Cross [Mon, 8 Jan 2018 21:20:44 +0000 (21:20 +0000)]
Merge "Remove obsolete aidl list" am: abac8f7a86
am: 6b8fff4eb5

Change-Id: If5a5bf062a0fa586349763da9654b698dae0b30d

6 years agoMerge "Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry()."
TreeHugger Robot [Mon, 8 Jan 2018 21:17:30 +0000 (21:17 +0000)]
Merge "Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry()."

6 years agoMerge "Support using ImageDecoder with ContentResolver + URI"
Leon Scroggins [Mon, 8 Jan 2018 21:14:50 +0000 (21:14 +0000)]
Merge "Support using ImageDecoder with ContentResolver + URI"

6 years agoMerge changes from topics "bt-hfp-add-set-active-device-method", "bt-system-api-annot...
Jack He [Mon, 8 Jan 2018 21:13:52 +0000 (21:13 +0000)]
Merge changes from topics "bt-hfp-add-set-active-device-method", "bt-system-api-annotations" am: 25259faa27
am: d16d93361b

Change-Id: I525cbc81c450afafd3fcedaf7b1b5e4b17a4162a

6 years agoMerge "Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079...
Android Build Merger (Role) [Mon, 8 Jan 2018 21:12:57 +0000 (21:12 +0000)]
Merge "Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079 am: e3428dae04 am: fe73dd0542"

6 years agoMerge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079 am: e3428...
Pavlin Radoslavov [Mon, 8 Jan 2018 21:11:35 +0000 (21:11 +0000)]
Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079 am: e3428dae04
am: fe73dd0542

Change-Id: Ibf2e9fb0a5939f45a9d21bc06b26ef719ff9c58f

6 years agoMerge "Move to libc++ from stlport." am: c6dd5f9037
Dan Albert [Mon, 8 Jan 2018 21:09:59 +0000 (21:09 +0000)]
Merge "Move to libc++ from stlport." am: c6dd5f9037
am: 81da46f982

Change-Id: I3c7f169097ef1c4d17263893a18ad21b9dae7d49

6 years agoMerge "Allow stacks in split screen to show on lock screen."
Chavi Weingarten [Mon, 8 Jan 2018 21:09:06 +0000 (21:09 +0000)]
Merge "Allow stacks in split screen to show on lock screen."

6 years agoMerge "Add virtual dtor for virtual classes" am: 27f61a94d6
Yi Kong [Mon, 8 Jan 2018 21:07:09 +0000 (21:07 +0000)]
Merge "Add virtual dtor for virtual classes" am: 27f61a94d6
am: 2d7813a4a7

Change-Id: I8787ff83ec93f5a8ae2e08e1af573d13750d9aa5

6 years agoMerge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079
Pavlin Radoslavov [Mon, 8 Jan 2018 21:02:01 +0000 (21:02 +0000)]
Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079
am: e3428dae04

Change-Id: If220447db71398cc305eb7a702896e21959110c8

6 years agoRenaming leftover from previous CL...
Felipe Leme [Mon, 8 Jan 2018 20:59:33 +0000 (12:59 -0800)]
Renaming leftover from previous CL...

Test: echo 'In TreeHugger we trust!'

Bug: 71552872

Change-Id: I2b317c28cb7ec0e74b2cfa98338f9d64ff7dce3b

6 years agoSuperficial improvements to ZOrderingTest.
Robert Carr [Thu, 4 Jan 2018 02:26:04 +0000 (18:26 -0800)]
Superficial improvements to ZOrderingTest.

Looks a little cleaner like this. Mainly removed
the common mTransaction argument to the assertion function and
renamed it. Also added a helper for repeatedly passed args to create
windows.

Test: Test?
Change-Id: I3610bfefd7f193169930b97d3bf9e635b967cb17

6 years agoEnsure docked divider is below always-on-top stacks.
Robert Carr [Thu, 4 Jan 2018 02:07:51 +0000 (18:07 -0800)]
Ensure docked divider is below always-on-top stacks.

We need interleave it with the AppWindowToken hierarchy even
though it only has a WindowToken.

Fixes: 70318142
Fixes: 70675228
Fixes: 70178829
Test: Manual. ZOrderingTests.
Change-Id: I7b898f2157de85433416579efae5e01a9dcbf46c

6 years agoMerge "Remove app icon from USB dialogs"
TreeHugger Robot [Mon, 8 Jan 2018 20:53:24 +0000 (20:53 +0000)]
Merge "Remove app icon from USB dialogs"

6 years agoMerge "Implement a new type of section which reads from logd and dumps proto."
Yi Jin [Mon, 8 Jan 2018 20:52:54 +0000 (20:52 +0000)]
Merge "Implement a new type of section which reads from logd and dumps proto."

6 years agoReconnect overview service to launcher when its package name changes
Matthew Ng [Mon, 8 Jan 2018 20:50:27 +0000 (12:50 -0800)]
Reconnect overview service to launcher when its package name changes

Listen for broadcast intent filter ACTION_PACKAGE_ADDED to reconnect the
connection from overview to launcher.

Test: manual - enable/disable feature from launcher settings
Bug: 67957962
Change-Id: Ic069498ec2036bcb6ab6d95002d5c34027395360

6 years agoMerge "Generic Mutable class for HIDL code." am: 0f05ce94c3 am: a4ac12c3ac
Steven Moreland [Mon, 8 Jan 2018 20:44:51 +0000 (20:44 +0000)]
Merge "Generic Mutable class for HIDL code." am: 0f05ce94c3 am: a4ac12c3ac
am: 98fa8b7eb0

Change-Id: I0062c37e0fe119ee31b8c72396e2be706a6469a5

6 years agoSigh, people wrote tests with weird assumptions.
Jeff Sharkey [Mon, 8 Jan 2018 20:38:43 +0000 (13:38 -0700)]
Sigh, people wrote tests with weird assumptions.

They're mocking a mock.  Nelson called.

Test: bit FrameworksTelephonyTests:com.android.internal.telephony.ServiceStateTrackerTest
Bug: 71707742
Change-Id: I30db29808fb22ade2247446782ee1ec3d4b947cb

6 years agoMerge "Bluetooth: Remove strings for enabling inband ringing" am: 02a0397643 am:...
Jack He [Mon, 8 Jan 2018 20:34:04 +0000 (20:34 +0000)]
Merge "Bluetooth: Remove strings for enabling inband ringing" am: 02a0397643 am: 37f987d7ee
am: 8637bb7e46  -s ours

Change-Id: I8cf5acfb36a041a62b6be1b5af6ef77c9bc3e036

6 years agoMerge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73 am: d7319df4d0
nharold [Mon, 8 Jan 2018 20:29:11 +0000 (20:29 +0000)]
Merge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73 am: d7319df4d0
am: a07d0e463d

Change-Id: Ib96b30bcb1b47c23d0a18cf043dd042409c61322

6 years agoMerge "Generic Mutable class for HIDL code." am: 0f05ce94c3
Steven Moreland [Mon, 8 Jan 2018 20:25:30 +0000 (20:25 +0000)]
Merge "Generic Mutable class for HIDL code." am: 0f05ce94c3
am: a4ac12c3ac

Change-Id: I1914e805b15064b40b963840eddf87a0bbd41169

6 years agoMerge "Bluetooth: Remove strings for enabling inband ringing" am: 02a0397643
Jack He [Mon, 8 Jan 2018 20:20:19 +0000 (20:20 +0000)]
Merge "Bluetooth: Remove strings for enabling inband ringing" am: 02a0397643
am: 37f987d7ee

Change-Id: I2d5a62b3eb22bd10c350495726307674107778b4

6 years agoMerge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73
nharold [Mon, 8 Jan 2018 20:16:08 +0000 (20:16 +0000)]
Merge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73
am: d7319df4d0

Change-Id: If6ab575e2f30fc70d73e6f8787c87f3c7a2ab09d

6 years agoMerge "Insert org.apache.http.legacy at the start of the shared library list"
TreeHugger Robot [Mon, 8 Jan 2018 20:00:28 +0000 (20:00 +0000)]
Merge "Insert org.apache.http.legacy at the start of the shared library list"

6 years agoMerge "Dump a few more bits of history about TIME_TICK"
TreeHugger Robot [Mon, 8 Jan 2018 19:54:27 +0000 (19:54 +0000)]
Merge "Dump a few more bits of history about TIME_TICK"

6 years agoMerge "Exit split-screen when primary stack moved behind a fullscreen stack."
TreeHugger Robot [Mon, 8 Jan 2018 19:53:21 +0000 (19:53 +0000)]
Merge "Exit split-screen when primary stack moved behind a fullscreen stack."

6 years agoMerge "Add a hidden API to inject location."
Ram Periathiruvadi [Mon, 8 Jan 2018 19:41:51 +0000 (19:41 +0000)]
Merge "Add a hidden API to inject location."

6 years agoIgnores Resources.NotFoundException when setting ViewStructure.setTestIdEntry().
Felipe Leme [Mon, 8 Jan 2018 17:49:15 +0000 (09:49 -0800)]
Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry().

Test: manual verification using com.facebook.katana
Fixes: 71695541

Change-Id: Idefc7d3799f2ef5525a5050d63ca29a19cab730a

6 years agoEventLog when an executed job had been deferred by standby
Christopher Tate [Fri, 5 Jan 2018 00:10:26 +0000 (16:10 -0800)]
EventLog when an executed job had been deferred by standby

This gives us a way to review the impact of the deferral on jobs'
nominal timeliness.

Bug: 70297451
Test: manual
Change-Id: I0b5caab6ac7157aab1524f7b014e521f34400e1d

6 years agoMerge "Jobs now ignore standby bucketing while device is in parole"
Chris Tate [Mon, 8 Jan 2018 19:25:31 +0000 (19:25 +0000)]
Merge "Jobs now ignore standby bucketing while device is in parole"

6 years agoSome fixes in duration metrics
Yao Chen [Mon, 8 Jan 2018 19:17:11 +0000 (11:17 -0800)]
Some fixes in duration metrics

+ Don't need to keep the condition key if the condition is not sliced.
+ Whiten the hash before returning.

Test: statsd_test
Change-Id: Ie0bcb14b3adc4a15b79ba3be050431a672a68c28

6 years agoAllow stacks in split screen to show on lock screen.
chaviw [Fri, 5 Jan 2018 01:05:05 +0000 (17:05 -0800)]
Allow stacks in split screen to show on lock screen.

The change in ag/3345710 prevented all non full screen stacks from
showing on lock screen. Instead allow split screen and full screen
stack to show on lock screen. Split screen stacks will become full
screen when shown on lock screen.

Fixes: 70919978
Test: Put an app into split screen. Lock screen. Receive a phone call.
      Screen will now properly turn on and show dialer in full screen.

Change-Id: I3759cb4b68a7bdad478b5b603b19140965a24b61

6 years agoMerge "ScanResult: Add radio chain information"
TreeHugger Robot [Mon, 8 Jan 2018 19:06:11 +0000 (19:06 +0000)]
Merge "ScanResult: Add radio chain information"

6 years agoMerge "Make sure updateSurfaceSize gets applied after changing config"
TreeHugger Robot [Mon, 8 Jan 2018 19:05:07 +0000 (19:05 +0000)]
Merge "Make sure updateSurfaceSize gets applied after changing config"

6 years agoMerge "Remove all references to FDE enable wipe"
TreeHugger Robot [Mon, 8 Jan 2018 18:59:45 +0000 (18:59 +0000)]
Merge "Remove all references to FDE enable wipe"

6 years agoKeyguard slice layout fixes
Lucas Dupin [Sat, 6 Jan 2018 01:02:43 +0000 (17:02 -0800)]
Keyguard slice layout fixes

Fixes a series of line break and text layout issues.
Now we have proper text length limit and ellipsize it
correctly.

Change-Id: Idf915b56ee6ee923ce4f1cc21a0c57ff5d0a99ca
Fixes: 71634498
Fixes: 71599239
Fixes: 71476950
Fixes: 71576197
Test: Visual

6 years agoMerge "Move signing data into SigningDetails container"
Patrick Baumann [Mon, 8 Jan 2018 18:56:40 +0000 (18:56 +0000)]
Merge "Move signing data into SigningDetails container"

6 years agoExit split-screen when primary stack moved behind a fullscreen stack.
Bryce Lee [Fri, 5 Jan 2018 17:00:49 +0000 (09:00 -0800)]
Exit split-screen when primary stack moved behind a fullscreen stack.

Activities can request their task be moved to the back of the stack,
which subsequently causes the stack to move as well. When the stack
is a split screen primary stack, this causes an ordering issue where
the secondary will not move back while a fullscreen stack has moved
in front of the primary. This leads to further ordering issues once
the front secondary is dismissed as other stacks are also in the
secondary windowing mode.

To address this issue, we exit split-screen mode when the primary
split-screen stack is moved back.

Test: atest ActivityStackTests#testPrimarySplitScreenToFullscreenWhenMovedToBack
Change-Id: Ic0597831e046a254b3cba216e1cb2fb11191f2c6
Fixes: 69662547

6 years agoMerge "Log vibrations in realtime, not the monotonic clock base."
TreeHugger Robot [Mon, 8 Jan 2018 18:05:39 +0000 (18:05 +0000)]
Merge "Log vibrations in realtime, not the monotonic clock base."

6 years agoSupport using ImageDecoder with ContentResolver + URI
Leon Scroggins III [Mon, 11 Dec 2017 18:47:23 +0000 (13:47 -0500)]
Support using ImageDecoder with ContentResolver + URI

Bug: 63909536
Test: CTS: I0f36ce34c968fd7fae4d8edebabea3a421859615

Add ImageDecoder.createSource(ContentResolver, URI), allowing a client
to decode images from files, content, resources, etc.

Prefer using a file descriptor to using an InputStream so the input can
be cheaply seeked and rewound if necessary.

Make ImageDecoder implement AutoCloseable to handle closing the input.

Make decodeDrawable/decodeBitmap always return an object or throw an
IOException. Avoid checking for a file in the Source constructor.

Fix a bug where inner Exception classes were not static.

Update JavaInputStreamAdaptor to be usable by ImageDecoder:
- previously it always swallowed exceptions. Allow them to propagate
  (optionally) so that they can be reported back to the client.
- Add refs to the InputStream and byte[]. ImageDecoder returns from
  native and then uses the JavaInputStreamAdaptor again, making the
  local refs go out of scope.
- Hold on to the JavaVM and convert to the JNIEnv when necessary. Pass
  local env pointers to avoid looking it up multiple times in one call.
- If an exception is thrown inside the doRead() loop, return the number
  of bytes successfully read.

Change-Id: I869dad55521cf942efd010c06baf3f44c1c08374

6 years agoMerge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config."
Cassie Han [Mon, 8 Jan 2018 17:32:39 +0000 (17:32 +0000)]
Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config."
am: 9c1279d2ae

Change-Id: I2c5c351cbe01bd5bd66d15a382ff6df5bede8c6a

6 years agoMerge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config."
Cassie Han [Mon, 8 Jan 2018 17:25:26 +0000 (17:25 +0000)]
Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config."

6 years agoMerge "Fix canAffectSystemUiFlags"
Jorim Jaggi [Mon, 8 Jan 2018 17:19:54 +0000 (17:19 +0000)]
Merge "Fix canAffectSystemUiFlags"

6 years agoScanResult: Add radio chain information
Roshan Pius [Fri, 27 Oct 2017 22:12:51 +0000 (15:12 -0700)]
ScanResult: Add radio chain information

On devices with multiple radio chains, each scan result could be
received using different combination of the available radio chains
(DBS, MCC). Add a new parameter in the scan result to convey this meta
information about the scan result.

Bug: 68335251
Test: Unit tests
Change-Id: I1fc97745b9e74b768b67b0c80e52ce4a13e69527

6 years agoMerge "Make sure app transition are started simultaneously"
Jorim Jaggi [Mon, 8 Jan 2018 17:13:50 +0000 (17:13 +0000)]
Merge "Make sure app transition are started simultaneously"

6 years agoMerge "Revert "Avoid setting size/position on Transaction if not needed""
Jorim Jaggi [Mon, 8 Jan 2018 17:05:23 +0000 (17:05 +0000)]
Merge "Revert "Avoid setting size/position on Transaction if not needed""

6 years agoInsert org.apache.http.legacy at the start of the shared library list
Paul Duffin [Mon, 2 Oct 2017 10:16:25 +0000 (11:16 +0100)]
Insert org.apache.http.legacy at the start of the shared library list

Ensure consistent behaviour depending on whether OAHL is on the
bootclasspath or not.

When OAHL is on the bootclasspath the search order is (where ... is the
other libraries on the bootclasspath):
   OAHL
   ...
   shared libraries
   optional shared libraries
   APK

Prior to this change the OAHL was added to the end of the shared
library list which meant the search order (when OAHL is not on the
bootclasspath) would be:
   ...
   shared libraries
   OAHL
   optional shared libraries
   APK

After this change the order will be:
   ...
   OAHL
   shared libraries
   optional shared libraries
   APK

The slight difference at the beginning is not an issue because there are
no conflicting resources or class files between OAHL and the other boot
libraries.

Bug: 65552462
Bug: 18027885
Test: build, flash, check systrace when starting GoogleDialer
Change-Id: Ifcb4d50c13e35eebac4d18f8f0f10dd0734e8896

6 years agoMerge "Remove unused target legacy.test.stubs"
Paul Duffin [Mon, 8 Jan 2018 16:46:39 +0000 (16:46 +0000)]
Merge "Remove unused target legacy.test.stubs"

6 years agoRevert "Avoid setting size/position on Transaction if not needed"
Jorim Jaggi [Mon, 8 Jan 2018 16:33:30 +0000 (17:33 +0100)]
Revert "Avoid setting size/position on Transaction if not needed"

Reason: Causes weird issues with transaction reordering

Fixes: 71694437
Fixes: 71692657
This reverts commit 88f620534f9fe2c3a32765b2a34d3092ab889b1a.

6 years agoMerge "Fix window move animation duration scale"
Jorim Jaggi [Mon, 8 Jan 2018 16:33:08 +0000 (16:33 +0000)]
Merge "Fix window move animation duration scale"

6 years agoMake sure updateSurfaceSize gets applied after changing config
Jorim Jaggi [Mon, 8 Jan 2018 15:23:00 +0000 (16:23 +0100)]
Make sure updateSurfaceSize gets applied after changing config

Otherwise we'll apply the old size.

Test: Rotate screen, make sure size is correct.
Test: go/wm-smoke
Change-Id: Ic9474952801241a16c344175104ec2b5d45e7ec8

6 years agoAdd a hidden API to inject location.
Ram Periathiruvadi [Sat, 9 Dec 2017 02:35:10 +0000 (18:35 -0800)]
Add a hidden API to inject location.

New API allows system clients with LOCATION_HARDWARE and
ACCESS_FINE_LOCATION to inject a location to the Location Manager.  This
is useful in products like Auto, where the location needs to be cached
across reboots.

Bug: b/64125396
Test: Foll. were tested:
1. location can be injected when lastLocation is not available
2. location cannot be injected when lastLocation is already available
Also, tested location availability on different devices for sanity.
Change-Id: I1fd060caafed0431074ae64439ac52e99e0d6032

6 years agoMerge "Add null checking in onUidRemovedLocked"
TreeHugger Robot [Mon, 8 Jan 2018 16:18:50 +0000 (16:18 +0000)]
Merge "Add null checking in onUidRemovedLocked"

6 years agoLog vibrations in realtime, not the monotonic clock base.
Michael Wright [Mon, 8 Jan 2018 15:54:05 +0000 (15:54 +0000)]
Log vibrations in realtime, not the monotonic clock base.

Also, keep more vibration logs around for debugging by default and do a
bit of clean up in VibratorService.

Bug: 70283106
Test: flash, run dumpsys vibrator
Change-Id: Ib541be0ed97cdc6e2fda278fa59896d2fde20228

6 years agoMake sure app transition are started simultaneously
Jorim Jaggi [Fri, 5 Jan 2018 17:28:36 +0000 (18:28 +0100)]
Make sure app transition are started simultaneously

Test: go/wm-smoke
Test: Lock device in split screen, make sure everything is
absolutely synchronized when unlocking

Bug: 64674361
Change-Id: I25352d7a6b8beb9729310dd525710dca20a78166

6 years agoAdd null checking in onUidRemovedLocked
Tony Mak [Mon, 8 Jan 2018 14:35:34 +0000 (14:35 +0000)]
Add null checking in onUidRemovedLocked

Bug: 71697620

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.CrossProfileAppsHostSideTest
Change-Id: I6d7f70c01ab3d6b077ffeb9a076d46159a633682

6 years agoMerge "Clean-up brightness configuration."
TreeHugger Robot [Mon, 8 Jan 2018 13:50:50 +0000 (13:50 +0000)]
Merge "Clean-up brightness configuration."

6 years agoFix window move animation duration scale
Jorim Jaggi [Mon, 8 Jan 2018 13:38:53 +0000 (14:38 +0100)]
Fix window move animation duration scale

Test: go/wm-smoke
Test: Adjust duration scale, observe windows are moving slower

Change-Id: Iac08be3341c5f80b2723bee23f974ebebdcd07fa
Fixes: 71683150

6 years agoFix canAffectSystemUiFlags
Jorim Jaggi [Mon, 8 Jan 2018 12:16:59 +0000 (13:16 +0100)]
Fix canAffectSystemUiFlags

While trying to simplify the method, a bit too much was
simplified. We still need the translucent check in all cases.

Test: go/wm-smoke
Test: WindowStateTests

Change-Id: Ibd4275ddb80a9ef768a0c39ac53a9edeea431411
Fixes: 71512667

6 years agoMerge "Add a Java FindAddress implentation."
Toby Sargeant [Mon, 8 Jan 2018 12:16:00 +0000 (12:16 +0000)]
Merge "Add a Java FindAddress implentation."
am: 9ea410a6f8

Change-Id: Iff0adac9310f836df5f75c64c17ea3c72cd940d4

6 years agoMerge "Add a Java FindAddress implentation."
Toby Sargeant [Mon, 8 Jan 2018 12:05:12 +0000 (12:05 +0000)]
Merge "Add a Java FindAddress implentation."

6 years agoMerge "Copy child window list when destroying surface"
Jorim Jaggi [Mon, 8 Jan 2018 12:02:07 +0000 (12:02 +0000)]
Merge "Copy child window list when destroying surface"

6 years agoMerge "Start BackupManagerConstants content observer"
TreeHugger Robot [Mon, 8 Jan 2018 11:45:49 +0000 (11:45 +0000)]
Merge "Start BackupManagerConstants content observer"

6 years agoStart BackupManagerConstants content observer
Bartosz Fabianowski [Fri, 5 Jan 2018 10:56:26 +0000 (11:56 +0100)]
Start BackupManagerConstants content observer

BackupManagerConstants has a content observer that is meant to be
notified whenever backup settings change. However, that observer is
never registered.

Bug: 71622864
Test: cts-tradefed run cts-dev --module CtsBackupHostTestCase
Change-Id: Icbd90ef3af83dd2f29e26a5d787505bcf5681154

6 years agoMerge "Tidy up DexLoggerIntegrationTests."
Alan Stokes [Mon, 8 Jan 2018 09:48:43 +0000 (09:48 +0000)]
Merge "Tidy up DexLoggerIntegrationTests."

6 years agoMerge "Add AndroidTest.xml for privacy tests."
Peter Visontay [Mon, 8 Jan 2018 09:12:44 +0000 (09:12 +0000)]
Merge "Add AndroidTest.xml for privacy tests."

6 years agoMerge "Parameter to hide bottom affordances"
TreeHugger Robot [Mon, 8 Jan 2018 07:33:19 +0000 (07:33 +0000)]
Merge "Parameter to hide bottom affordances"

6 years agoMerge "[RTT2] Clean-up the RTT service name"
TreeHugger Robot [Mon, 8 Jan 2018 06:30:57 +0000 (06:30 +0000)]
Merge "[RTT2] Clean-up the RTT service name"

6 years agoRemove SystemApi annotation from EuiccManager.getOtaStatus()
Jiyong Park [Mon, 8 Jan 2018 05:08:17 +0000 (14:08 +0900)]
Remove SystemApi annotation from EuiccManager.getOtaStatus()

EuiccManager.getOtaStatus() has been annotated as @SystemApi, but its
declaring class EuiccManager has not. Therefore, the method hasn't been
recognized as SystemApi (does not appear in system-current.txt) and no
app is using the method.

This hasn't been harmful, but will soon trigger CTS failures when we do
the exact match for SystemAPIs; a runtime entity annotated as @SystemApi
have to exist in the documented API (e.g. system-current.txt). So
removing this no-op annotation.

Bug: 67891551
Test: m -j checkapi
Change-Id: I570ef5e5c88b6b9162116d3d3a7b17367efa9d7f

6 years agoMerge "Add DataUnit to clarify SI-vs-IEC units."
Jeff Sharkey [Mon, 8 Jan 2018 02:08:17 +0000 (02:08 +0000)]
Merge "Add DataUnit to clarify SI-vs-IEC units."