Commit Graph

6244 Commits

Author SHA1 Message Date
Varun Shah
98221767e0 Merge "Added UserManager#getUserSwitchability." 2019-03-12 01:39:32 +00:00
Varun Shah
ea69440c6f Merge "Update UserManager#removeUser to follow API guidelines." 2019-03-12 01:39:32 +00:00
TreeHugger Robot
5657282f07 Merge "Battery Stats Dumpsys Readability Fixes" 2019-03-12 01:35:41 +00:00
TreeHugger Robot
b4ed947385 Merge "ContentSuggestionsService - allow user manager to disable content suggestions." 2019-03-12 01:06:03 +00:00
TreeHugger Robot
2c2e9533ce Merge "Remove brightness adjustment check." 2019-03-11 22:52:54 +00:00
Varun Shah
50ef200892 Added UserManager#getUserSwitchability.
The new SystemApi indicates whether user switching is currently allowed
or not. This API provides more detail than the already existing
UserManager#canSwitchUsers (now deprecated) by telling the user why
users cannot be switched via a flag that's returned.

Bug: 124883455
Test: atest android.server.pm.UserManagerTest#testGetUserSwitchability
Change-Id: Ib3ac2f063f3638a172fa339fd2330604b910c7f4
2019-03-11 14:49:03 -07:00
Zak Cohen
3e12ac7434 ContentSuggestionsService - allow user manager to disable content suggestions.
Bug: 126227834
Test: compile
Change-Id: I2e8f4a87b1d4adf0d3dd591380d50ee28ae20379
2019-03-11 21:36:19 +00:00
Kweku Adams
3d79da81be Remove brightness adjustment check.
Bug: 127825565
Test: N/A
Change-Id: I35147d027dd88d951d03b5dece2d39551390c060
2019-03-11 11:03:55 -07:00
Tao Bao
cfd454f918 Merge "Add Javadoc for UpdateEngine constants." 2019-03-11 16:46:31 +00:00
Abhijeet Kaur
789635b6c1 Merge "Clean up bugreport API." 2019-03-11 13:14:41 +00:00
Abhijeet Kaur
552e257a9d Clean up bugreport API.
Make BugreportManager class final.

Add FloatRange annotation for BugreportManager.onProgress() function's
parameter.

Make @IntDef in BugreportMode hidden.

Bug: 126434607
Test: builds
Change-Id: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
2019-03-11 11:07:01 +00:00
Olivier Gaillard
6d0059f79c Merge "Add @Nullable and @NonNull to onTransactStarted" 2019-03-11 09:51:18 +00:00
Gavin Corkery
2eb1e2e459 Merge "Rename data/pkg_staging to data/app-staging" 2019-03-09 12:41:28 +00:00
Tao Bao
aa028f0a60 Add Javadoc for UpdateEngine constants.
Fixes: 123597185
Test: N/A
Change-Id: Iab3a43b2e65687b14424e86bc532180138c97ef0
2019-03-08 15:23:29 -08:00
Jake Wharton
720530ba1d Add nullability annotations to Handler's public API
Fixes: 126702574
Test: none
Change-Id: I396665e0971c6dc8eabbcfa32dee07bcdce13061
2019-03-08 14:00:43 -05:00
TreeHugger Robot
268e3ac09d Merge "Make the ANGLE Toast Message Updatable via ANGLE APK" 2019-03-08 01:21:35 +00:00
Varun Shah
9533e627ca Update UserManager#removeUser to follow API guidelines.
Updating the javadoc to explain the return value and adding in a null
check for the UserHandle passed in.

Bug: 124883455
Test: atest com.android.server.pm.UserManagerTest#testRemoveUserByHandle
Test: atest com.android.server.pm.UserManagerTest#testRemoveUserByHandle_ThrowsException
Change-Id: I1c2a7e140544001d6341b423890281ce53d7b38c
2019-03-07 13:53:06 -08:00
Tim Van Patten
b225b4437b Make the ANGLE Toast Message Updatable via ANGLE APK
This change creates an intent that the ANGLE APK will respond to with a
string that will be presented within a Toast message to the user when
ANGLE is in use for an app.

Bug: 127693688
Test: atest CtsAngleIntegrationHostTestCases
Test: Verify Toast message contains the updated message.
Change-Id: If2ecd4dba96bcfba5511e76d24a5aa5e64c2ea18
2019-03-07 11:39:59 -07:00
Wei Wang
52b40ae27d Merge "Address API review comments for Thermal API" 2019-03-07 18:25:38 +00:00
Wei Wang
7a49ff6c50 Address API review comments for Thermal API
Bug: 126945111
Test: atest cts/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/PowerManagerTest.java
Change-Id: I7ec1ea057b11c223c46d02ad63de335cb0a0d4dd
2019-03-07 00:08:47 -08:00
Steven Moreland
26190d5536 Merge "NativeHandle.java: set Nullable/NonNull" am: 6792c595a2 am: b5e85d6bb6
am: 927dee8243

