Commit Graph

7062 Commits

Author SHA1 Message Date
Makoto Onuki
c10395b8e3 Merge "Revert "Change argument types from FD to PFD"" 2019-11-13 00:09:01 +00:00
Songchun Fan
7e093d7e7d Merge "[incremental] fundamental aidl interfaces" 2019-11-12 23:01:46 +00:00
Makoto Onuki
6dbd2d62a7 Revert "Change argument types from FD to PFD"
This reverts commit 933bf11cc3.

Reason for revert: Broke shell commands.

Change-Id: Icbe1e4089d2607d9bfa839ceb2e1ffad4f08e892
Fixes: 144317147
2019-11-12 21:54:17 +00:00
Inseob Kim
1b5e241b92 Use sysprop library for telephony props
Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: Idefa10b5bdeaff69496bc66730a7398258f3a38e
2019-11-08 15:06:37 +09:00
Charles Munger
e4eb721481 Merge "Deprecate AsyncTask" am: c26568d8a7 am: e668533570
am: 0afcd8f4df

Change-Id: Ic43d6f6f8f3ffe2f932af4aa677824f2ef509d30
2019-11-07 11:42:48 -08:00
Charles Munger
0afcd8f4df Merge "Deprecate AsyncTask" am: c26568d8a7
am: e668533570

Change-Id: Ie20907c3cab97732c77a4e448cf9686d4e26df91
2019-11-07 11:28:27 -08:00
Charles Munger
e668533570 Merge "Deprecate AsyncTask"
am: c26568d8a7

Change-Id: Ib318d957f7f32937a6d416f26d8dfae0883aaab2
2019-11-07 11:16:00 -08:00
Treehugger Robot
c26568d8a7 Merge "Deprecate AsyncTask" 2019-11-07 18:35:05 +00:00
Kevin Hufnagle
5d01ae6907 Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d am: f58949bd0e am: 6288754ef9
am: cfcd16334e

Change-Id: I6c3f4298b999da99f7c25e323dd729b85e6d1acc
2019-11-06 15:17:16 -08:00
Kevin Hufnagle
cfcd16334e Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d am: f58949bd0e
am: 6288754ef9

Change-Id: I3e3c4fc71fe34f2118bd2794a8ab6b707a3d81cd
2019-11-06 15:11:13 -08:00
Kevin Hufnagle
6288754ef9 Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d
am: f58949bd0e

Change-Id: Ifbced59e15c2ad19ad94b93af05d28ccfbccd255
2019-11-06 15:04:13 -08:00
Kevin Hufnagle
f58949bd0e Merge "docs: Added perm req for getUserCount()" into qt-dev
am: c949db391d

Change-Id: Ib9f6f7561cc6dd365537cf169d45c2eb191f514a
2019-11-06 14:57:13 -08:00
Kevin Hufnagle
c949db391d Merge "docs: Added perm req for getUserCount()" into qt-dev 2019-11-06 22:44:46 +00:00
Charles Munger
0a96c3b965 Deprecate AsyncTask
Change-Id: Ie142c281c48bda35f5c8fb01ec8a001e0229fd2e
BUG=144042891
2019-11-06 21:11:37 +00:00
Songchun Fan
0037c3fef2 [incremental] fundamental aidl interfaces
Please review the fundamental AIDL interfaces for enabling
the Incremenetal feature. Basically there are three services:

+ android.os.incremental.IIncrementalService:
Provides basic file operation functions. Will be implemented in native.

+ android.os.incremental.IIncrementalServiceProxy:
Started by SystemServer, is it the proxy that starts native
Incremental Service. The proxy also handles Java tasks like finding
data loader service package, binding to data loader service and talking
to it. Essentially the native Incremental Service controls the
data loader service via this proxy. Will be implemented in Java.

+ android.service.incremental.IIncrementalDataLoaderService:
Defines inteface for the base data loader service. I understand that
data loader is being re-designed but I would like to get the
"placeholder" in master first, and we can iterate on the implementation
details in master.

Test: builds
Change-Id: Ifc3a43633356951b239486d66ee80d120bc4ab76
2019-11-06 11:39:02 -08:00
Makoto Onuki
87479904ce Merge "Change argument types from FD to PFD" 2019-11-06 17:07:52 +00:00
Hans Boehm
e3c216e1ad Merge "Add disclaimer to Debug.getRuntimeStat()" am: 52218ffa3b am: c83c344516
am: c02f9c70b3

