OSDN Git Service

android-x86/frameworks-base.git
5 years agoUpload platform compat config generated from framework target.
atrost [Mon, 5 Aug 2019 11:22:18 +0000 (12:22 +0100)]
Upload platform compat config generated from framework target.

Add compat-changeid-annotation-processor and upload the generated compat
config using the platform_compat_config rule.
Make both libcore and framework compat configs required for framework to
make sure they get onto the device. Libcore will be removed once the
config is uploaded to APEX.

Test: flashed device locally, config files found and read by
com.android.server.compat.CompatConfig.
Bug: 138222363

Change-Id: Ie04fde8b4b18e7e34d95257f5ef8ca78d5076b4f

5 years agoMerge "Fix broken Javadoc links in frameworks/base"
Treehugger Robot [Sat, 3 Aug 2019 01:37:45 +0000 (01:37 +0000)]
Merge "Fix broken Javadoc links in frameworks/base"

5 years agoFix broken Javadoc links in frameworks/base
Aurimas Liutikas [Fri, 2 Aug 2019 22:40:29 +0000 (15:40 -0700)]
Fix broken Javadoc links in frameworks/base

Test: running metalava with syntax check enabled.
Change-Id: I13ec355b591b0ae3cfb5009794b1ed844d27cba8

5 years agoMerge "Fix null pointer exception of calling NetworkInfo.mState.name()"
Chalard Jean [Fri, 2 Aug 2019 19:56:10 +0000 (19:56 +0000)]
Merge "Fix null pointer exception of calling NetworkInfo.mState.name()"

5 years agoMerge "Add graphicsstats.proto owner"
John Reck [Fri, 2 Aug 2019 17:26:07 +0000 (17:26 +0000)]
Merge "Add graphicsstats.proto owner"

5 years agoMerge "Fix lint error getSystemService for EuiccManager"
Brad Ebinger [Thu, 1 Aug 2019 22:06:44 +0000 (22:06 +0000)]
Merge "Fix lint error getSystemService for EuiccManager"

5 years agoMerge "Fix the race between entitlement start/stop"
Mark Chien [Thu, 1 Aug 2019 10:38:46 +0000 (10:38 +0000)]
Merge "Fix the race between entitlement start/stop"

5 years agoFix the race between entitlement start/stop
markchien [Fri, 19 Jul 2019 09:28:04 +0000 (17:28 +0800)]
Fix the race between entitlement start/stop

For very quickly hotspot OFF/ON, there is race between tethering
start entitlement from Settings and stop entitlement from wifi's
intent broadcast. Entitlement would only be started when Settings
call #startTethering(). But there are two points that tethering
would stop entitlement. One is #stopTethering() from Settings.
Another one is wifi tell tethering that it is shuting down.

In this change, second point of stop entitlement is removed to avoid
this race problem. Entitlement may have chance that do not be stopped
(e.g. network reset). This is not great but the behavior is the same
as P.
TODO: Don't reply on caller to stop entitlement. Refactor the design
to call #stopProvisioningIfNeeded when IpServer leaving TETHERED state.
TODO: mWifiTetherRequested may also suffer this race condition.

Bug: 137034691
Test: -build, flash, boot
      -atest FrameworkNetTests
      -Enable hotspot with entitlement supported SIM,
       then changing the AP band.

Change-Id: I63f858356b4543b5bdda41d03e45adc944b86da3

5 years agoMerge "Fix the reference leak on RemoteCallbackList"
Dan Zhang [Thu, 1 Aug 2019 05:03:03 +0000 (05:03 +0000)]
Merge "Fix the reference leak on RemoteCallbackList"

5 years agoMerge changes from topic "ims_cc"
Treehugger Robot [Thu, 1 Aug 2019 04:35:50 +0000 (04:35 +0000)]
Merge changes from topic "ims_cc"

* changes:
  ims: API to update ims carreir configs
  CarrierConfig: get configs by prefix
  Add new carrier config for supporting WPS over IMS

5 years agoMerge changes I9350ec13,I809d9191,I235f727d,I1930f3ba
Josh Gao [Thu, 1 Aug 2019 04:02:46 +0000 (04:02 +0000)]
Merge changes I9350ec13,I809d9191,I235f727d,I1930f3ba

* changes:
  SharedMemory: use fdsan to protect our fd.
  Revert "Revert "SharedMemory: break Cleaner reference cycle.""
  Revert "SharedMemory: break Cleaner reference cycle." Bug: 138422309
  GraphicsStatService: fix double close.

