Commit Graph

85774 Commits

Author SHA1 Message Date
Kweku Adams
85f2fbcb1f incidentd: dumping jobscheduler to proto
Bug: 65750819
Test: flash device and check incident.proto output
Also test: $ cts-tradefed run cts-dev --module CtsIncidentHostTestCases --test com.android.server.cts.JobSchedulerIncidentTest
Change-Id: I4abc01ca893edcbaf4d2254e4f807e06f5cb91f8
2018-01-09 12:05:39 -08:00
Etan Cohen
e73f12ff8c Merge changes I620d8e72,I532ca35c
* changes:
  [RTT2] System API for a Responder Configuration
  [RTT2] Baseline public Wi-Fi RTT API
2018-01-09 19:16:51 +00:00
TreeHugger Robot
fe3cc4b996 Merge "Initial commit of updatable media API" 2018-01-09 19:05:15 +00:00
Patrick Baumann
229d2cdba3 Merge "Revert "Move signing data into SigningDetails container"" 2018-01-09 18:39:45 +00:00
Kodlee Yin
245a749dd6 Merge "Fix compatibility in MessagingStyle." 2018-01-09 18:22:07 +00:00
TreeHugger Robot
345d957f45 Merge "Deprecates classes associated with old ContextHubManager APIs" 2018-01-09 16:26:29 +00:00
Patrick Baumann
3d70a03aa9 Revert "Move signing data into SigningDetails container"
This reverts commit 47117fcd78.

Reason for revert: boot time regression (b/71718267)

Change-Id: Ice00e63a68ea3aede847c17cc3acda2d0a6b2f24
Bug: 71718267
Bug: 68860689
2018-01-09 16:17:37 +00:00
Ricky Wai
3eb9f7accb Merge "Change Network Watchlist feature flag" 2018-01-09 16:02:18 +00:00
TreeHugger Robot
0b921eacb5 Merge "Make SystemApi retained at runtime" 2018-01-09 09:33:14 +00:00
TreeHugger Robot
7ede382ce3 Merge "WorkSource: Fix WorkSource#remove for chained worksources." 2018-01-09 08:46:22 +00:00
Jeff Sharkey
d658207876 Merge "Wire up reserved blocks presence for tests." 2018-01-09 05:40:53 +00:00
Siyamed Sinir
29a2bd7a19 Merge "Prevent crash for Span change events" 2018-01-09 04:34:48 +00:00
TreeHugger Robot
a2fe748e7a Merge "Duration format for tunable settings" 2018-01-09 03:19:03 +00:00
Sudheer Shanka
710971a286 Merge "Add a global setting to turn on/off the proc state cpu times tracking." 2018-01-09 02:28:51 +00:00
TreeHugger Robot
973e7eba7e Merge "Work on issue #70859548: Reduce amount of time spent collecting pss data" 2018-01-09 01:29:00 +00:00
Christine Franks
6198ec6303 Merge "Remove DEMO_USER_SETUP_COMPLETE" 2018-01-09 00:56:08 +00:00
Sudheer Shanka
5c19b897dd 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
2018-01-08 16:25:16 -08:00
Toby Sargeant
13e0861efa Merge "Add a Java FindAddress implentation." am: 9ea410a6f8 am: da4e3b68fb
am: ef5218836d

Change-Id: Ic896c9f805330c28e9e0c3ca583f28e80bc47184
2018-01-09 00:12:33 +00:00
Sudheer Shanka
65e919ae8c Merge "Attribute procstate cpu times to correct battery/screen on/off buckets." 2018-01-08 23:51:40 +00:00
Jack He
985cdcb88a 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 05f4bc4074)
2018-01-08 23:37:10 +00:00
TreeHugger Robot
0f4c4232d7 Merge "Renaming leftover from previous CL..." 2018-01-08 23:09:32 +00:00
Siyamed Sinir
1fb80bbc94 Prevent crash for Span change events
For some spans, SpannableStringBuilder cannot determine the previous
start and previous end values correctly. In some cases, previous end
value is smaller than previous start value, and this causes
DynamicLayout to access negative index values. This CL updates
DynamicLayout to reflow from index 0 if such a case occurs.

Test: Added a CTS test
Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest#testReflow_afterSpanChangedShouldNotThrowException

Bug: 67926915
Change-Id: Ibc55edfd5e49a7782cdd807e2465f4f21577b68d
2018-01-08 13:57:59 -08:00
Christine Franks
7b76e93bf1 Remove DEMO_USER_SETUP_COMPLETE
This @hide setting is no longer used.

Bug: 71594447
Test: make -j100
Change-Id: Ib412f4c16eabb5bedb9e4538db294bfdfb2a4478
2018-01-08 13:40:19 -08:00
Toby Sargeant
ef5218836d Merge "Add a Java FindAddress implentation." am: 9ea410a6f8
am: da4e3b68fb

Change-Id: I7b2448fcb2edb4bc9000fd5e55f7295e6c6ff676
2018-01-08 21:23:45 +00:00
TreeHugger Robot
2ef95c9d1d Merge "Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry()." 2018-01-08 21:17:30 +00:00
Jack He
b1ebd51c01 Merge changes from topics "bt-hfp-add-set-active-device-method", "bt-system-api-annotations" am: 25259faa27
am: d16d93361b

Change-Id: I525cbc81c450afafd3fcedaf7b1b5e4b17a4162a
2018-01-08 21:13:52 +00:00
Pavlin Radoslavov
af82f64f85 Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079 am: e3428dae04
am: fe73dd0542

