Commit Graph

461088 Commits

Author SHA1 Message Date
Chalard Jean
3b680ae1e6 Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c
2020-01-17 14:58:01 +09:00
Chalard Jean
466b665a3e Make NetworkCapabilities authoritative for roaming state
...instead of NetworkInfo

Bug: 138306002
Test: FrameworksNetTests FrameworksTelephonyTests
Change-Id: Ifdea19fa32089b5c7925f5010169b1dea3d2b304
2020-01-17 14:56:57 +09:00
Chalard Jean
fb342fcf55 Merge "Make NetworkCapabilities authoritative for suspended state" 2020-01-17 05:08:11 +00:00
TreeHugger Robot
64259a3b43 Merge "Simplify the activity lifecycle from START to STOP" 2020-01-17 05:03:28 +00:00
Andrii Kulian
2b3b20c388 Merge changes from topic "app_config_compat"
* changes:
  Update resource config for default display
  Override process config to match activity config
  Set parent for WindowProcessController
2020-01-17 04:56:41 +00:00
Steven Thomas
777401766b Merge "Make setActiveConfig() private, remove plumbing" 2020-01-17 04:50:19 +00:00
Minche Li
a27e7a133f Merge "Update window magnifier UI when onConfigurationChanged. (1/n)" 2020-01-17 04:00:37 +00:00
Automerger Merge Worker
d4a5c9cd25 [automerger skipped] Adding atoms for metrics logging am: 5d8df1f08c am: 2a12d7c446 -s ours
am skip reason: Change-Id Ic502acc8831fe4da0b32a826171d10e9c0f9876d with SHA-1 167c3db934 is in history

Change-Id: I39493ac64ca88d768c8b6a8a0540124d0694ce8c
2020-01-17 03:51:05 +00:00
Automerger Merge Worker
2a12d7c446 Adding atoms for metrics logging am: 5d8df1f08c
Change-Id: I75a3c7c4a5988328daac05e9449bad1552ce41f3
2020-01-17 03:36:02 +00:00
Brad Ebinger
265173dc66 Merge "Properly catch ServiceSpecificException if IMS isn't available" 2020-01-17 03:20:19 +00:00
TreeHugger Robot
ca878a4c66 Merge "Clean up tuner constants and update according to ag/9977359" 2020-01-17 02:54:38 +00:00
Roshan Pius
364042007d Merge "wifi-service: Jar-Jar net util sources" 2020-01-17 02:04:14 +00:00
Yabin Huang
71d62119df Merge "Don't use View ID to search next focus backward View" 2020-01-17 01:50:53 +00:00
TreeHugger Robot
8468378f2b Merge "Re-seal the sessions on reboot." 2020-01-17 01:46:57 +00:00
Jeffrey Huang
1507e3b1bf Merge changes Ib321743b,I9d58a4b8,I6501109a,I0ce870a3,I5107aa47
* changes:
  Migrate pullBinderStats
  Migrate pullTemperature and pullCooldownDevice
  Migrate ionHeapSize
  Migrate ProcessMemory pullers
  Fix crash when pulling certain atoms
2020-01-17 01:42:50 +00:00
shubang
fbb0a99f40 Clean up tuner constants and update according to ag/9977359
and more minor cleanups

Test: make;
Change-Id: Iaa45289edf53a0c9ec48048e0c6f1cb6caad1bd6
2020-01-16 17:34:21 -08:00
Hyundo Moon
0c179872c5 Merge "Remove route features from RoutingSessionInfo related APIs" 2020-01-17 01:32:14 +00:00
TreeHugger Robot
0622f20959 Merge "Expose NotificationChannel#setBlockableSystem as SystemApi" 2020-01-17 01:28:03 +00:00
TreeHugger Robot
3de6f570d6 Merge "Refactor location permissions code" 2020-01-17 01:26:24 +00:00
TreeHugger Robot
0ac2268bec Merge "Persisted log parser for incident reporting" 2020-01-17 00:57:34 +00:00
Tianjie Xu
5d8df1f08c Adding atoms for metrics logging
Define the atom protos for
UpdateEngineUpdateAttemptReported
UpdateEngineSuccessfulUpdateReported

The fields for both atoms are copied from the already reported Tron
counters, except for the source fingerprint. By defining our own proto,
we can have a better insight about each update events. It also makes the
query easier without the server side work to correlate each counters.

