OSDN Git Service
Remi NGUYEN VAN [Fri, 28 Dec 2018 06:00:49 +0000 (15:00 +0900)]
Allow NetworkStack to send protected broadcasts
NetworkStack is a system app and should be able to send such broadcasts.
Test: flashed, booted
Bug: b/
112869080
Merged-In: I149c0a37640ea81fe5f4180e3bfc56124a2dcfa8
Change-Id: I9b020e4233dee21cdfc7f1c6341a25f1e97d3a06
Sahin Caliskan [Sat, 5 Jan 2019 21:19:09 +0000 (21:19 +0000)]
Merge "Implement RcsThread querying (base)"
Nathan Harold [Sat, 5 Jan 2019 01:25:14 +0000 (01:25 +0000)]
Merge "Fix WCDMA Level Calculation for Default CC"
Treehugger Robot [Sat, 5 Jan 2019 01:02:28 +0000 (01:02 +0000)]
Merge "Add tryCreateView to LayoutInflater"
Sahin Caliskan [Tue, 11 Dec 2018 17:38:13 +0000 (09:38 -0800)]
Implement RcsThread querying (base)
This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.
Test: Added unit test
Bug:
109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6
Treehugger Robot [Fri, 4 Jan 2019 21:49:14 +0000 (21:49 +0000)]
Merge "Deprecate Android beam APIs and create a feature flag to gate them"
Ruchi Kandoi [Tue, 23 Oct 2018 21:40:29 +0000 (14:40 -0700)]
Deprecate Android beam APIs and create a feature flag to gate them
Test: Test application trying to invoke the API
Bug:
117519147
Change-Id: Icd3187e4f3e0f180cb42d36011f60895fb395002
Nathan Harold [Thu, 3 Jan 2019 18:30:31 +0000 (10:30 -0800)]
Fix WCDMA Level Calculation for Default CC
The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.
-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
measurement type is set to RSCP.
-Define RSCP thresholds as constants.
Bug:
118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9
Eric Holk [Fri, 14 Dec 2018 18:27:29 +0000 (10:27 -0800)]
Add tryCreateView to LayoutInflater
This method is needed so that precompiled layouts can reuse the factory logic
from the LayoutInflater.
Bug:
111895153
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: Ifd1028906b655af2bd14247d586dc16b35550c82
Ruchi Kandoi [Fri, 4 Jan 2019 19:56:41 +0000 (19:56 +0000)]
Merge changes from topic "multi-se-support"
* changes:
Add a mechanism to register AIDs to specific off-host SE
Add Off-Host Card Emulation Features
Treehugger Robot [Fri, 4 Jan 2019 19:34:30 +0000 (19:34 +0000)]
Merge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings"
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:37:44 +0000 (13:37 -0800)]
Fix/suppress aapt/aapt2 google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ie02101ea7c422e8add535c111a30a2f21ead0ace
Junyu Lai [Fri, 4 Jan 2019 09:29:10 +0000 (09:29 +0000)]
Merge "Ignore ipv6 tx traffic on clat uid."
Ruchi Kandoi [Fri, 19 Oct 2018 20:08:34 +0000 (13:08 -0700)]
Add a mechanism to register AIDs to specific off-host SE
Test: manual
Bug:
117253962
Change-Id: Id34bf84dcff7789548eac19478010838bebd9758
Sahin Caliskan [Fri, 4 Jan 2019 00:04:43 +0000 (00:04 +0000)]
Merge "Skeleton implementation of RCS APIs"
Ruchi Kandoi [Wed, 17 Oct 2018 00:29:16 +0000 (17:29 -0700)]
Add Off-Host Card Emulation Features
Test: CTS test; manual
Bug:
117253962
Change-Id: I7c35b1bffbc57870bb8c67704811a2649854d94e
Sahin Caliskan [Sat, 1 Dec 2018 01:03:34 +0000 (17:03 -0800)]
Skeleton implementation of RCS APIs
This change adds the classes for RCS Storage APIs. There
is no business logic implemented yet, and the parcelable boilerplate
code doesn't really do anything.
This was needed as these APIs are meant to be interconnected, i.e. to
use an RcsPart, the app developer will need an RcsMessage, and for
that they will need the RcsThread etc.
Test: Builds fine. Tests will be added as I add business logic.
Bug:
109759350
Change-Id: I20897946dc1d9218f60274c7e3242194c7e2ac32
Treehugger Robot [Thu, 3 Jan 2019 20:51:22 +0000 (20:51 +0000)]
Merge "Update sound/vibrate notification key only when it actually buzz/beep."
Julia Reynolds [Thu, 3 Jan 2019 19:43:36 +0000 (19:43 +0000)]
Merge "Check if notification is valid before it finally vibrates because it can be canceled as soon as enqeued"
Treehugger Robot [Wed, 2 Jan 2019 23:48:35 +0000 (23:48 +0000)]
Merge "Fix/suppress services/core google-explicit-constructor warnings"
Treehugger Robot [Wed, 2 Jan 2019 22:49:30 +0000 (22:49 +0000)]
Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()."
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:51:59 +0000 (13:51 -0800)]
Fix/suppress services/core google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id2493c1e248e774042dc67f39ada6bb3a4521d0c
Treehugger Robot [Wed, 2 Jan 2019 21:51:19 +0000 (21:51 +0000)]
Merge "[LayoutInflater] Cleanup - remove some nesting"
Chih-hung Hsieh [Wed, 2 Jan 2019 19:34:29 +0000 (19:34 +0000)]
Merge "Fix/suppress bootanimation google-explicit-constructor warnings"
Treehugger Robot [Wed, 2 Jan 2019 19:19:00 +0000 (19:19 +0000)]
Merge "[view-compiler] Better namespacing of util functions"
Eric Holk [Wed, 2 Jan 2019 19:11:24 +0000 (11:11 -0800)]
[LayoutInflater] Cleanup - remove some nesting
The parseInclude method had some deep nesting that could be improved by
rearranging things a little.
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: I2ee13c2ee80bcb220371d39a5a6da6044cfa245c
Eric Holk [Thu, 13 Dec 2018 21:23:43 +0000 (13:23 -0800)]
[view-compiler] Better namespacing of util functions
This moves some helper functions into our own namespace to avoid conflicting
with other util.h files.
Bug:
111895153
Change-Id: I2b4c77732a97b34a8528d69867c15ed802686703
Treehugger Robot [Wed, 2 Jan 2019 15:43:40 +0000 (15:43 +0000)]
Merge "[view compiler] Re-enable host-side tests"
Mathew Inwood [Wed, 2 Jan 2019 12:30:32 +0000 (12:30 +0000)]
Merge "Limit access to suspected false positives."
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:39:40 +0000 (13:39 -0800)]
Fix/suppress bootanimation google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ia6ada49250973d507ae8b10d8f0d7c2d47ee805c
Shuo Qian [Fri, 28 Dec 2018 20:59:16 +0000 (20:59 +0000)]
Merge "Do not use default to get TelephonyManager"
Shuo Qian [Fri, 28 Dec 2018 20:14:44 +0000 (20:14 +0000)]
Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check"
sqian [Sat, 15 Dec 2018 05:47:49 +0000 (21:47 -0800)]
Do not use default to get TelephonyManager
Bug:
112657134
Test: Manual
Change-Id: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
Merged-In: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
(cherry picked from commit
b0ae02b6464b3bd7f49ef68ae16ac0660ea169d9)
sqian [Mon, 10 Dec 2018 22:29:06 +0000 (14:29 -0800)]
Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug:
112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit
6279e97c43f80012cc3a5a6f269506fb55a165e3)
Shuo Qian [Fri, 28 Dec 2018 18:07:23 +0000 (18:07 +0000)]
Merge "EmergencyNumber enhancement"
Mathew Inwood [Thu, 20 Dec 2018 15:30:45 +0000 (15:30 +0000)]
Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.
Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.
For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.
Bug:
115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
sqian [Thu, 27 Dec 2018 22:12:11 +0000 (14:12 -0800)]
EmergencyNumber enhancement
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber
Bug:
112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit
9f93a12e1f2548fa49c9220c092ddeaff9d76962)
Shuo Qian [Thu, 27 Dec 2018 22:03:45 +0000 (22:03 +0000)]
Merge "Add Emergency service categories in ImsCallProfile"
Shuo Qian [Thu, 27 Dec 2018 21:58:00 +0000 (21:58 +0000)]
Merge "Make some SubscriptionManager APIs system APIs"
Treehugger Robot [Thu, 27 Dec 2018 19:44:28 +0000 (19:44 +0000)]
Merge "Update api/current.txt for setuid deprecation"
Treehugger Robot [Thu, 27 Dec 2018 01:58:05 +0000 (01:58 +0000)]
Merge "Adding check for HMAC/EC key size for StrongBox"
Nathan Harold [Thu, 27 Dec 2018 01:44:14 +0000 (01:44 +0000)]
Merge "Fix BSIC Check in CellIdentityGsm"
Nathan Harold [Thu, 27 Dec 2018 01:14:25 +0000 (17:14 -0800)]
Fix BSIC Check in CellIdentityGsm
Because Java uses signed bytes, a comparison between
a byte and 0xFF will always fail after integer
promotion. Fix this by forcing 0xFF to be treated as
a byte for comparison.
Bug:
119224773
Test: fixes build breakage
Change-Id: I9615667a6b442060f1d43084d56bc9c3fdb3ba35
Nathan Harold [Wed, 26 Dec 2018 23:07:53 +0000 (23:07 +0000)]
Merge "Refactor CellInfo Constructors"
Nathan Harold [Mon, 10 Dec 2018 21:39:40 +0000 (13:39 -0800)]
Refactor CellInfo Constructors
Bug:
119224773
Test: atest FrameworksTelephonyTests
Change-Id: Ibf56797b5be2508656409a3437ff79210334bfd6
Jordan Liu [Wed, 26 Dec 2018 16:16:02 +0000 (16:16 +0000)]
Merge "Add UiccCardInfo APIs"
Remi NGUYEN VAN [Wed, 26 Dec 2018 07:16:28 +0000 (07:16 +0000)]
Merge "Start NetworkStack on system server start"
Remi NGUYEN VAN [Tue, 18 Dec 2018 09:24:26 +0000 (18:24 +0900)]
Start NetworkStack on system server start
The network stack will host updatable network components that are being
moved from the system server.
Test: flashed, booted
Bug: b/
112869080
Change-Id: I63f98405b69615e7077aed374b8f34a84fb1e4b2
Remi NGUYEN VAN [Wed, 26 Dec 2018 00:48:25 +0000 (00:48 +0000)]
Merge "Add NetworkStack app"
Chalard Jean [Tue, 25 Dec 2018 10:55:10 +0000 (10:55 +0000)]
Merge "[PT17] Small cleanup of PacManager"
Chiachang Wang [Tue, 25 Dec 2018 03:08:01 +0000 (03:08 +0000)]
Merge "Refactor logic in the enter() of WaitingForNextProbeState"
Remi NGUYEN VAN [Fri, 7 Dec 2018 07:52:24 +0000 (16:52 +0900)]
Add NetworkStack app
The app is not started yet, and does not contain any service for now.
Test: built, booted
Bug: b/
112869080
Change-Id: Id5a0fd02c891100e85d86b1040e53beec3581950
Chiachang Wang [Mon, 24 Dec 2018 03:05:52 +0000 (11:05 +0800)]
Refactor logic in the enter() of WaitingForNextProbeState
For clarity, factoring logic in enter() out to a function.
Bug:
120014928
Test: atest FrameworksNetTests
Change-Id: Ib215594686fb08f8382178e8ada0b57f0e4a0590
Tobias Thierer [Sun, 23 Dec 2018 14:25:58 +0000 (14:25 +0000)]
Fix @NonNull -> Nullable for Intent.replaceExtras().
extras == null is documented to result in all extras being
erased, and the implementation handles it correctly. The
@NonNull annotation on Bundle extras is therefore wrong.
This CL replaces it with the correct annotation, @Nullable.
The incorrect annotation was introduced in April 2017
(commit
30e06bb668f2e4b024c4ebc2a131de91c96de5eb). I've
looked through the other changes to Intent.java in that
commit but have found no further nullability annotation
errors.
Bug:
121438778
Test: Treehugger
Test: Looked through the other nullability annotations on
Intent.java introduced by the same commit
30e06bb668f2e4b024c4ebc2a131de91c96de5eb (Apr 2017)
but found no further errors.
Change-Id: Iebbe17abc5c97146533e82114fbaf1d7036fd03a
Nathan Harold [Sat, 22 Dec 2018 00:38:05 +0000 (00:38 +0000)]
Merge "Refactor SignalStrength"
Eric Holk [Sat, 22 Dec 2018 00:10:49 +0000 (16:10 -0800)]
[view compiler] Re-enable host-side tests
TEST_MAPPING supports both host and device tests now, so we should run both.
Test: atest
Bug:
111895153
Change-Id: I48f26093fc0ae3cdaa9e5295375945b5a519e1c2
Jordan Liu [Fri, 21 Dec 2018 21:55:07 +0000 (21:55 +0000)]
Merge "SubscriptionInfo contains int cardId"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:35:19 +0000 (16:35 +0000)]
Merge "Fix/suppress statsd google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:30:12 +0000 (16:30 +0000)]
Merge "Fix/suppress incident* google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:29:55 +0000 (16:29 +0000)]
Merge "Fix/suppress pipeline google-explicit-constructor warnings"
Seungho Lee [Wed, 31 Oct 2018 12:49:09 +0000 (21:49 +0900)]
Check if notification is valid before it finally vibrates because it can be canceled as soon as enqeued
Test: Build and run StatusBarTest/_NotifyBuilder
Test: Set notification sound and vibration
Test: Make notification with + button, and cancel it with - button quickly
TEst: Check notification not vibrating
Change-Id: Ia21f45c165f863ed4143da3707b492c89e58387c
Merged-In: Ia21f45c165f863ed4143da3707b492c89e58387c
Signed-off-by: Seungho Lee <shiny.lee@samsung.com>
Paul Hu [Fri, 21 Dec 2018 15:21:03 +0000 (15:21 +0000)]
Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs"
Seungho Lee [Sun, 9 Dec 2018 10:27:36 +0000 (19:27 +0900)]
Update sound/vibrate notification key only when it actually buzz/beep.
Test: Make notification with vibration pattern with [0]
Test: Check mVibrateNotificationKey unchanged
Change-Id: I208797f370ac5a30db5fcc316be956335a418319
Merged-In: I208797f370ac5a30db5fcc316be956335a418319
Orion Hodson [Fri, 21 Dec 2018 10:01:44 +0000 (10:01 +0000)]
Merge "Remove dependency on libnativehelper/JniConstants.h"
Junyu Lai [Fri, 21 Dec 2018 09:56:39 +0000 (09:56 +0000)]
Merge "Deprecate NetworkInfo"
Treehugger Robot [Fri, 21 Dec 2018 05:53:36 +0000 (05:53 +0000)]
Merge "Fix/suppress startop google-explicit-constructor warnings"
Treehugger Robot [Fri, 21 Dec 2018 05:42:36 +0000 (05:42 +0000)]
Merge "Fix/suppress renderthread google-explicit-constructor warnings"
Treehugger Robot [Fri, 21 Dec 2018 03:56:21 +0000 (03:56 +0000)]
Merge "whitelist pri permission for carrierconfig app"
Chen Xu [Fri, 21 Dec 2018 03:52:16 +0000 (03:52 +0000)]
Merge "new SystemAPI for preciseCallState and DisconnectCause"
Jack Yu [Fri, 21 Dec 2018 02:29:43 +0000 (02:29 +0000)]
Merge "Moved data settings to phone"
Calvin Pan [Fri, 21 Dec 2018 01:31:44 +0000 (01:31 +0000)]
Merge "Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data"
Treehugger Robot [Fri, 21 Dec 2018 01:26:17 +0000 (01:26 +0000)]
Merge "Fix/suppress core/jni google-explicit-constructor warnings"
chen xu [Sun, 2 Dec 2018 00:59:23 +0000 (16:59 -0800)]
whitelist pri permission for carrierconfig app
Bug:
121350842
Test: Build
Change-Id: If804e18265a917e841d6afc1b7a450321cc1cc77
Xiangyu/Malcolm Chen [Fri, 21 Dec 2018 00:05:17 +0000 (00:05 +0000)]
Merge "Add APIs to indicate which subscriptions should be hidden from user"
Xiangyu/Malcolm Chen [Fri, 21 Dec 2018 00:04:57 +0000 (00:04 +0000)]
Merge changes from topic "
118349116"
* changes:
Fix broken building offline-sdk-docs.
Add APIs to remove sub from a group and get subs in the same gorup.
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:48:57 +0000 (13:48 -0800)]
Fix/suppress pipeline google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Iadeb6cf7ba65d646ec131e567b3ef90c3a699885
Rob Barnes [Thu, 20 Dec 2018 23:33:25 +0000 (23:33 +0000)]
Merge "Changed uid output parameter from an int array to a list of strings."
Jack Yu [Thu, 13 Dec 2018 21:37:48 +0000 (13:37 -0800)]
Moved data settings to phone
Since there are multiple DcTrackers, but we only have
one set of data settings. So we need to move them from
DcTracker to Phone.
Test: Telephony sanity tests + unit tests
Bug:
73659459
Merged-In: Ica24b708beb63156937e88198a4c915485771b0a
Change-Id: Ica24b708beb63156937e88198a4c915485771b0a
(cherry picked from commit
335860e44f6c7d040646be9d50c862b9c6488dec)
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:42:28 +0000 (13:42 -0800)]
Fix/suppress statsd google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Remove redundant explicit of copy constructors
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ifd0ca9a1afe4a2cb0456a36c69bee1633af5a93a
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:55:20 +0000 (13:55 -0800)]
Fix/suppress renderthread google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ib7d634bf1e0e9a1dda35b0a1d92de4d460193296
Treehugger Robot [Thu, 20 Dec 2018 22:45:18 +0000 (22:45 +0000)]
Merge changes from topic "fw_container"
* changes:
DO NOT MERGE Set ContainerLayer for buffer-less surface
DO NOT MERGE: WM: Restrict SC Builder to set a single surface type
Implement construction of container layers
Treehugger Robot [Thu, 20 Dec 2018 22:05:58 +0000 (22:05 +0000)]
Merge "Statsd: Enable host_supported for libstatslog"
Nathan Harold [Tue, 20 Nov 2018 02:09:40 +0000 (18:09 -0800)]
Refactor SignalStrength
Refactor SignalStrength as a container of
individual CellSignalStrength objects for each
radio technology.
-Change SignalStrength to contain CellSignalStrength
rather than individual measurements.
-Change the constructors for SignalStrength to take
CellSignalStrength objects.
-Consolidate all the logic for calculating the getLevel()
function to CellSignalStrength.
-Store the level value in SignalStrengths rather than
compute it on the fly when needed.
-Add a few missing functions needed by SignalStrength:
-CellSignalStrengthCdma#getEvdoAsuLevel()
-CellSignalStrengthTdscdma#getRscp()
-Convert CellSignalStrength classes to take actual values
instead of ASU values.
Bug:
25984037
Test: atest SignalStrengthTest
Change-Id: I302e7a8c6f68559dc69a3138061eec739ee7561f
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:53:28 +0000 (13:53 -0800)]
Fix/suppress startop google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I9e7b929cfa65c68f4cdb4710c1c5c6760d56e4d5
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:45:04 +0000 (13:45 -0800)]
Fix/suppress incident* google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Remove redundant explicit of copy constructors
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I26a11bb798d25605577269ed340e97afc8566960
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:43:46 +0000 (13:43 -0800)]
Fix/suppress core/jni google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug:
28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I15ac3511154b652402c5a21a22ff0c306d806d84
chen xu [Thu, 13 Dec 2018 03:59:30 +0000 (19:59 -0800)]
new SystemAPI for preciseCallState and DisconnectCause
1. decouple disconnectCause and preciseDisconnectCuase from
preciseCallState.
2. expose preciseCallState to SystemAPI and expose
onPreciseCallStateChanged to System API
3. remove/hide ImsReasonInfo from PreciseDisconnectCuase
4. expose DiconnectCuase and PreciseDisconnectCause to System API
5. new onDisconnectCauseChanged API on PhoneStateListener for CS call
and use ImsCallSessionListener for IMS call(imsreasonInfo)
6. add read_precise_phone_state to shell apk to enable GTS test
Bug:
119890559
Test: atest GtsGmscoreHostTestCases:TelephonyHostTest#testPhoneStateListener
Change-Id: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
(cherry picked from commit
6a942d488af3356fe84b0cef396e613d8d74101e)
Merged-in: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
Treehugger Robot [Thu, 20 Dec 2018 18:32:42 +0000 (18:32 +0000)]
Merge "Adds vishnun to owners files for wm/am"
Orion Hodson [Wed, 21 Nov 2018 10:59:19 +0000 (10:59 +0000)]
Remove dependency on libnativehelper/JniConstants.h
Remove unused references to JniConstants.h.
Add jclass value caching in SharedMemory and StrictJarFile as present
for other classes here.
Lightly tidy up JNI code touched.
Bug:
119840313
Test: atest cts/tests/tests/os
Test: tests/tests/util/src/android/util/cts/StrictJarFileTest.java
Change-Id: I0be0fecdd9c7f9dd32cf588ed79060f0ce268588
David Brazdil [Thu, 20 Dec 2018 13:36:34 +0000 (13:36 +0000)]
Merge "Annotate two non-SDK methods known to be used by apps"
David Brazdil [Thu, 20 Dec 2018 09:32:11 +0000 (09:32 +0000)]
Annotate two non-SDK methods known to be used by apps
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug:
121237128
Bug:
120783643
Test: m appcompat
Change-Id: Ib7a8bdf3151290aa8a5ca85dc8650612432f0d59
vichang [Thu, 20 Dec 2018 11:37:55 +0000 (11:37 +0000)]
Merge "Use ICU in libandroidicu"
Jiyong Park [Thu, 20 Dec 2018 09:40:29 +0000 (09:40 +0000)]
Merge "Show version for APEXes"
Chalard Jean [Mon, 11 Jun 2018 07:58:52 +0000 (16:58 +0900)]
[PT17] Small cleanup of PacManager
Test: runtest
Change-Id: I94a10cbae7f2d87bd8a68ae4f9972a728f4942c3
Jack He [Thu, 20 Dec 2018 08:42:31 +0000 (00:42 -0800)]
Statsd: Enable host_supported for libstatslog
* libutils must be used as a static library when compiled on host
* Host does not have Android system properties and hence we cannot
use <cutils/properties.h>. In fact, properties.cpp is not even
compiled on host for libcutils. Therefore, this CL adds a check
for __ANDROID__ macro before including <sys/propoerties.h> and
before calling properties_get_bool()
* On host, statsd logging will be disabled since host does not
use statsd for anything
Fixes:
121294178
Test: test drive statsd
Change-Id: I838ff02468c650c5f7d85e68fa5008b98f08ce8c
junyulai [Thu, 13 Dec 2018 04:47:51 +0000 (12:47 +0800)]
Deprecate NetworkInfo
Currently NetworkInfo is used by Apps to get information of
network. However, to get such information, Apps need to poll
NetworkInfo frequently from ConnectivityService.
In order to increase the stability and reduce the maintain
effort, all functionalities provided by NetworkInfo are targeted
to be replaced or removed entirely.
Apps should use ConnectivityManager.NetworkCallback instead, to
get faster and more detailed updates from connectivity changes.
Or, apps could use getNetworkCapabilities or getLinkProperties
to get information synchronously, but should not mix the
callbacks and synchronous methods together.
Bug:
113629330
Test: atest FrameworksNetTests
Change-Id: Ie8faf620958c3fa0a4a2f233b35b825de0e99ffc
David Brazdil [Thu, 20 Dec 2018 08:25:22 +0000 (08:25 +0000)]
Merge "Revert "[framework] Compile secondary dex files in isolation""
David Brazdil [Tue, 18 Dec 2018 13:43:55 +0000 (13:43 +0000)]
Revert "[framework] Compile secondary dex files in isolation"
This reverts commit
8a5a708df18c2377c7ec3cb03d406bdc9cb99bd6.
ART does not compile secondary dex files in the user process
any more. The original issue of a large overhead of providing
a class loader context is therefore not relevant any more and
we can start passing the context to installd.
Note that this also partially reverts commit
6dba50d63375b6738c6e1ad8a8758f181d295d8b which restricted
visibility of methods in PackageDexUsage. The commit also
removed data collection for unsupported class loaders. The
logic in PackageDexOptimizer was adjusted accordingly.
Bug:
64530081
Bug:
111174995
Test: manual
Change-Id: Id78b5a6d8841b199c12a63a8d45d12efbcc32275
Mathew Inwood [Thu, 20 Dec 2018 07:48:25 +0000 (07:48 +0000)]
Merge "Include annotation property values in output."
Mathew Inwood [Fri, 23 Nov 2018 14:57:28 +0000 (14:57 +0000)]
Include annotation property values in output.
When editing annotations, we want the ability *not* to overwrite any
existing annotation properties already in place. Include any properties
set on the annotation in the output, so that the edit_annotations script
can know that they're there.
The annotation properties are encoded like URL query parameters for
convenience; it makes them easy to encode here & subsequently decode on
the other side (in Python).
Test: m framework-annotation-proc & inspect output.
(cherry picked from commit
bd7077065c211f49b090aa4250b53b58461adfd9)
Merged-In: I71fb1215ad2790751be336b4955c163bb323a4a6
Change-Id: I0b33e2b379076346ce258d93a9225a9143b7d91a