Commit Graph

389760 Commits

Author SHA1 Message Date
Joe Onorato
a3f265fa2e Class to parse the raw batterystats csv.
This parser builds a set of objects from the csv by looking
at the annotations on the fields.  Each line in the csv
corresponds to a Record object.

Test: atest frameworks/base/tools/powermodel --host
Change-Id: Ifeae68ce3bc3a6ea9330ff924204f016bff20663
2018-11-28 13:01:47 -08:00
Joe Onorato
7d1851fe49 Add csv parser for the power profile library.
There are enough variants of csv, and it's simple enough that
it's easier to just have our own parser than to introduce a
dependency on some other library, as this library will be used
in a variety of environments.

Test: atest frameworks/base/tools/powermodel --host
Change-Id: Ib0f7aceb2a58b58f447f6bcef5c95729303dee8a
2018-11-28 12:34:31 -08:00
Joe Onorato
9112a5e07a Off-device library for the power model.
This first CL adds a class, PowerProfile that parses the power
profile xml file into a set of individual *Profile classes, one
for each of the hardware "components."

There will be more to come.  This library will be used to compute
the power model from a batterystats or statsd dump, with abstractions
so clients don't need to know all of the nuances of batterystats'
old versions, or statsd's configs.

Test: atest frameworks/base/tools/powermodel --host
Change-Id: I79802f91234b09539072d10f15534cef391fe04a
2018-11-28 12:06:31 -08:00
Amit Mahajan
5af89dfbd5 Merge "Initial RCS CL." 2018-10-19 23:40:29 +00:00
Wale Ogunwale
6805a5a511 Merge changes Ia435aa81,If36c7d9c,I09311d30
* changes:
  Stopped starting and killing processes directly from ATMS (27/n)
  Removed direct calls to AMS.broadcastIntentLocked from ATMS (26/n)
  Removed references to ProcessRecord in ActivityStackSupervisor (25/n)
2018-10-19 22:45:59 +00:00
Chen Xu
5320e1fee2 Merge "Revert "Telephony light grey list clean up for Q"" 2018-10-19 22:42:26 +00:00
TreeHugger Robot
112392d9d3 Merge "WebView: fix mistaken wording in API doc" 2018-10-19 21:24:07 +00:00
Brad Ebinger
1f69fd6899 Merge "Expose the empty MmTelCapabilities constructor" am: 7fff7e5eff am: 4e63b90a3b
am: 6984c36cc0

Change-Id: I4fbda78af72724c96ba8d4ec8dfe104f085d5d79
2018-10-19 14:16:22 -07:00
Jayachandran Chinnakkannu
12b4d2f394 [automerger skipped] Merge "Add a new intent ACTION_MMSSMS_DATABASE_LOST" into pi-dev am: e25c238953
am: fce7b175d7  -s ours

Change-Id: I6efafd1a9422f3cf24e1c566c236c70a2d1d8b37
2018-10-19 14:05:07 -07:00
Brad Ebinger
6984c36cc0 Merge "Expose the empty MmTelCapabilities constructor" am: 7fff7e5eff
am: 4e63b90a3b

Change-Id: Iad80098eda2635ea490929e3bab84e7575b08c59
2018-10-19 13:54:58 -07:00
Brad Ebinger
d8c16347a9 Merge "Adds new Public ImsManager API" 2018-10-19 20:51:44 +00:00
Jayachandran Chinnakkannu
fce7b175d7 Merge "Add a new intent ACTION_MMSSMS_DATABASE_LOST" into pi-dev
am: e25c238953

Change-Id: Ia90ad849bae3a56eb718c0dcd1475c1a4703c48a
2018-10-19 13:46:17 -07:00
Niklas Lindgren
a43cbb3cd1 [automerger skipped] Merge "Remove resources for 4G/LTE/LTE+ icons" am: 1868b7eec8 am: 75ff8539c0
am: a65185a0f6  -s ours

Change-Id: I4438976cf6658c79e5bafca5b831795a459e72eb
2018-10-19 13:45:52 -07:00
chen xu
942c7d8b95 [automerger skipped] Merge "correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED" am: 2c10a29eaa am: fd6cccc775
am: 7f3258ac83  -s ours

Change-Id: I6f316c33a6367a18c691d1d2488fab627945e74f
2018-10-19 13:35:07 -07:00
Brad Ebinger
4e63b90a3b Merge "Expose the empty MmTelCapabilities constructor"
am: 7fff7e5eff

Change-Id: Ifbfea70cccb17b93c49fc7458d81e49b3788d257
2018-10-19 13:34:36 -07:00
Jayachandran Chinnakkannu
e25c238953 Merge "Add a new intent ACTION_MMSSMS_DATABASE_LOST" into pi-dev 2018-10-19 20:32:41 +00:00
Niklas Lindgren
a65185a0f6 Merge "Remove resources for 4G/LTE/LTE+ icons" am: 1868b7eec8
am: 75ff8539c0