5 years agoims: API to update ims carreir configs
Dheeraj Shetty [Fri, 24 May 2019 17:59:44 +0000 (10:59 -0700)]
ims: API to update ims carreir configs

Add a new API in IImsConfig to update carrier
configs for ims.

Bug: 125484786
Test: Build
Change-Id: Id4577b46df514f7948a1d7b1ca58c12abf93b744

5 years agoCarrierConfig: get configs by prefix
Dheeraj Shetty [Fri, 24 May 2019 01:22:05 +0000 (18:22 -0700)]
CarrierConfig: get configs by prefix

Get configs using the prefix of components like gps, wifi or ims.
Add a new ims class for configs related to ims stack.

Bug: 132286782
Test: Build

Change-Id: Ib20ac3b3c55156913284268439102fba7e96dad7

5 years agoAdd new carrier config for supporting WPS over IMS
andychou [Wed, 8 May 2019 15:24:08 +0000 (23:24 +0800)]
Add new carrier config for supporting WPS over IMS

Some carriers allow WPS over IMS but carrier not allow.
Add a carrier config and dial WPS call over IMS or CS per config value

Bug: 131917532
Test: Override Carrier Config and test WPS over IMS or CS
Change-Id: Idb698b12ba08086584e1883cc61e31f924ae42cb
Merged-In: Idb698b12ba08086584e1883cc61e31f924ae42cb

5 years agoSharedMemory: use fdsan to protect our fd.
Josh Gao [Fri, 26 Jul 2019 20:42:58 +0000 (13:42 -0700)]
SharedMemory: use fdsan to protect our fd.

Bug: http://b/138422309
Test: booted, saw the GraphicsStatsService fd misacquisition
Change-Id: I9350ec13e523e1bf86797a1231769d890f277008

5 years agoRevert "Revert "SharedMemory: break Cleaner reference cycle.""
Josh Gao [Wed, 31 Jul 2019 19:29:11 +0000 (12:29 -0700)]
Revert "Revert "SharedMemory: break Cleaner reference cycle.""

This commit was reverted in Q because it broke things, but we want it in
master.

This reverts commit c36d0765a25d4701980738dc3e2053f19eb3d6b8.

Change-Id: I809d9191eee4909d265d2864ebd523f262f6bb61
Test: treehugger

5 years agoRevert "SharedMemory: break Cleaner reference cycle."
Adam Seaton [Fri, 26 Jul 2019 17:13:18 +0000 (17:13 +0000)]
Revert "SharedMemory: break Cleaner reference cycle."
Bug: 138422309

This reverts commit 390d9e6a1806626eb521d55a36b1578d28714cc8.

Reason for revert: crashes documented in b/138422309

Change-Id: I235f727d0fe87c09f6f05dddcae7759bab64dfd8
Merged-In: I235f727d0fe87c09f6f05dddcae7759bab64dfd8
(cherry picked from commit b16411f83aee0847fec77d79fb4e98b2e3fa8828)

5 years agoMerge "[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag"
Treehugger Robot [Wed, 31 Jul 2019 22:03:46 +0000 (22:03 +0000)]
Merge "[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag"

5 years agoAdd graphicsstats.proto owner
John Reck [Wed, 31 Jul 2019 22:03:15 +0000 (15:03 -0700)]
Add graphicsstats.proto owner

Test: none
Change-Id: I761e9fdbd49991741d785712e6ba6c3578707be7

5 years agoMerge "BGDexopt: Have a single run for primary and secondary dexes"
Andreas Gampe [Wed, 31 Jul 2019 21:48:36 +0000 (21:48 +0000)]
Merge "BGDexopt: Have a single run for primary and secondary dexes"

5 years agoMerge "Remove product_is_iot."
Elliott Hughes [Wed, 31 Jul 2019 21:37:09 +0000 (21:37 +0000)]
Merge "Remove product_is_iot."

5 years agoRemove product_is_iot.
Elliott Hughes [Tue, 30 Jul 2019 15:46:10 +0000 (08:46 -0700)]
Remove product_is_iot.

Test: treehugger
Change-Id: I975f86999e4e40c06d6239fbc63e200042d37cc4
Merged-In: I975f86999e4e40c06d6239fbc63e200042d37cc4

5 years agoMerge "[view compiler] Add DexBuilder support for getting and setting instance fields"
Treehugger Robot [Wed, 31 Jul 2019 18:57:32 +0000 (18:57 +0000)]
Merge "[view compiler] Add DexBuilder support for getting and setting instance fields"

5 years agoBGDexopt: Have a single run for primary and secondary dexes
Andreas Gampe [Fri, 26 Jul 2019 20:31:43 +0000 (13:31 -0700)]
BGDexopt: Have a single run for primary and secondary dexes

