400850 Commits

Author SHA1 Message Date
Eugene Susla
04d021ce9f Remove duplicate impl of CollectionUtils.emptyIfNull
(automated refactoring)

Test: presubmit
Change-Id: I65b88a8a11fac5bc948a7eb054eebc10b9f37f0d
2019-01-22 14:41:50 -08:00
TreeHugger Robot
9ce77e9b7f Merge "ASurfaceControl: add more support to NDK (1/2)" 2019-01-22 22:38:20 +00:00
TreeHugger Robot
f749198d19 Merge "Add exp flag for min number of sys gen smart replies in notifications" 2019-01-22 22:36:37 +00:00
Roshan Pius
c2aa6a91d3 Merge "WifiNetworkConfigBuilder: Pass package name" 2019-01-22 22:36:06 +00:00
Roshan Pius
cb32b2d72c Merge "WifiManager: Mark disableEphemeralNetwork as @hide" 2019-01-22 22:35:58 +00:00
TreeHugger Robot
9b90262605 Merge "Add a DeviceConfig namespace for the NOTIFICATION_ASSITANT package." 2019-01-22 22:35:52 +00:00
Remi NGUYEN VAN
7a037988d0 Merge "Migrate ICaptivePortal to stable AIDL" am: eb7c53718a
am: d15930fc27

Change-Id: I6fa53f6f7c45aa801a1e48e04bdb3ca6004f565d
2019-01-22 14:35:29 -08:00
Roshan Pius
4f32c1b751 Merge "WifiNetworkSuggestion: String changes for UI control" 2019-01-22 22:35:12 +00:00
David Su
367bdffa2b Scan Optimization: Proto change for device mobility state PNO scan stats
Adds new proto message type to record PNO scan stats in each device
mobility state.

Bug:120097108
Test: compiles, frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I67473a402a2e58d8aec36801667234f925339453
2019-01-22 14:32:51 -08:00
Android Build Merger (Role)
2e979e1f3c Merge changes from topic "am-2eb69952b6924c42aa6fb24f4629c44b"
* changes:
  [automerger skipped] Merge changes from topic "move sched_policy functions" am: 2a2b4eec35 am: ef974c1a36 am: 6cc4c4ff65 -s ours am skip reason: change_id Ia8bc5b447efa568fd1c822746919fa1496cc42a6 with SHA1 3b3a1c8622 is in history
  [automerger skipped] Add libprocessgroup dependency and fix sched_policy include am: 09a29e161f am: 2d74e0de16 am: d74cebf0d6 -s ours am skip reason: change_id I98a7a6f9a9d6be8595b3604fb73dafc05412c482 with SHA1 e44332655b is in history
2019-01-22 22:30:01 +00:00
Soonil Nagarkar
be93e9cc5b Add location settings piercing in emergencies
Add new field to LocationRequest that allows clients to ignore location
settings, and validate this field. Support returning location to clients
with this field even when location settings are turned off.

Bug: 118883513
Test: Manual + CTS
Change-Id: Idf4449ae7c20d03f42410936c35fadc602e83d11
2019-01-22 14:29:17 -08:00
Remi NGUYEN VAN
d15930fc27 Merge "Migrate ICaptivePortal to stable AIDL"
am: eb7c53718a

Change-Id: Id0844ec4d438dcc1f6c1028552dd21da6bd76584
2019-01-22 14:25:09 -08:00
Suren Baghdasaryan
3d8f630c40 [automerger skipped] Merge changes from topic "move sched_policy functions" am: 2a2b4eec35 am: ef974c1a36
am: 6cc4c4ff65 -s ours
am skip reason: change_id Ia8bc5b447efa568fd1c822746919fa1496cc42a6 with SHA1 3b3a1c8622 is in history

Change-Id: I8bcd6014e39baef6eb45b352f045029abb42bc92
2019-01-22 14:24:13 -08:00
Sudheer Shanka
7ee3291911 Merge "Update DownloadManager.addCompletedDownload javadoc." 2019-01-22 22:21:17 +00:00
Suren Baghdasaryan
e33c21e8e0 [automerger skipped] Add libprocessgroup dependency and fix sched_policy include am: 09a29e161f am: 2d74e0de16
am: d74cebf0d6 -s ours
am skip reason: change_id I98a7a6f9a9d6be8595b3604fb73dafc05412c482 with SHA1 e44332655b is in history

Change-Id: I131f72ace70c146dad073feb7032101ab8b6a031
2019-01-22 14:16:58 -08:00
Patrick Huang
f43a0ccf9a Add euicc privileged actions and extras.
Bug: 122769846
Test: Test on phone
Change-Id: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170
2019-01-22 14:08:08 -08:00
Dmitry Dementyev
3857968b60 Increase the timeout for SmartLock from 20 seconds to 4 hours.
Test: manual
Bug: 122424747