Sample output from testdrive shows:
data {
    elapsed_timestamp_nanos: 64932607816092
    atom {
      update_engine_update_attempt_reported {
        attempt_number: 1
        payload_type: FULL
        duration_boottime_in_minutes: 0
        duration_monotonic_in_minutes: 0
        payload_size_mib: 510
        attempt_result: METADATA_VERIFICATION_FAILED
        error_code: DOWNLOAD_METADATA_SIGNATURE_MISMATCH
        fingerprint: "google/walleye/walleye:R/MASTER/eng.xuncha.20190731.151212:userdebug/dev-keys"
    }
  }
}

Bug: 138253582
Bug: 137682371
Test: run statsd_testdrive and check events

Merged-In: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
(cherry picked from commit 167c3db934)

Change-Id: Ifa57f23135b4cd63888df2b8f25650be133bb1de
(cherry picked from commit f00d7fb3bd)
2020-01-17 00:26:01 +00:00
TreeHugger Robot
747bbfafb8 Merge "Fix remounting overlay tests failure" 2020-01-17 00:00:23 +00:00
Soonil Nagarkar
49706d1a44 Merge "Make mode/provider broadcasts foreground" 2020-01-16 23:55:27 +00:00
Oscar Shu
07c7e32924 Merge "Allow set MAC randomization setting for passpoint" 2020-01-16 23:52:27 +00:00
Meng Wang
07bb82392d Merge "Expose logToRadioBuffer as system API" 2020-01-16 23:45:39 +00:00
Matt Pape
7aa4821b13 Merge "Annotate atomic DeviceConfig methods for testing." 2020-01-16 23:24:30 +00:00
TreeHugger Robot
cde70623fd Merge "AndroidManifest.xml: Fix SCAN_AVAILABLE protected broadcast" 2020-01-16 23:20:11 +00:00
Jeffrey Huang
877adfea28 Migrate pullBinderStats
Test: atest UidAtomTests#testBinderStats
Test: adb shell cmd stats pull-source 10022
Test: adb shell cmd stats pull-source 10023
Change-Id: Ib321743b725abe6770b840477d7fbce755a0bde3
2020-01-16 15:17:40 -08:00
Jeffrey Huang
b92de55380 Migrate pullTemperature and pullCooldownDevice
Test: adb shell cmd stats pull-source 10021
Test: adb shell cmd stats pull-source 10059
Change-Id: I9d58a4b8aa32daa0b750d4e45c1dcc6a34407865
2020-01-16 15:17:40 -08:00
Jeffrey Huang
a0e1cd2dd6 Migrate ionHeapSize
Test: Ran adb shell cmd stats pull-source 10056
Test: Ran adb shell cmd stats pull-source 10061
Change-Id: I6501109a94875c69078dea0ac07dcce3bc9641e3
2020-01-16 15:17:39 -08:00
Jeffrey Huang
b1c1634325 Migrate ProcessMemory pullers
Test: atest UidAtomTests#testProcessMemoryState
Test: atest UidAtomTests#testProcessMemoryHighWaterMark
Test: atest UidAtomTests#testProcessMemorySnapshot
Test: adb shell cmd stats pull-source 10013
Test: adb shell cmd stats pull-source 10042
Test: adb shell cmd stats pull-source 10064
Change-Id: I0ce870a3fec668e380a6b6412f278033d6734f35
2020-01-16 15:17:38 -08:00
Tej Singh
250e7aad89 Fix crash when pulling certain atoms
IonMemoryUtil and ProcFsMemoryUtil were package-private classes loaded
in the system server class loader and had the same package as
StatsCompanionService, which is loaded in a separate class loader for
statsd. This caused a crash when statsd tried to access either. This cl
moves IonMemoryUtil and ProcFsMemoryUtil along with StatsPullAtomService
to a separate package so that no classes are shared in the same package.