Change-Id: Ibf2e9fb0a5939f45a9d21bc06b26ef719ff9c58f
2018-01-08 21:11:35 +00:00
Pavlin Radoslavov
fe73dd0542 Merge "Added internal API to get/set the A2DP Active Device" am: 6efee9c079
am: e3428dae04

Change-Id: If220447db71398cc305eb7a702896e21959110c8
2018-01-08 21:02:01 +00:00
Felipe Leme
0ca18071b2 Renaming leftover from previous CL...
Test: echo 'In TreeHugger we trust!'

Bug: 71552872

Change-Id: I2b317c28cb7ec0e74b2cfa98338f9d64ff7dce3b
2018-01-08 13:00:25 -08:00
Etan Cohen
a0688e0321 [RTT2] Baseline public Wi-Fi RTT API
Basic Wi-Fi RTT API for ranging to APs + Wi-Fi Aware peers.

Note: no functional tests, just unhiding/comment fixes.

Bug: 65108607
Test: builds, unit tests, integration tests.
Change-Id: I532ca35c866a7862859a0e64d9f7eccd95baa83d
2018-01-08 13:00:05 -08:00
Steven Moreland
09d9ac5819 Merge "Generic Mutable class for HIDL code." am: 0f05ce94c3 am: a4ac12c3ac
am: 98fa8b7eb0

Change-Id: I0062c37e0fe119ee31b8c72396e2be706a6469a5
2018-01-08 20:44:51 +00:00
nharold
2687681596 Merge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73 am: d7319df4d0
am: a07d0e463d

Change-Id: Ib96b30bcb1b47c23d0a18cf043dd042409c61322
2018-01-08 20:29:11 +00:00
Steven Moreland
98fa8b7eb0 Merge "Generic Mutable class for HIDL code." am: 0f05ce94c3
am: a4ac12c3ac

Change-Id: I1914e805b15064b40b963840eddf87a0bbd41169
2018-01-08 20:25:30 +00:00
nharold
a07d0e463d Merge changes from topic "ipsec-resource-id-cleanup" am: 2b36299c73
am: d7319df4d0

Change-Id: If6ab575e2f30fc70d73e6f8787c87f3c7a2ab09d
2018-01-08 20:16:08 +00:00
TreeHugger Robot
0b033791b4 Merge "Insert org.apache.http.legacy at the start of the shared library list" 2018-01-08 20:00:28 +00:00
Felipe Leme
01f4f03188 Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry().
Test: manual verification using com.facebook.katana
Fixes: 71695541

Change-Id: Idefc7d3799f2ef5525a5050d63ca29a19cab730a
2018-01-08 11:28:20 -08:00
Patrick Baumann
379ae46d76 Merge "Move signing data into SigningDetails container" 2018-01-08 18:56:40 +00:00
Jeff Sharkey
55fe0d0686 Wire up reserved blocks presence for tests.
This is how we tell CTS if the device has reserved blocks set aside
for system critical services.

Test: builds, boots
Bug: 62024591
Change-Id: Ib970554235b49346f9e9df7d3d1646beb168cd92
2018-01-08 10:41:50 -07:00
Paul Duffin
035820cbda 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
2018-01-08 16:57:35 +00:00
Narayan Kamath
ee07f627c9 WorkSource: Fix WorkSource#remove for chained worksources.
- It doesn't make sense to clear the list of WorkChains if we're
  remove is called with a WorkSource that has no chains.
- The early return for mNum <= 0 is faulty because it incorrectly
  returns early for WorkSources that have workChains but no flat
  UIDs.

Test: WorkSourceTest
Bug: 62390666
Change-Id: I4c0e69bdd7c114b41329aa329d1c1d08a8cb9b59
2018-01-08 12:43:29 +00:00
Toby Sargeant
9ea410a6f8 Merge "Add a Java FindAddress implentation." 2018-01-08 12:05:12 +00:00
TreeHugger Robot
b3c096d9b5 Merge "[RTT2] Clean-up the RTT service name" 2018-01-08 06:30:57 +00:00
Jeff Sharkey
6fb6774c9f Merge "Add DataUnit to clarify SI-vs-IEC units." 2018-01-08 02:08:17 +00:00
Jeff Sharkey
9f2dc0527e Add DataUnit to clarify SI-vs-IEC units.
Mirrors the design of TimeUnit and ChronoUnit which many developers
are already familiar with, making it easy to pick up and use.

Yes, this is an enum.

Bug: 70915728
Test: bit FrameworksCoreTests:android.util.DataUnitTest
Change-Id: Id0cfdac5c81ed89c3c9ece23c964acba4a4f8471
2018-01-07 19:06:01 -07:00
TreeHugger Robot
6557fb49a2 Merge "Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]" 2018-01-07 23:09:27 +00:00
Robert Berry
5daccec818 Add API to remove recoverable keys
Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ib69e730467974d34ffe4a700bd6aaf4543a524ae
2018-01-06 19:16:25 +00:00
Lucas Dupin
555e680089 Turn default gradient into solid black
am: 12dad0c4fc

Change-Id: I6f5c702487f46395bd1930d943782d1a9b6bac5d
2018-01-06 03:34:46 +00:00
TreeHugger Robot
41df03f8e3 Merge "Turn on Settings security settings v2." 2018-01-06 03:31:24 +00:00
TreeHugger Robot
65b1cfe0a1 Merge "Re-commit: Smooth scroll RecyclerView on a11y ACTION_SCROLL_*" 2018-01-06 01:16:31 +00:00
TreeHugger Robot
26db21ba9c Merge "Remove @SystemApi annotation from private or package-private members" 2018-01-06 00:54:32 +00:00