Change-Id: I457f6597cac8feed6210850b47293db31c1ebcac
2018-10-19 13:31:50 -07:00
Haoyu Zhang
0a04650e51 Merge "Add textLocale attributes to TextView and TextAppearanceSpan" 2018-10-19 20:30:02 +00:00
Chen Xu
4b281d5845 [automerger skipped] Merge "new SystemAPI for setCarrierDataEnabled" am: 7dd38c2115 am: 6ec00c2584
am: 39f0965925  -s ours

Change-Id: I3126061d8affa6981c42c9b8e52fb8f48a943fde
2018-10-19 13:27:02 -07:00
chen xu
7f3258ac83 Merge "correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED" am: 2c10a29eaa
am: fd6cccc775

Change-Id: I45f482ad6b57cc3ff7c5f125f5f98f748f54063c
2018-10-19 13:26:32 -07:00
Chen Xu
2d42ee1147 Revert "Telephony light grey list clean up for Q"
Reason for revert: This CL caused MMS break because Bugle is using the
hidden API in Q's darkgrey list. The proper fix should either come from
Bugle team if their apk moved to Q, or compat team to explore why this
caused issue for app target on P.

Bug: 117899984
Test: telehony unit test
Change-Id: I49207b7f66d75e6e6cc3aa4828601938a3172828
2018-10-19 13:21:24 -07:00
Brad Ebinger
7fff7e5eff Merge "Expose the empty MmTelCapabilities constructor" 2018-10-19 20:20:14 +00:00
Chen Xu
39f0965925 Merge "new SystemAPI for setCarrierDataEnabled" am: 7dd38c2115
am: 6ec00c2584

Change-Id: I83fa3369a48b9cc6bfe962f2ae101f06709793ae
2018-10-19 13:16:05 -07:00
Niklas Lindgren
75ff8539c0 Merge "Remove resources for 4G/LTE/LTE+ icons"
am: 1868b7eec8

Change-Id: I5a2a49fffa76cf6a8c329f719d108d77ef1f538d
2018-10-19 13:09:14 -07:00
chen xu
fd6cccc775 Merge "correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED"
am: 2c10a29eaa

Change-Id: I265296c4a1b40606f8e3e2b96d4d20a1ccd9d4c7
2018-10-19 12:56:35 -07:00
Chen Xu
6ec00c2584 Merge "new SystemAPI for setCarrierDataEnabled"
am: 7dd38c2115

Change-Id: I37981416901ce00637392a1289cb627e27750666
2018-10-19 12:52:37 -07:00
Jovana Knezevic
6194930dae Merge "Makes bluetooth profile services bind to current (foreground) user." 2018-10-19 19:47:15 +00:00
Chen Xu
88708e8187 [automerger skipped] Merge "Revert "Telephony light grey list clean up for Q"" am: a18e095754 am: c16c2f7c8e
am: cd6874f0bf  -s ours

Change-Id: I893e59ad8c4eb5237bc36f4950140cd91fcae99d
2018-10-19 12:44:50 -07:00
Treehugger Robot
1868b7eec8 Merge "Remove resources for 4G/LTE/LTE+ icons" 2018-10-19 19:26:20 +00:00
Treehugger Robot
2c10a29eaa Merge "correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED" 2018-10-19 19:19:26 +00:00
Michael Groover
3ce26d00f7 Merge "Require READ_PHONE_STATE for DO/PO dev ID access" 2018-10-19 19:15:01 +00:00
Chen Xu
cd6874f0bf Merge "Revert "Telephony light grey list clean up for Q"" am: a18e095754
am: c16c2f7c8e

Change-Id: I17fee4991fbe3a8987710be55e73898c1abebe82
2018-10-19 12:11:23 -07:00
Chen Xu
c16c2f7c8e Merge "Revert "Telephony light grey list clean up for Q""
am: a18e095754

Change-Id: I413ff7a0e759ae257d3be6fba180c220b15f07d2
2018-10-19 11:58:21 -07:00
Chen Xu
3e2deae2fd Merge "expose some Telephony.Carriers cols system APIs" am: f2e0f57976 am: bb0689b6d5
am: 76819cc048

Change-Id: Ie98dd2591f8f83d00751a6e78af54c06b75314d7
2018-10-19 11:55:25 -07:00
Rakesh Iyer
320deb7982 Merge "Remove extra call to dispatchStart()." 2018-10-19 18:50:04 +00:00
Stanley Tng
8457abe705 [automerger skipped] Merge "Fix missing connection state changes intent for Hearing Aids" am: 4c7123f8e3 am: 76439a1665 -s ours
am: f2e3a3263c  -s ours