Change-Id: I802bae080848a5a4963ac8e61235c7eef1c2efdb
2019-01-22 14:07:42 -08:00
Remi NGUYEN VAN
eb7c53718a Merge "Migrate ICaptivePortal to stable AIDL" 2019-01-22 22:03:44 +00:00
Soonil Nagarkar
42da1b173e Properly upgrade LOCATION_MODE
Upgrade LOCATION_MODE setting from previous LOCATION_PROVIDERS_ALLOWED
setting. This should remove the necessity for fallback behavior in
LocationManagerService.

Test: manually
Change-Id: I24a546d91906fcf00c41b2e5191bf75f27f3a759
2019-01-22 14:02:14 -08:00
Suren Baghdasaryan
6cc4c4ff65 Merge changes from topic "move sched_policy functions" am: 2a2b4eec35
am: ef974c1a36

Change-Id: I571daf3bed2a2145ea85435f6d5a753635cca9f3
2019-01-22 13:55:25 -08:00
Malcolm Chen
da40c6d70c Adding READ_PRECISE_CALL_STATE permission in phone app.
This is needed if internal component wants to listen to
precise call state change.

Bug: 117980553
Test: unittest
Change-Id: Id5a60519cbf1d724f939fc10b1f03cccfe5c1b5c
2019-01-22 21:53:16 +00:00
Suren Baghdasaryan
d74cebf0d6 Add libprocessgroup dependency and fix sched_policy include am: 09a29e161f
am: 2d74e0de16

Change-Id: I77e49756d7c415896e1c3888a7f26acfb5b21105
2019-01-22 13:49:21 -08:00
Aurimas Liutikas
42249cb7c2 Remove unused SleepUtils.
This looks like dead code not used by anything in the tree.
It was added in ag/603441

Test: None
Change-Id: Ic424a25794d7c45719fa4f554cbf4f4b74288065
2019-01-22 13:48:47 -08:00
TreeHugger Robot
3b943e777e Merge "Create a valid TYPE for the NOTIFICATION_ASSISTANT_ADJUSTMENT Tron log message, and switch the code to use it. Using the same enum value as before to avoid a discontinuity in the logs." 2019-01-22 21:46:52 +00:00
Jeff Sharkey
5199727294 Merge "Add nullability annotations for some apis and update java doc" 2019-01-22 21:37:50 +00:00
TreeHugger Robot
697fc4ca36 Merge "Deprecate isConnectedToHdmiSwitch" 2019-01-22 21:34:38 +00:00
Leon Scroggins III
c4892a7fae Stop using SkHalfToFloat
Test: make; CtsGraphicsTestCases

This is intended to be a private API in Skia. Write our own.

Change-Id: I2e6840401487505050828ab49124e8c00f4f3dd9
2019-01-22 16:33:42 -05:00
Jeff Sharkey
e1e35057b7 Merge "Add public APIs for docsui Westworld metrics" 2019-01-22 21:32:23 +00:00
William Hester
a96d3d3ff4 Implement test harness mode
Test Harness Mode is a feature for device farms that want to wipe
their devices after each test run. It stores the ADB keys in the
persistent partition (used for Factory Reset Protection) then performs
a factory reset by broadcasting the MASTER_CLEAR intent.

Upon rebooting, the Setup Wizard is skipped, and a few settings are set:
  * Package Verifier is disabled
  * Stay Awake While Charging is enabled
  * OTA Updates are disabled
  * Auto-Sync for accounts is disabled

Other apps may configure themselves differently in Test Harness Mode by
checking ActivityManager.isRunningInUserTestHarness()

Bug: 80137798
Test: make && fastboot flashall -w
Test: adb shell cmd testharness enable
Change-Id: I91285c056666e36ad0caf778bffc140a0656fcfa
2019-01-22 13:32:20 -08:00
Tyler Gunn
18ab52512b Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated." am: 1e08a90339 am: 8aa49b57f3
am: 38f42a6f8e

Change-Id: Ie330dd01fb1b82b87267bb0dc4be7c7ba5e10dee
2019-01-22 13:26:46 -08:00
TreeHugger Robot
cc7aacc497 Merge "Revert "Remove Activity Recognition from the Android Code."" 2019-01-22 21:22:07 +00:00
Suren Baghdasaryan
ef974c1a36 Merge changes from topic "move sched_policy functions"
am: 2a2b4eec35

Change-Id: I1b72c5676b1d3ec18e7432cf7f5e3336f956051c
2019-01-22 13:21:57 -08:00
TreeHugger Robot
25eb1b39d5 Merge "Add metrics logging constants for notification location." 2019-01-22 21:19:59 +00:00
Suren Baghdasaryan
2d74e0de16 Add libprocessgroup dependency and fix sched_policy include
am: 09a29e161f