Reintegrate both categories into one function. This allows
the completion of downgrading before optimizing.

Refactor slightly for code reuse.

Test: m
Change-Id: I3b18b23b333bcbf57328b6ba33a1b93e9d7db6cf

5 years ago[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag
Eric Holk [Wed, 31 Jul 2019 18:07:51 +0000 (11:07 -0700)]
[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag

Change-Id: I9f83b2a5d61e92dee9cded239626dcaa0ebb1993

5 years agoMerge "Add getSlotId API for ImsFeature and docs changes"
Brad Ebinger [Wed, 31 Jul 2019 17:59:53 +0000 (17:59 +0000)]
Merge "Add getSlotId API for ImsFeature and docs changes"

5 years agoGraphicsStatService: fix double close.
Josh Gao [Fri, 26 Jul 2019 20:47:11 +0000 (13:47 -0700)]
GraphicsStatService: fix double close.

MemoryFile closes its file descriptor by itself, or would have, if its
Cleaner didn't have a reference cycle. Dup its fd instead of acquiring
it directly.

Bug: http://b/138422309
Test: booted
Change-Id: I1930f3ba47f332c075177d1b34df2371b92d1a1c

5 years agoFix null pointer exception of calling NetworkInfo.mState.name()
Yintang Gu [Tue, 18 Jun 2019 06:24:32 +0000 (14:24 +0800)]
Fix null pointer exception of calling NetworkInfo.mState.name()

Remove setting nai.networkInfo as null temporarily to identify the new
created NetworkAgent, avoiding timing issue triggered by constructor
NetworkInfo(null).

Bug: 135569043
Test: Mannual test, network can work normally
Change-Id: I123ef9e97df2bccdd9528c0e894283c66d053890

5 years agoMerge "Fix job persistence & re-inflation"
Treehugger Robot [Tue, 30 Jul 2019 23:39:04 +0000 (23:39 +0000)]
Merge "Fix job persistence & re-inflation"

5 years agoFix job persistence & re-inflation
Christopher Tate [Fri, 5 Apr 2019 22:51:42 +0000 (15:51 -0700)]
Fix job persistence & re-inflation

We were persisting jobs' battery-not-low constraints but were not
properly restoring that constraint when the job was inflated at boot.
This could result in a runtime bootloop (!) if the job had no other
constraints, requiring a factory reset to restore the device to
usability.

We now:

* properly inflate the battery-not-low constraint;
* persist & inflate the storage-not-low constraint, which previously was
being stripped entirely and could result in a similar crash-at-boot;
* ignore the job rather than crash the system if one is inflated into
a non-viable state; and
* formally test previously-untested constraint persistence

Bug: 130012063
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/job/JobStoreTest.java
Test: atest CtsJobSchedulerTestCases
Test: JobStoreTest with forced throw in JobInfo.Builder#build()
Change-Id: Ia3ab1eb16aeaa85336409368b4340622cec19f4c
Merged-In: Ia3ab1eb16aeaa85336409368b4340622cec19f4c

5 years ago[view compiler] Add DexBuilder support for getting and setting instance fields
Eric Holk [Tue, 30 Jul 2019 21:47:06 +0000 (14:47 -0700)]
[view compiler] Add DexBuilder support for getting and setting instance fields

Bug: 111895153
Change-Id: I5fa2936501c79e30a66f3863b76229ec83433928

5 years agoMerge "Convert more of frameworks/base/packages to Android.bp"
Treehugger Robot [Tue, 30 Jul 2019 21:45:33 +0000 (21:45 +0000)]
Merge "Convert more of frameworks/base/packages to Android.bp"

5 years agoMerge "BGDexopt: Clean up ordering"
Andreas Gampe [Tue, 30 Jul 2019 19:45:24 +0000 (19:45 +0000)]
Merge "BGDexopt: Clean up ordering"

5 years agoMerge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available."
Treehugger Robot [Tue, 30 Jul 2019 17:56:26 +0000 (17:56 +0000)]
Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available."

5 years agoMerge "Add helpers to check whether the BluetoothCodecConfig instance is selectable"
Treehugger Robot [Tue, 30 Jul 2019 02:28:52 +0000 (02:28 +0000)]
Merge "Add helpers to check whether the BluetoothCodecConfig instance is selectable"

5 years agoConvert more of frameworks/base/packages to Android.bp
Colin Cross [Wed, 24 Jul 2019 22:53:15 +0000 (15:53 -0700)]
Convert more of frameworks/base/packages to Android.bp

See build/soong/README.md for more information.

Bug: 122332340
Test: m InputDevices MtpDocumentsProvider SimAppDialog
Change-Id: I851b819030a1da6091f5d6125a228bb01a99011b
Merged-In: I851b819030a1da6091f5d6125a228bb01a99011b

5 years agoAdd getSlotId API for ImsFeature and docs changes
Brad Ebinger [Tue, 23 Jul 2019 23:43:25 +0000 (16:43 -0700)]
Add getSlotId API for ImsFeature and docs changes

Test: Manual
Change-Id: Ie8fdf191b863105fad4751df7d7de61858b75f32

5 years agoMerge "Add APIs for ImsService RCS UCE implementation"
Brad Ebinger [Mon, 29 Jul 2019 20:10:38 +0000 (20:10 +0000)]
Merge "Add APIs for ImsService RCS UCE implementation"

5 years agoMerge "Change coverage dump to specify the output file instead of directory."
Oliver Nguyen [Mon, 29 Jul 2019 17:37:30 +0000 (17:37 +0000)]
Merge "Change coverage dump to specify the output file instead of directory."

5 years agoMerge "Add Key mapping to CEC_KEYCODE_SOUND_SELECT"
Amy Zhang [Mon, 29 Jul 2019 17:32:08 +0000 (17:32 +0000)]
Merge "Add Key mapping to CEC_KEYCODE_SOUND_SELECT"

5 years agoMerge "Read compat config in CompatConfig class."
Anna Trostanetski [Mon, 29 Jul 2019 12:57:36 +0000 (12:57 +0000)]
Merge "Read compat config in CompatConfig class."

5 years agoAdd Key mapping to CEC_KEYCODE_SOUND_SELECT
elvis.chien [Fri, 19 Jul 2019 03:17:40 +0000 (11:17 +0800)]
Add Key mapping to CEC_KEYCODE_SOUND_SELECT

Map Android KeyCode KEYCODE_MEDIA_AUDIO_TRACK, to CEC_KEYCODE_SOUND_SELECT.

[Buganizer]
b/136423086

Change-Id: I3d83da95bcfe2b606fed9088d1d0e0c7c5082ce1

5 years agoMerge changes I12b38fa5,Ia11195b1
Treehugger Robot [Sat, 27 Jul 2019 02:40:37 +0000 (02:40 +0000)]
Merge changes I12b38fa5,Ia11195b1

* changes:
  [viewcompiler] Add support for static field put to DexBuilder
  [viewcompiler] Add static field get instructions to DexBuilder

5 years agoGet native wakelock stats from SystemSuspend if /sys/class/wakeup not available.
Kalesh Singh [Fri, 26 Jul 2019 22:54:10 +0000 (15:54 -0700)]
Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available.

If /sys/class/wakeup is available, get both kernel and native wakelock
stats from SystemSuspend, else we get native wakelock stats from
SystemSuspend and fallback to /d/wakeup_sources for kernel wakelock
stats.

Bug: 128923994
Test: atest FrameworksCoreTests:KernelWakelockReaderTest
Test: Compare dumpsys suspend_control against
      dumpsys batterystats --checkin | grep kwl
      to verify BatteryStats is getting wakelock stats
      from SystemSuspend.

Change-Id: I08e56c984b903285bb965dd853dae4a63fdeb824

5 years agoBGDexopt: Clean up ordering
Andreas Gampe [Thu, 25 Jul 2019 21:49:53 +0000 (14:49 -0700)]
BGDexopt: Clean up ordering

Downgrade apps before optimizing.

Test: m
Change-Id: I6a361ff63158a7c1187d65c4f9520498d6740747

5 years agoMerge "SharedMemory: clear file descriptor when explicitly closed."
Josh Gao [Fri, 26 Jul 2019 21:43:53 +0000 (21:43 +0000)]
Merge "SharedMemory: clear file descriptor when explicitly closed."

5 years agoMerge "Expose RSSI as GSM RAT-specific Signal Strength"
Nathan Harold [Fri, 26 Jul 2019 18:37:34 +0000 (18:37 +0000)]
Merge "Expose RSSI as GSM RAT-specific Signal Strength"

5 years agoAdd APIs for ImsService RCS UCE implementation
Brad Ebinger [Sat, 1 Dec 2018 00:16:38 +0000 (16:16 -0800)]
Add APIs for ImsService RCS UCE implementation

Includes APIs for RCS User Capability Echange,
including presence and SIP OPTIONS.

Note: This CL only defines the API changes
needed for this, not the telephony implementation
to unblock vendor implementation and testing.

Test: Manual
Bug: 111305845
Change-Id: I91227a05cb7062f17aac78657e25e28fac2b4d5d

5 years ago[viewcompiler] Add support for static field put to DexBuilder
Eric Holk [Fri, 26 Jul 2019 16:37:46 +0000 (09:37 -0700)]
[viewcompiler] Add support for static field put to DexBuilder

Bug: 111895153
Change-Id: I12b38fa520790debec545d7d1f6b3522a65ce03b

5 years ago[viewcompiler] Add static field get instructions to DexBuilder
Eric Holk [Thu, 25 Jul 2019 22:14:01 +0000 (15:14 -0700)]
[viewcompiler] Add static field get instructions to DexBuilder

This allows us to generate code that can read static fields in a class. Once we
include several other field operations, we will be able to generate more
specialized inflation code in the view compiler.

Bug: 111895153
Change-Id: Ia11195b1cea6d5a3ddbc60d972922586a062c853

5 years agoRead compat config in CompatConfig class.
atrost [Wed, 24 Jul 2019 13:12:48 +0000 (14:12 +0100)]
Read compat config in CompatConfig class.

Use the auto generated parser, and test by feeding streams of XML.

Test: atest FrameworksServicesTests
Bug: 138222871
Change-Id: Id523d31e7b6d2def9371753ae34cba883cd62a54
Merged-In: Id523d31e7b6d2def9371753ae34cba883cd62a54

5 years agoMerge "Resolve NumberPicker display abnormal issue."
Robert Chou [Fri, 26 Jul 2019 02:51:57 +0000 (02:51 +0000)]
Merge "Resolve NumberPicker display abnormal issue."

5 years agoMerge "Remove the dependencies to ext and framework from the stubs build"
Treehugger Robot [Thu, 25 Jul 2019 23:38:08 +0000 (23:38 +0000)]
Merge "Remove the dependencies to ext and framework from the stubs build"

5 years agoMerge "Remove legacy-performance-test-hostdex"
Treehugger Robot [Thu, 25 Jul 2019 23:34:52 +0000 (23:34 +0000)]
Merge "Remove legacy-performance-test-hostdex"

5 years agoSharedMemory: clear file descriptor when explicitly closed.
Josh Gao [Thu, 25 Jul 2019 20:54:23 +0000 (13:54 -0700)]
SharedMemory: clear file descriptor when explicitly closed.

We run the Cleaner in close, but after the fix in commit 6ca916a6, this
no longer clears the value stored in the FileDescriptor, which means
that subsequent operations on an explicitly closed SharedMemory will
operate on a bogus fd number. Clearing the FileDescriptor value in close
is sufficient, because Cleaner.clean is idempotent, and the only other
case where it executes is when the FileDescriptor is phantom reachable,
which means no one can access it to get its integer value.

Bug: http://b/138392115
Bug: http://b/138323667
Test: treehugger
Change-Id: I8bdb4c745466532a0712976416184c53fcf0dbf6

5 years agoRemove legacy-performance-test-hostdex
Colin Cross [Thu, 25 Jul 2019 17:42:06 +0000 (10:42 -0700)]
Remove legacy-performance-test-hostdex

The only user was removed.

Bug: 122332340
Test: m checkbuild
Change-Id: Ia937c04f171d6dfeff88a0c70a38cc87c900e0cc

5 years agoMerge changes from topic "dumpsys-compatinfo"
Andrei-Valentin Onea [Thu, 25 Jul 2019 17:24:54 +0000 (17:24 +0000)]
Merge changes from topic "dumpsys-compatinfo"

* changes:
  Dump PlatformCompat overrides to dumpsys
  Make PlatformCompat a Binder class

5 years agoMerge "Add a platform compat config schema API."
Anna Trostanetski [Thu, 25 Jul 2019 15:24:13 +0000 (15:24 +0000)]
Merge "Add a platform compat config schema API."

5 years agoMerge "Remove preload2 as it is not used"
Treehugger Robot [Thu, 25 Jul 2019 14:41:45 +0000 (14:41 +0000)]
Merge "Remove preload2 as it is not used"

5 years agoMerge "Add an empty boot profile."
Nicolas Geoffray [Thu, 25 Jul 2019 13:46:05 +0000 (13:46 +0000)]
Merge "Add an empty boot profile."

5 years agoDump PlatformCompat overrides to dumpsys
Andrei Onea [Wed, 10 Jul 2019 15:43:09 +0000 (16:43 +0100)]
Dump PlatformCompat overrides to dumpsys

Dump info related to compat flags.

Test: adb shell am compat enable 42 foo.bar; \
dumpsys platform_compat
Bug: 137183175
Change-Id: Ic429731a3364dab5902caeb12f48fecf2e49bb65
Merged-In: Ic429731a3364dab5902caeb12f48fecf2e49bb65

5 years agoMake PlatformCompat a Binder class
Andrei Onea [Wed, 17 Jul 2019 18:03:10 +0000 (19:03 +0100)]
Make PlatformCompat a Binder class

This allows PlatformCompat to be called from anywhere in the platform.
In follow-up CLs, we'll define permissions for each method and/or
filtering rules to prevent abuse from apps.

Test: m
Bug: 137769727
Change-Id: I19e5fbfefcf59e0b53b197ea8e9e3cb78439b4c4
Merged-In: I19e5fbfefcf59e0b53b197ea8e9e3cb78439b4c4

5 years agoAdd a platform compat config schema API.
atrost [Tue, 23 Jul 2019 17:04:47 +0000 (18:04 +0100)]
Add a platform compat config schema API.

As decribed in go/xsdc-for-partners.
This defines the schema of the XML file generated by @ChangeId
annotation processor.
The schema requires unique ids.

Test: Used https://www.freeformatter.com/xml-validator-xsd.html to
      validate an example config.
Bug: 138222363

Change-Id: Iaf37e049ddd483c4fd7d512475614476ac6606a5

5 years agoMerge "Add platform_apis in Android.bp"
Treehugger Robot [Thu, 25 Jul 2019 08:29:00 +0000 (08:29 +0000)]
Merge "Add platform_apis in Android.bp"

5 years agoRemove preload2 as it is not used
Paul Duffin [Tue, 23 Jul 2019 10:11:52 +0000 (11:11 +0100)]
Remove preload2 as it is not used

Bug: 137634816
Test: m checkbuild
Change-Id: Ib182a53bc4b7509d725a8bc24a691b1cec90f726

5 years agoAdd an empty boot profile.
Nicolas Geoffray [Thu, 25 Jul 2019 08:13:09 +0000 (09:13 +0100)]
Add an empty boot profile.

Bug: 119800099
Test: m
Change-Id: Ia9c807f2cc3beaee125bd2c9d6a655af61bdf782

5 years agoMerge "Get wakelock stats from SystemSuspend"
Treehugger Robot [Thu, 25 Jul 2019 07:02:25 +0000 (07:02 +0000)]
Merge "Get wakelock stats from SystemSuspend"

5 years agoMerge "SharedMemory: break Cleaner reference cycle."
Treehugger Robot [Thu, 25 Jul 2019 04:40:22 +0000 (04:40 +0000)]
Merge "SharedMemory: break Cleaner reference cycle."

5 years agoMerge "Add ktlint to preupload hooks"
Remi NGUYEN VAN [Thu, 25 Jul 2019 02:49:00 +0000 (02:49 +0000)]
Merge "Add ktlint to preupload hooks"

5 years agoMerge "Add tmfang as a owner of settings_enums.proto"
Treehugger Robot [Thu, 25 Jul 2019 01:54:25 +0000 (01:54 +0000)]
Merge "Add tmfang as a owner of settings_enums.proto"

5 years agoSharedMemory: break Cleaner reference cycle.
Josh Gao [Wed, 24 Jul 2019 22:40:57 +0000 (15:40 -0700)]
SharedMemory: break Cleaner reference cycle.

Previously, the Cleaner we create to close the ashmem file descriptor
used a thunk that held a strong reference to the FileDescriptor we
wanted to clean up, which prevented the Cleaner from ever running.

Break the cycle by storing the integer value of the file descriptor
instead.

Bug: http://b/138323667
Test: treehugger
Change-Id: I613a7d035892032f9567d59acb04672957c96011

5 years agoAdd tmfang as a owner of settings_enums.proto
tmfang [Wed, 24 Jul 2019 22:33:32 +0000 (06:33 +0800)]
Add tmfang as a owner of settings_enums.proto

Test: Rebuild
Change-Id: I070bdeb57291e6b983c1a7219afbcb091812178c

5 years agoMerge "Define intent for receive vendor specific response and define a function to...
Deqiang Chen [Wed, 24 Jul 2019 21:04:55 +0000 (21:04 +0000)]
Merge "Define intent for receive vendor specific response and define a function to send vendor AT command from Hfp client"

5 years agoMerge "Call out IllegalArgumentException in docs for ImsMmTelManager"
Brad Ebinger [Wed, 24 Jul 2019 20:54:08 +0000 (20:54 +0000)]
Merge "Call out IllegalArgumentException in docs for ImsMmTelManager"

5 years agoMerge "Categorize [anon:stack_and_tls:{}] as stack memory"
Ryan Prichard [Wed, 24 Jul 2019 20:46:32 +0000 (20:46 +0000)]
Merge "Categorize [anon:stack_and_tls:{}] as stack memory"

5 years agoMerge "EasterEgg: Remove unnecessary safe call on a non-null"
Aurimas Liutikas [Wed, 24 Jul 2019 20:22:23 +0000 (20:22 +0000)]
Merge "EasterEgg: Remove unnecessary safe call on a non-null"

5 years agoEasterEgg: Remove unnecessary safe call on a non-null
Luca Stefani [Wed, 24 Jul 2019 15:18:19 +0000 (17:18 +0200)]
EasterEgg: Remove unnecessary safe call on a non-null

Change-Id: I352c235ca68ba46d026ca92ba5ce88d0d0b564ae

5 years agoMerge "Create feature flags for OMAPI readers supportiveness"
Treehugger Robot [Wed, 24 Jul 2019 13:33:45 +0000 (13:33 +0000)]
Merge "Create feature flags for OMAPI readers supportiveness"

5 years agoResolve NumberPicker display abnormal issue.
Mingyan Liu [Wed, 24 Jul 2019 07:42:19 +0000 (15:42 +0800)]
Resolve NumberPicker display abnormal issue.

Bugid: https://partnerissuetracker.corp.google.com/u/0/issues/138241751
Change-Id: Id5971e59d30506b0be2c5347a1e2dd4bb8371eaa

5 years agoAdd ktlint to preupload hooks
Remi NGUYEN VAN [Wed, 24 Jul 2019 06:48:44 +0000 (15:48 +0900)]
Add ktlint to preupload hooks

The kotlin linter is particularly useful for tests written in Kotlin in
frameworks/base.

This is already merged in internal master.

Test: Tried uploading change with/without kotlin style problems.
Merged-In: Ie8659765b674ac7b2d82ed3d343f387195c07d83
Change-Id: I420366c49d071e022b8988c3d6293dbc8e9a283a

5 years agoGet wakelock stats from SystemSuspend
Kalesh Singh [Thu, 18 Jul 2019 21:09:44 +0000 (14:09 -0700)]
Get wakelock stats from SystemSuspend

Read wakelock stats from SystemSuspend if possible else fallback to
/d/wakeup_source, /proc/wakelocks.

Bug: 128923994
Test: KernelWakelockReaderTest

Change-Id: I859092d53d7697a4940f9369480e203181f0c370

5 years agoAdd helpers to check whether the BluetoothCodecConfig instance is selectable
Cheney Ni [Thu, 18 Jul 2019 13:45:10 +0000 (21:45 +0800)]
Add helpers to check whether the BluetoothCodecConfig instance is selectable

There will be a helper in the BluetoothCodecStatus to check whether the
codec config is matched the selectable array. It uses 3 smaller helpers
to confirm the codec config has none (wildcard matching), or one and only
one value for the audio feeding parameters.

Besides, this CL also adds a helper to compare whether two codec configs
are similar or not, and uses NONE values as wildcard.

Bug: 131147224
Bug: 133719424
Test: atest -t BluetoothInstrumentationTests:com.android.bluetooth.a2dp
Change-Id: I7d8f1a16b8358c440841801d95471b2d010739ec

5 years agoCreate feature flags for OMAPI readers supportiveness
Jack Yu [Fri, 19 Jul 2019 05:46:42 +0000 (13:46 +0800)]
Create feature flags for OMAPI readers supportiveness

Bug: 131062577
Test: CTS OMAPI
Change-Id: I20c1159489ea0bd5cc9fb651914d6bfd2a6b25ca

5 years agoMerge "Do not turn on Bluetooth when booting into Safe Mode"
Treehugger Robot [Tue, 23 Jul 2019 06:34:17 +0000 (06:34 +0000)]
Merge "Do not turn on Bluetooth when booting into Safe Mode"

5 years agoMerge "Fix bootanimation stack overflow"
Treehugger Robot [Tue, 23 Jul 2019 02:13:28 +0000 (02:13 +0000)]
Merge "Fix bootanimation stack overflow"

5 years agoCategorize [anon:stack_and_tls:{}] as stack memory
Ryan Prichard [Tue, 18 Jun 2019 00:58:46 +0000 (17:58 -0700)]
Categorize [anon:stack_and_tls:{}] as stack memory

Bug: http://b/134795155
Test: run "dumpsys meminfo" and verify that this CL increases the reported
  stack memory usage
Change-Id: Id929671d6c52ba92b4ea11c83297f3af3ced89e4
Merged-In: Id929671d6c52ba92b4ea11c83297f3af3ced89e4

5 years agoMerge "Always apply compat changes to system apps."
Mathew Inwood [Mon, 22 Jul 2019 13:27:28 +0000 (13:27 +0000)]
Merge "Always apply compat changes to system apps."

5 years agoMerge "Add adb command for overriding platform compat config"
Andrei-Valentin Onea [Mon, 22 Jul 2019 12:44:18 +0000 (12:44 +0000)]
Merge "Add  adb command for overriding platform compat config"

5 years agoAlways apply compat changes to system apps.
Mathew Inwood [Mon, 22 Jul 2019 10:38:16 +0000 (11:38 +0100)]
Always apply compat changes to system apps.

System apps should always get the "latest" behaviour from the platform
since they are updated with the platform.

Bug: 135010838
Test: atest CompatConfigTest
Change-Id: Ieacac20dc0eb02e4687dfe0b7b4800b3fce3db83

5 years agoMerge "Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording...
Frank Li [Sun, 21 Jul 2019 05:47:53 +0000 (05:47 +0000)]
Merge "Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate."

5 years agoAdd one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample...
lifr [Sat, 20 Jul 2019 07:28:28 +0000 (15:28 +0800)]
Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.

The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.

Bug: 133111380
Test: ./out/host/linux-x86/bin/statsd_testdrive 116
Change-Id: I85acc8cb8ec4c38e95f7e97b0dd8da1294d9ceb3

5 years agoMerge "Compatibility API implementation for app processes."
Treehugger Robot [Fri, 19 Jul 2019 13:45:36 +0000 (13:45 +0000)]
Merge "Compatibility API implementation for app processes."

5 years agoFix lint error getSystemService for EuiccManager
hyunhae.lee [Fri, 19 Jul 2019 13:08:41 +0000 (22:08 +0900)]
Fix lint error getSystemService for EuiccManager

EuiccManager was open to public API.
However @ServiceName does not have Context.EUICC_SERVICE.
It makes lint error when calling getSystemService.

Test: Build
Change-Id: I2e28725b1ad4c07ada4e3181fa9a8a41789680f6

5 years agoMerge "Remove voip-common to the dependency list of *-api-stubs-docs"
Treehugger Robot [Fri, 19 Jul 2019 11:28:16 +0000 (11:28 +0000)]
Merge "Remove voip-common to the dependency list of *-api-stubs-docs"

5 years agoMerge "Add @NonNull annotation to CONTENT_URI"
Treehugger Robot [Fri, 19 Jul 2019 08:54:31 +0000 (08:54 +0000)]
Merge "Add @NonNull annotation to CONTENT_URI"

5 years agoMerge "Fix sim pin on DSDS"
Jordan Liu [Thu, 18 Jul 2019 19:28:03 +0000 (19:28 +0000)]
Merge "Fix sim pin on DSDS"

5 years agoChange coverage dump to specify the output file instead of directory.
Oliver Nguyen [Tue, 16 Jul 2019 21:09:38 +0000 (14:09 -0700)]
Change coverage dump to specify the output file instead of directory.

Bug: 137857876
Test: manual
Change-Id: I2d835856d7a1b6b1ded561eca923f455b39317e4

5 years agoCompatibility API implementation for app processes.
Mathew Inwood [Mon, 24 Jun 2019 11:07:22 +0000 (12:07 +0100)]
Compatibility API implementation for app processes.

Pass the set of disabled changes from the system server into the app in the
bindApplication() call. Use this to instantiate an implementation of
Compatibility.Callbacks() to implement the API.

Test: Manual.
Bug: 135010838
Merged-In: I2fcf25264c62acc801f9e62967072cd04e4641e7
Change-Id: I2fcf25264c62acc801f9e62967072cd04e4641e7

5 years agoDo not turn on Bluetooth when booting into Safe Mode
Zongheng Wang [Mon, 8 Jul 2019 22:22:04 +0000 (15:22 -0700)]
Do not turn on Bluetooth when booting into Safe Mode

Bug: 122691743
Test: Boot into Safe Mode and Bluetooth is not turned on.
Change-Id: I653b2f58c462631e9c4cc868c4ec1932ff907999

5 years agoMerge "Renderscript: rename .rs extension to .rscript"
Jeffrey Vander Stoep [Thu, 18 Jul 2019 02:02:00 +0000 (02:02 +0000)]
Merge "Renderscript: rename .rs extension to .rscript"