Change-Id: I8745414c51cdf25c967452cafb4e4c74377710f9
2019-11-06 03:42:51 -08:00
Hans Boehm
c02f9c70b3 Merge "Add disclaimer to Debug.getRuntimeStat()" am: 52218ffa3b
am: c83c344516

Change-Id: I795915183167a1795da7a4a630e008d76cafcf13
2019-11-06 03:35:49 -08:00
Hans Boehm
c83c344516 Merge "Add disclaimer to Debug.getRuntimeStat()"
am: 52218ffa3b

Change-Id: I45361fdf486f29c9172b1e478b027142b6e8f6ce
2019-11-06 03:23:52 -08:00
Treehugger Robot
52218ffa3b Merge "Add disclaimer to Debug.getRuntimeStat()" 2019-11-06 11:06:43 +00:00
SongFerng Wang
f1d3e7a815 Merge "[MainLine] CellularBatteryStats expose @System Api" 2019-11-06 01:18:15 +00:00
Makoto Onuki
933bf11cc3 Change argument types from FD to PFD
Bug: 142751512
Test: "adb shell cmd jobschduler help"
Test: "adb shell cmd activity help"
Change-Id: Ic35588f7c9fcaa06e3cf4feeedf54b3a0835ad44
2019-11-05 14:38:18 -08:00
SongFerngWang
8a5307c197 [MainLine] CellularBatteryStats expose @System Api
1. add getCellularBatteryStats() at BatteryStatsManager.java
2. CellularBatteryStats API transform to @System Api

Bug: 138806762
Test: build pass and device boots up
      atest TelephonyMetricsTest

Change-Id: Iec67f45f18ea26c96198bd732eadf14f878bdaa0
2019-11-06 01:19:35 +08:00
Makoto Onuki
4c7073b017 Bidner shell command API proposal
Bug: 142751512
Test: "adb shell cmd jobschduler help"
Test: "adb shell cmd activity help"

Change-Id: I9174040cae72172e82d260d0ceb9ca5a69b72940
2019-11-05 09:13:07 -08:00
Chen Xu
3157fcdfd8 Merge "new telephony annotation class" am: 386027afdd
am: 54aba99636

Change-Id: I558883c7fb94b9685da5f5c570d2d331a19ba6d5
2019-11-05 01:15:59 -08:00
Chen Xu
54aba99636 Merge "new telephony annotation class"
am: 386027afdd

Change-Id: I0bbea6ae204a899f050c146e1d528eee246a27f3
2019-11-04 16:32:32 -08:00
Chen Xu
7631ff7c48 new telephony annotation class
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.

TODO: include telephony annotation in framework-non-updatable-sources

Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit c9d4ee112e)
Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
2019-11-04 21:26:50 +00:00
Chen Xu
626f4cdb81 Merge "new TelephonyRegistryManager" am: 7a79194fcb
am: 44d0c2a7dc

Change-Id: I2a8f753c2c9fbceb4a3cde9b31fdb3d7d82ea028
2019-11-04 10:46:46 -08:00
Chen Xu
44d0c2a7dc Merge "new TelephonyRegistryManager"
am: 7a79194fcb

Change-Id: I89e60de64c4c3b8b760413c136241b6c9c0fc98f
2019-11-04 10:35:20 -08:00
Chen Xu
7a79194fcb Merge "new TelephonyRegistryManager" 2019-11-04 18:21:51 +00:00
Martijn Coenen
d231b2a363 Merge "Don't hold sProxyLock while retrieving interface descriptors." am: ef6fe13c77 am: d4d27b403c
am: 3d4d4253e4

Change-Id: I27540c32f7150eff152b324c4edccc6afcce6b92
2019-11-04 00:29:53 -08:00
Martijn Coenen
3d4d4253e4 Merge "Don't hold sProxyLock while retrieving interface descriptors." am: ef6fe13c77
am: d4d27b403c

Change-Id: Ibcdc21838228db0286f3ea4538fd58a03370db35
2019-11-04 00:24:19 -08:00
Martijn Coenen
d4d27b403c Merge "Don't hold sProxyLock while retrieving interface descriptors."
am: ef6fe13c77