Change-Id: I1caab5b13688b9d76e8d6ba59c83e32a6218be7e
2019-03-06 12:47:15 -08:00
Steven Moreland
927dee8243 Merge "NativeHandle.java: set Nullable/NonNull" am: 6792c595a2
am: b5e85d6bb6

Change-Id: If8aa9d85330683954856e2f1f2755d251bd0bb36
2019-03-06 12:37:46 -08:00
Steven Moreland
b5e85d6bb6 Merge "NativeHandle.java: set Nullable/NonNull"
am: 6792c595a2

Change-Id: I09cdb1ce3cc64cb8ca42a13b307b93b5dab8e42c
2019-03-06 12:28:23 -08:00
Blake Kragten
bff255d744 Battery Stats Dumpsys Readability Fixes
1> Moved the following fields to right after Cellular kernel
active time
Cellular Sleep time
Cellular Idle time
Cellular Rx time
Cellular Tx time
Cellular Battery drain

2> Moved the following fields to right after Wifi kernel active time
WiFi Scan time
WiFi Sleep time
WiFi Idle time
WiFi Rx time
WiFi Tx time
WiFi Battery drain

3> GPS Battery Drain (mAh): Limit to 2 decimal places and renamed to be
aligned with how cellular and wifi list out their battery drain.
Example:
"GPS Battery Drain: 0.20mAh"

Test: verified output using adb shell dumpsys batterystats
Bug: 111268544

Change-Id: Iafe4680b55cfb0be9545cc96227c450a8c13d177

Example Dumpsys for Cellular/Wifi:
  CONNECTIVITY POWER SUMMARY START
  Logging duration for connectivity statistics: 12m 17s 181ms
  Cellular Statistics:
     Cellular kernel active time: 0ms (0.0%)
     Cellular Sleep time:  8m 38s 185ms (70.3%)
     Cellular Idle time:   3m 12s 970ms (26.2%)
     Cellular Rx time:     27s 220ms (3.7%)
     Cellular Tx time:
       less than 0dBm:  355ms (0.0%)
       0dBm to 8dBm:  46ms (0.0%)
       8dBm to 15dBm:  123ms (0.0%)
       15dBm to 20dBm:  19ms (0.0%)
       above 20dBm:  2ms (0.0%)
     Cellular Battery drain: 6.48mAh
     Cellular data received: 4.61KB
     Cellular data sent: 16.63KB
     Cellular packets received: 60
     Cellular packets sent: 323
     Cellular Radio Access Technology:
       lte 12m 17s 181ms (100.0%)
     Cellular Rx signal strength (RSRP):
       very poor (less than -128dBm):  3s 836ms (0.5%)
       poor (-128dBm to -118dBm):  7s 554ms (1.0%)
       moderate (-118dBm to -108dBm):  1m 22s 381ms (11.2%)
       good (-108dBm to -98dBm):  10m 43s 410ms (87.3%)
  Wifi Statistics:
     Wifi kernel active time: 11m 30s 882ms (93.7%)
     WiFi Scan time:  15s 579ms (2.1%)
     WiFi Sleep time:  9m 31s 151ms (77.5%)
     WiFi Idle time:   2m 30s 927ms (20.5%)
     WiFi Rx time:     10s 793ms (1.5%)
     WiFi Tx time:     4s 318ms (0.6%)
     WiFi Battery drain: 4.11mAh
     Wifi data received: 143.66MB
     Wifi data sent: 94.23MB
     Wifi packets received: 77632
     Wifi packets sent: 31785
     Wifi states:
       sta 12m 17s 181ms (100.0%)
     Wifi supplicant states:
       completed 12m 17s 181ms (100.0%)
     Wifi Rx signal strength (RSSI):
         good (-66.25dBm to -55dBm): 12m 17s 181ms (100.0%)
2019-03-06 18:50:28 +00:00
Steven Moreland
0ff061a607 NativeHandle.java: set Nullable/NonNull
Fixes: 126700972
Test: hidl_test_java
Test: atest android.os.cts.HwBinderTest
Change-Id: Id45c6d0757913014028f7629db78b64f27cad084
2019-03-06 17:17:30 +00:00
TreeHugger Robot
4a2d678eed Merge "Update UserManager APIs to follow API guidelines." 2019-03-06 17:17:23 +00:00
Jeff Sharkey
715b34be65 Merge "Add trivial nullability annotations." 2019-03-06 16:17:56 +00:00
Jeff Sharkey
ba4acd5575 Add trivial nullability annotations.
Bug: 126702077, 126701263, 126700858, 126700497
Test: manual
Change-Id: Ic6599f59e6e079097a35cb2bf24c59a87627c8b7
Exempt-From-Owner-Approval: Trivial API annotations
2019-03-05 19:48:55 -07:00
TreeHugger Robot
aa447cfa81 Merge "Add @NonNull to createPredefined" 2019-03-06 01:08:20 +00:00
Olivier Gaillard
5a73a5123c Add @Nullable and @NonNull to onTransactStarted
Bug: 126702217
Test: atest BinderWorkSourceTest
Change-Id: I1d0b932f403b3350a82b601e1a799aa07ac02361
2019-03-05 16:55:23 +00:00
TreeHugger Robot
55805af719 Merge "Add receiver info to IncidentdDetails in statsd_config" 2019-03-05 09:15:31 +00:00
Leo Hsu
5183933b11 Update UserManager APIs to follow API guidelines.
Annotate @Nullable/@NonNull to arguments and return values.