Bug: 147792532
Test: pulled all relevant atoms and make sure they worked
Test: adb shell cmd stats pull-source 10064
Test: adb shell cmd stats pull-source 10061
Test: adb shell cmd stats pull-source 10042
Test: adb shell cmd stats pull-source 10056
Change-Id: I5107aa47045321e84549a7f2d55d0ee27f0d080e
2020-01-16 15:16:54 -08:00
Sudheer Shanka
e479c958b5 Merge "Add internal APIs for system services to augment storage stats." 2020-01-16 23:15:58 +00:00
TreeHugger Robot
4316183724 Merge "Isolate app profile directory" 2020-01-16 23:12:45 +00:00
Sudheer Shanka
18d3798328 Add internal APIs for system services to augment storage stats.
Bug: 142808097
Test: n/a (tests will be added along with the client impl)
Change-Id: Iba2330d67a29ccfab95ce65daf85312beff5ecf3
2020-01-16 23:12:30 +00:00
Brad Ebinger
fee1f36a08 Properly catch ServiceSpecificException if IMS isn't available
Fixes: 147815387
Test: boot device and ensure UCE registers correctly.
Change-Id: I4033659acb0031e2383ebcff55c1bb0798041abd
2020-01-16 15:07:06 -08:00
Xiangyu/Malcolm Chen
ec0589c724 Merge "modularize telephony-framework from framework.jar" 2020-01-16 23:05:25 +00:00
Clark Duvall
ba06b58f51 Merge "Reorder style items in shared libraries" 2020-01-16 23:03:45 +00:00
Nate Jiang
a54eaa6ae3 Merge "Enable/disable auto-join for Suggestions" 2020-01-16 22:46:56 +00:00
Ömer Nebil Yaveroğlu
9f183ebedf Merge "Set the bucket size to 50 since the improvements show that this is the optimal value." 2020-01-16 22:37:11 +00:00
Roshan Pius
02432980d0 wifi-service: Jar-Jar net util sources
Bug: 135998869
Test: Compiles
Test: Number of compile errors when compiled against system_current
reduces.

Change-Id: I67d2a435e8fd8c823b6cb1bf4becb01362dcc5e0
2020-01-16 14:35:43 -08:00
Chen Xu
546ce5e45e modularize telephony-framework from framework.jar
Bug: 140908357
Test: Build & Manaul
Change-Id: Idd4cbdb84247b98072b6ebc00a37168fde6fbbaa
2020-01-16 14:32:50 -08:00
Nate Myren
739e946f87 Merge "added methods to @TestApi" 2020-01-16 22:31:26 +00:00
Omer Nebil Yaveroglu
85a1570149 Set the bucket size to 50 since the improvements show that this is the
optimal value.

Bug: 145493956
Test: No tests.
Change-Id: I156623c6e0e74bd101c93a2df4478c8375787e35
2020-01-16 22:31:21 +00:00
Nate Myren
3f26271da4 added methods to @TestApi
Added ActivityManager.switchUser(UserHandle),
Context.startActivityAsUser, and UserHandle.of to
@TestApi

Test: None
Bug: 135282431

Change-Id: Iefbaa3c8f02649dd7d01be3093fa47104b077f58
2020-01-16 22:31:02 +00:00
Omer Nebil Yaveroglu
e8567a4a04 Modify the RuleIndexingController to do binary search instead of constructing the TreeSet so that rule loading is more efficient.
Bug: 145493956
Test: atest FrameworksServicesTests:IntegrityFileManagerTest
Change-Id: Idd5d98e0a0191f457a32c050ee152d7b1ca389cc
2020-01-16 22:30:46 +00:00
Yabin Huang
ef8a8ac927 Don't use View ID to search next focus backward View
There might be several Views with the same ID in View hierarchy,
and if we search the user specified next focused view by comparing
the View ID, it may return the wrong View with the same ID. To fix
that, we should compare the View itself.

Fixes: 147829061
Test: manual

Change-Id: I3eeb68ed3ea30ce9461165eea56227cb81b21929
2020-01-16 14:29:16 -08:00
Zimuzo Ezeozue
3d4797643c Merge "Recover from FUSE session starting failures" 2020-01-16 22:27:27 +00:00
Zim
7924a51690 Recover from FUSE session starting failures
Vold calls into StorageManagerService which in turn calls into the
FUSE daemon to start the session. If the system_server is very busy
e.g right after an OTA, the session may not start quickly enough and
we will timeout, causing vold to fail the mount.

Previously, the only solution would be for the user to reboot.

Now, we naively retry every 10s.

Bug: 147610762
Test: Causing an artificial timeout when starting a session for the
firs time, verified we recover after a minute

Change-Id: Ifdb2384696e85b6774a12394798fca8eb75a584e
2020-01-16 22:26:48 +00:00
Julia Reynolds
3bd8c209b1 Merge "Allow conversations to be demoted out of the conversation space" 2020-01-16 22:23:08 +00:00