Change-Id: Ie54978b2f19e42c47992e04c2f41c55d8c61df5b
2019-11-04 00:13:53 -08:00
Martijn Coenen
ef6fe13c77 Merge "Don't hold sProxyLock while retrieving interface descriptors." 2019-11-04 07:51:11 +00:00
Chen Xu
1f1c25e815 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
(cherry picked from commit 288b71c8c1)
Merged-in: I1b750751148925b4a7bd94553318907654012fc1
2019-11-01 22:44:36 +00:00
Makoto Onuki
d5d07c8d0c Merge "Undo the jobscheduler / device idle initialization with callbacks" 2019-11-01 22:08:50 +00:00
Kevin Hufnagle
5813a8c567 docs: Added perm req for getUserCount()
Test: make ds-docs -j32

Bug: 31091793

Change-Id: Ib1cae91795b0c054f2ae95af6376a8f01d839d9f
2019-11-01 18:09:14 +00:00
Makoto Onuki
152742f27a Undo the jobscheduler / device idle initialization with callbacks
We'll be able to expose system APIs from jobscheduler-framework.jar and
use them from framework-minus-apex.jar, so these elaborated initialization
will not be needed.

Bug: 142281756
Test: boot, "dumpsys batterstats"
Change-Id: I957642fc2573818d138450747e0690d7176636ad
2019-11-01 08:19:38 -07:00
Christopher Tate
ca4e621306 Move BatteryStatsInternal to services.jar
Bug: 140833849
Test: boot & run normally
Test: m checkbuild
Change-Id: Ifb3e4a69073380e09348572fdd7b0e5386e00525
2019-10-31 16:53:48 -07:00
Hui Yu
a86a36b184 Merge "Add process capability as a new dimension." 2019-10-31 23:11:21 +00:00
Roshan Pius
7969c80c7e UserManager: Add new hasUserRestrictionForUser @SystemApi
Wifi stack needs a multi-user version of hasUserRestriction.

Bug: 142888959
Test: Compiles
Change-Id: I915de45218b95c3a2856d35d6000c429942551ec
2019-10-30 20:06:30 -07:00
Hui Yu
2696932100 Add process capability as a new dimension.
Add new attribute capability to ProcessRecord, it represents what this
process is allowed to do. Capability is a separate dimension for
process state (ProcState).

In OomAdjuster.java, capabilities can be passed from client to service.

Add PROCESS_CAPABILITY_FOREGROUND_LOCATION to represent the capability
that can access location while-in-use.

For permission such as foreground location access, AppOpsService
checks for FOREGROUND_LOCATION capability, also checks if the process
is in one of the foreground process states, if both conditions meet,
the locaton operation is allowed.

Remove PROCESS_STATE_FOREGROUND_SERVICE_LOCATION.

Bug: 136274596
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
atest CtsAppTestCases:ActivityManagerApi29Test
atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java
Change-Id: Ie1c8e670fb0789208b753eb49b7e2fce6a2f211f
2019-10-30 18:23:24 -07:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
TreeHugger Robot
3e74ce33de Merge "Add @TestApi to SystemApis in SystemProperties Test: build and flash Android Bug: 143620678" 2019-10-30 18:13:33 +00:00
Sasha Kuznetsov
3a81af1c4f Add @TestApi to SystemApis in SystemProperties
Test: build and flash Android
Bug: 143620678

This is needed because these APIs are used by CTS tests.
2019-10-30 18:13:14 +00:00
Anthony Hugh
a7f66b7ee8 Merge "Update getUserSwitchability() to handle different user ids and Auto" 2019-10-29 21:08:08 +00:00
Steven Moreland
a462b8b6b9 Merge "ServiceManagerProxy: implement new method" am: 2a6f6ed94b am: 9ab8a0713f am: 1574e4fd4e
am: 156230b3bf

Change-Id: Id21faff58a559d052dfc6da049f6cd445964852d
2019-10-29 09:47:16 -07:00
Steven Moreland
156230b3bf Merge "ServiceManagerProxy: implement new method" am: 2a6f6ed94b am: 9ab8a0713f
am: 1574e4fd4e

Change-Id: I3018e9922154e7a33dd3aa4814d5f80e4118a77a
2019-10-29 09:36:18 -07:00
Steven Moreland
1574e4fd4e Merge "ServiceManagerProxy: implement new method" am: 2a6f6ed94b
am: 9ab8a0713f

Change-Id: I5af655cba2bb416ed517ba722f0f5ec46610c9bc
2019-10-29 09:26:57 -07:00
Steven Moreland
2a6f6ed94b Merge "ServiceManagerProxy: implement new method" 2019-10-29 15:45:43 +00:00