Change-Id: I460939f26d57bdda65feb6ef9d73b90eb27e539e
2018-10-19 11:48:39 -07:00
Chen Xu
7dd38c2115 Merge "new SystemAPI for setCarrierDataEnabled" 2018-10-19 18:47:27 +00:00
Chen Xu
a18e095754 Merge "Revert "Telephony light grey list clean up for Q"" 2018-10-19 18:36:56 +00:00
Youming Ye
32270420e8 [automerger skipped] Merge changes from topic "cherrypick" am: c4b647458c am: 130aacd566
am: d750be00bb  -s ours

Change-Id: I572fe2f6b89c4484d02558dd5945ab7acf5caebf
2018-10-19 11:30:59 -07:00
Chen Xu
76819cc048 Merge "expose some Telephony.Carriers cols system APIs" am: f2e0f57976
am: bb0689b6d5

Change-Id: I39fa9903ca0b3709fe420f80cfa0a3ae32a28537
2018-10-19 11:29:43 -07:00
Youming Ye
4abad16037 [automerger skipped] Merge changes from topic "cherrypick" am: c4b647458c
am: 612587f823  -s ours

Change-Id: I9d7661671278cabd1114a370f3b0e360599754e6
2018-10-19 11:24:18 -07:00
Niklas Lindgren
2132595d59 Remove resources for 4G/LTE/LTE+ icons
CarrierConfig values have been added to better support MVNOs.
Remove the legacy resources.

Test: Make sure that marlin builds with the new carrier configs.
Bug: 113309357
Bug: 113309356
Change-Id: I3b0af46282a4b7fc8487acfb75b5dbbb7f41d316
Merged-In: I3b0af46282a4b7fc8487acfb75b5dbbb7f41d316
2018-10-19 18:23:44 +00:00
taiki tsutsumi
d33702dab8 [automerger skipped] Add CarrierConfig to hide "Network default" option in Caller ID setting am: 187c9943ff
am: 7bb40b5909  -s ours

Change-Id: Ib03590cf3a4f0ad0b9b88f7612ac7d6e5ddfbe57
2018-10-19 11:18:54 -07:00
Stanley Tng
f2e3a3263c [automerger skipped] Merge "Fix missing connection state changes intent for Hearing Aids" am: 4c7123f8e3
am: 76439a1665  -s ours

Change-Id: I764575454ea0d68cac5aeada3d570dd3faf26b6b
2018-10-19 11:18:52 -07:00
chen xu
b591f9d2dd correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED
keep the value same as master

Bug: 117930373
Test: telephony unit test
Change-Id: I0bad21eeed2b4667fbb781253828b99332103b31
Merged-in: Id170063bfdb1e3325f67e8680231ab4deda7d65d
2018-10-19 18:18:39 +00:00
SongFerngWang
ec67b3fb5e add four new carrier configs for supplementary service precautions. am: 7e7c7d2abf am: dd86ea6036
am: 130e0db53b

Change-Id: Iad4380068dc63fa1eb4233beed4ccfca36604e81
2018-10-19 11:14:55 -07:00
Chen Xu
bb0689b6d5 Merge "expose some Telephony.Carriers cols system APIs"
am: f2e0f57976

Change-Id: Ifbceb368352aa1f57912b6690f61fe8412e2dc41
2018-10-19 11:13:04 -07:00
Jayachandran C
cfc669e34f Add a new intent ACTION_MMSSMS_DATABASE_LOST
This intent is to catch the mmssms.db getting mysteriously lost.
The is a hide@ API and is protected with MODIFY_PHONE_STATE permission.

Bug: 115990430
Test: Simulated mmsmsm.db corruption and verified that the intent is
broadcasted and received by application with MODIFY_PHONE_STATE
permission

Merged-in: I3474df294c550b503b74bde25f10ae43ab5863a1
Change-Id: I3474df294c550b503b74bde25f10ae43ab5863a1
2018-10-19 18:11:44 +00:00
SongFerngWang
87534813dd add four new carrier configs for supplementary service precautions. am: 7e7c7d2abf
am: 1f20caddba

Change-Id: Id29b3cce13afb4ecb35df709191d6f2732550c2a
2018-10-19 11:09:39 -07:00
Chen Xu
bab59cb9db Revert "Telephony light grey list clean up for Q"
This reverts commit 253bdb7175.

Reason for revert: This CL caused MMS break because Bugle is using the
hidden API in Q's darkgrey list. The proper fix should either come from
Bugle team if their apk moved to Q, or compat team to explore why this
caused issue for app target on P.

Change-Id: Icc6c190cde79c10d9045183c0b80cdf008e95578

Bug: 117899984
2018-10-19 18:05:32 +00:00