Bug: 126700763
Test: Manually
Change-Id: I3cce7c4a6751240b64c0dbb6ee627579cdaf63be
2019-03-05 17:11:03 +08:00
Yao Chen
a8e78b9b88 Add receiver info to IncidentdDetails in statsd_config
This can be used for sending a broadcast to an app which incidentd
would share the incident report with.

Test: added unit test in statsd_test

Change-Id: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
2019-03-04 23:47:27 -08:00
Arthur Hung
cfdc975ffc Add @NonNull to createPredefined
Bug: 126699931
Test: Manual
Change-Id: Id90841415ebf9fbd681767cc36c65154d9980286
2019-03-05 09:36:59 +08:00
Christian Wailes
adb444f742 Merge "Renamed blastula to unspecialized app process (usap)" 2019-03-02 01:38:11 +00:00
Kweku Adams
f6410681b9 Merge "Adding new Battery Saver location mode." 2019-03-01 22:17:29 +00:00
Chris Wailes
7e797b6f26 Renamed blastula to unspecialized app process (usap)
Bug: 123017829
Test: make & boot & launch apps
Change-Id: Icfb9f8f4ebabacece817735d60d232cf3afb4e08
2019-03-01 13:18:48 -08:00
Jeff Sharkey
a09312df67 Merge "All Parcelable CREATOR fields are @NonNull." 2019-03-01 14:58:28 +00:00
Andrei-Valentin Onea
b9fadbfc94 Merge "Add statslog logging for hidden api usage" 2019-03-01 11:47:15 +00:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
a30e5c389f To be @Nullable or @NonNull, that is the question.
Bug: 126699288, 126699496, 126700389
Bug: 126700085, 126701638, 126702005, 126700497
Test: manual
Change-Id: Idcbc2722ddcf014a9e5cef14321b4e2ce30adf9c
2019-03-01 06:26:39 +00:00
TreeHugger Robot
36f9c79bf5 Merge "Add missing ServiceType values to IntDef." 2019-03-01 03:53:29 +00:00
Kweku Adams
27c65cca30 Add missing ServiceType values to IntDef.
FORCE_BACKGROUND_CHECK and NIGHT_MODE were accidentally excluded from
the ServiceType @IntDef definition.

Bug: N/A
Test: N/A
Change-Id: Ib66bb2ce004a6577515ac185d0aef2dd5f1ed49b
2019-02-28 15:32:31 -08:00
Kweku Adams
4fb074e7f4 Adding new Battery Saver location mode.
When this new mode (LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF) is
enabled, LocationManagerService will avoid sending almost all
LocationRequests to providers. The only requests that will continue to
be sent will be providers are the requests that ignore location
settings.

Bug: 121256487
Bug: 122849003
Bug: 119261320
Test: atest android.os.cts.batterysaving.BatterySaverLocationTest
Change-Id: Iee95a6fb5ca11d4db7a0f0661bf3cb1051a5d710
2019-02-28 14:55:39 -08:00
TreeHugger Robot
7452b628e1 Merge "Rename createPrebaked to createPredefined" 2019-02-28 14:50:09 +00:00
Jeff Sharkey
36274999fe Developer option to disable legacy greylist.
The app developers on the legacy greylist need an option to disable
the greylist so they can debug.

Bug: 124818022
Test: manual
Change-Id: I84785a235830761794dee5c603c1ea43f8ace73e
2019-02-27 12:09:59 -07:00
Andrei Onea
e8e150dbff Add statslog logging for hidden api usage
Statslog logging is done alongside the old logging, with different
sampling rates.

Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t \
        android.cts.statsd.atom.UidAtomTests#testHiddenApiUsed
Bug: 119217680
Change-Id: If7c38eaee3a3c08434c2e4f2dac45c659ea9cb12
2019-02-27 16:16:44 +00:00
Gavin Corkery
296c8b9585 Rename data/pkg_staging to data/app-staging
Test: atest apex_e2e_tests
Bug: 126330086

Change-Id: I757a7f97bf8cbb4828596ce903630c505a2ddacc
2019-02-27 12:40:22 +00:00
Sudheer Shanka
4068df3262 Merge "Add an @IntDef to indicate notify event types." 2019-02-27 01:48:17 +00:00
Sudheer Shanka
c27b15197a Add an @IntDef to indicate notify event types.
Fixes: 126354778
Test: n/a
Change-Id: I965b8b75b6b1e25483bf83b1aea6ec192d055c8d
2019-02-26 11:17:42 -08:00