Change-Id: I4bde60447975339250dd4e755530e4bc390461c7
2019-01-22 13:14:22 -08:00
TreeHugger Robot
073291142a Merge "Do not crash NearestTouchFrame when views are not attached to window" 2019-01-22 21:14:19 +00:00
Android Build Merger (Role)
c78f1dde95 Merge "[automerger skipped] Merge "Check whether cardId is valid in EuiccManager#isEnabled." am: feb047acb3 am: 4fc9c994d4 am: 25696ef82e -s ours am skip reason: change_id I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8 with SHA1 fc33a42309 is in history" 2019-01-22 21:14:14 +00:00
Holly Jiuyu Sun
ed69f069a9 [automerger skipped] Merge "Check whether cardId is valid in EuiccManager#isEnabled." am: feb047acb3 am: 4fc9c994d4
am: 25696ef82e -s ours
am skip reason: change_id I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8 with SHA1 fc33a42309 is in history

Change-Id: I52a07a554c79b628c776ec23394ca9266230ac4e
2019-01-22 13:13:45 -08:00
John Reck
5cca8f250c Add continuous SKP capture test api
Bug: 122856066
Test: PictureCaptureDemo
Change-Id: Iaf3a4bc1c8a2c18c7dff635c5f1cf726b331f8bf
2019-01-22 13:13:06 -08:00
TreeHugger Robot
c797867220 Merge "Update HandlerThread's javadoc" 2019-01-22 21:10:37 +00:00
Suren Baghdasaryan
2a2b4eec35 Merge changes from topic "move sched_policy functions"
* changes:
  Add libprocessgroup dependency
  Add libprocessgroup dependency and fix sched_policy include
2019-01-22 20:58:16 +00:00
Will Brockman
4e9df81cd3 Merge "Remove duplicate event logs from MetricsLogger to reduce event log traffic. These were needed for a transitional period, but are now irrelevant. Also improve usage documentation of MetricsLogger." 2019-01-22 20:55:31 +00:00
Jeff Sharkey
3f64ec57dd Sanity check raw paths against requested volume.
When callers are inserting or updating raw "_data" paths, we need to
sanity check them to make sure they're not "crossing the streams"
between storage devices.  For example, it would be really broken to
insert a file on the SD card into the "internal" storage volume.

This also enforces that callers don't "cross the streams" between
multiple storage volumes on devices that support them, since
otherwise they'd end up with very confusing behavior, such as
the same underlying file being inserted into multiple databases.

Also, the "internal" storage volume should really only be used for
common media (such as ringtones), and it shouldn't be allowed to
point into private app data directories, since MODE_WORLD_READABLE
has been deprecated for many years now.

Bug: 117932814
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I267eacd45bbd270b8ce9b28de9d6e209f780f31a
2019-01-22 13:55:25 -07:00
Tyler Gunn
38f42a6f8e Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated." am: 1e08a90339
am: 8aa49b57f3

Change-Id: Ie60bbc11e0bd5ca434be609dd596ea1a33ba8812
2019-01-22 12:52:26 -08:00
TreeHugger Robot
d3ea060251 Merge changes from topic "sensors_ndk_filter"
* changes:
  Export ASensorEventQueue_requestAdditionalInfoEvents
  Add ASensorEventQueue_requestAdditionalInfoEvents
2019-01-22 20:47:43 +00:00
TreeHugger Robot
0bec8721ab Merge "Export ASensor_getHandle" 2019-01-22 20:44:07 +00:00
TreeHugger Robot
61217232ad Merge "API Compatibility: Fix incompatible abstract methods on Context" 2019-01-22 20:41:00 +00:00
Sal Savage
86c7e1fcc9 Update config file documentation and examples for network type propagation
Bug: 112588045
Test: N/A -- only updates comments
Change-Id: Iae5363e06d3f79e308f49cd64c286695722adf73
2019-01-22 12:35:07 -08:00
Lucas Dupin
a47310fde0 Merge "Fix StatusBarWindowController initialization NPE" 2019-01-22 20:34:12 +00:00
TreeHugger Robot
236b572a5b Merge "Update AttentionManagerService" 2019-01-22 20:33:19 +00:00
Varun Shah
16522412eb Optimize service restart logic.
If a non-persistent service is being restarted and it was killed due to
low memory previously, instead of restarting the service in one second,
we now restart it based on its last known oom_adj value. The backoff
logic of consistent restarts remains the same.

Additionally, when the service is due to restart, if the memory pressure
is still considered to be critical, the new logic will further delay the
service restart.

Initial test results: # of restarts dropped by 40-50% on average with
the optimized logic when the memory pressure was gradually increased.

Tested manually via memeater. Increased the memory pressure by 500 mb
at a time via the following command: adb shell memeater 500
On a 4gb device, no significant restarts were noticed when memory
pressure was increased by 2gb in total. When increased by 3gb in total,
services started to restart and the above results were observed via
the logged output over a 5 min period.

Bug: 79848281
Test: manually (steps listed above)
Change-Id: Idcd1300882321c6033e569736150a8bf7889678b
2019-01-22 12:24:59 -08:00