OSDN Git Service
John Reck [Mon, 23 Sep 2019 20:00:14 +0000 (20:00 +0000)]
Merge "TextureVuew rebind GL texture, if AHB content has changed"
Mathieu Chartier [Mon, 23 Sep 2019 16:34:38 +0000 (16:34 +0000)]
Merge "Add test for boot image profile collection"
Steven Moreland [Mon, 23 Sep 2019 16:23:06 +0000 (16:23 +0000)]
Merge "Host users of libutils trace use libcutils."
Jean-Michel Trivi [Mon, 23 Sep 2019 15:59:40 +0000 (15:59 +0000)]
Merge "AudioService: add TEST_MAPPING for pre-submit tests"
Ömer Nebil Yaveroğlu [Mon, 23 Sep 2019 11:24:43 +0000 (11:24 +0000)]
Merge " Create integrity directory and OWNERS"
Jean-Michel Trivi [Wed, 18 Sep 2019 22:58:44 +0000 (15:58 -0700)]
AudioService: add TEST_MAPPING for pre-submit tests
Run AudioManager and AudioFocus CTS tests whenever a class
in audio service is changed.
Bug:
139315190
Test: verify this change caused those tests to be run during presubmit
Change-Id: I17a49fad6856ae28ef1951d64a43b04f44be4079
Merged-In: I17a49fad6856ae28ef1951d64a43b04f44be4079
Treehugger Robot [Sat, 21 Sep 2019 08:27:35 +0000 (08:27 +0000)]
Merge "Deprecate redundant IMS APIs in TelephonyManager."
Mathieu Chartier [Thu, 29 Aug 2019 22:26:58 +0000 (15:26 -0700)]
Add test for boot image profile collection
Test that the expected properties are set.
Test that saving the system server profile contains both the boot image
profile and system server profile.
The test requires root to run.
Bug:
139883463
Test: atest BootImageProfileTest
(cherry picked from commit
f7849d916ae3d81bf73911fedb5fe38fff33f2af)
Change-Id: Id7fa4ecc507864c2855da276025be076e5768df1
Merged-In: I6bb39337ba07be58b7dc2b314a8ee92154256f17
Stan Iliev [Thu, 1 Aug 2019 18:41:52 +0000 (14:41 -0400)]
TextureVuew rebind GL texture, if AHB content has changed
Bug:
138674291
Test: Ran apps with TextureView and CTS
Change-Id: Ieecf7daf160761de719356644ddaeda8f9c068e1
Steven Moreland [Wed, 18 Sep 2019 19:58:11 +0000 (12:58 -0700)]
Host users of libutils trace use libcutils.
Reducing device/host differences. This is now required since libutils
Trace.h always calls the libcutils functions, instead of before where
it only called these functions on device.
Bug:
124524556
Test: build & boot
Change-Id: Ic096ed7caf8ca59292b3427a16c4e2545d12dfd9
Treehugger Robot [Fri, 20 Sep 2019 09:58:45 +0000 (09:58 +0000)]
Merge "aapt2: disable leak detection"
Treehugger Robot [Fri, 20 Sep 2019 05:53:03 +0000 (05:53 +0000)]
Merge "Document that SystemProperties.set() can throw RuntimeException"
Treehugger Robot [Fri, 20 Sep 2019 01:07:07 +0000 (01:07 +0000)]
Merge "WiredAccessoryManager: fix connected state logic for Extcon"
Brad Ebinger [Thu, 19 Sep 2019 23:31:07 +0000 (23:31 +0000)]
Merge "Allow ImsService to return network error codes"
Brad Ebinger [Tue, 27 Aug 2019 23:49:26 +0000 (16:49 -0700)]
Allow ImsService to return network error codes
Adds new API for SMS over IMS that allows the ImsService
to pass 3GPP TS 24.011 error codes from the network for
better debugging/metrics collection.
Test: manual
Bug:
138239529
Merged-In: I5d1f41b90595238011eb0d1dc0ae0415157bb469
Change-Id: I5d1f41b90595238011eb0d1dc0ae0415157bb469
Treehugger Robot [Thu, 19 Sep 2019 20:22:35 +0000 (20:22 +0000)]
Merge "Add jji@google.com to am/OWNERS file."
Steven Moreland [Thu, 19 Sep 2019 18:08:47 +0000 (11:08 -0700)]
aapt2: disable leak detection
When building with SANATIZE_HOST=address and ASAN_OPTIONS="" in order to
test that leaks are removed from AIDL, was hitting leaks here.
Explicitly setting ASAN_OPTIONS here so that we can detect leaks in
other host tools.
Bug:
141312058
Test: AIDL's runtests_asan.sh
Change-Id: Ibc599ab75bbf63eab1c7747d17952390a7967e87
Tom Cherry [Thu, 19 Sep 2019 15:28:27 +0000 (08:28 -0700)]
Document that SystemProperties.set() can throw RuntimeException
Bug:
140148206
Test: n/a
Change-Id: I32df2ed4979edcc0d9abc46830ebd3defc431c57
Treehugger Robot [Thu, 19 Sep 2019 13:42:49 +0000 (13:42 +0000)]
Merge "Exposing flickerlib classes and layer tracing to sysui"
Treehugger Robot [Thu, 19 Sep 2019 13:24:46 +0000 (13:24 +0000)]
Merge "Use filter_packages to unbunden metalava"
Treehugger Robot [Thu, 19 Sep 2019 00:26:31 +0000 (00:26 +0000)]
Merge "Mirror fs-verity ownership UID to Java"
Hui Yu [Wed, 18 Sep 2019 21:57:59 +0000 (14:57 -0700)]
Add jji@google.com to am/OWNERS file.
Bug: NA
Test: NA
Change-Id: I5c5f0d1e75a66e772c95304a3dbd936a471e9a17
Victor Hsieh [Wed, 18 Sep 2019 21:33:54 +0000 (14:33 -0700)]
Mirror fs-verity ownership UID to Java
This has been done in system/core, so mirroring for later use.
https://android-review.googlesource.com/c/platform/system/core/+/
1115493
Test: compile
Bug:
112038744
Change-Id: I2d7f5d38caae0b6ada1f208b3d71d937d527716e
Treehugger Robot [Wed, 18 Sep 2019 18:37:38 +0000 (18:37 +0000)]
Merge "Bugreport progress notification should use the bug icon."
Brad Ebinger [Wed, 18 Sep 2019 17:56:29 +0000 (17:56 +0000)]
Merge "Expose ConnectionService Handler to remove flaky tests"
Treehugger Robot [Wed, 18 Sep 2019 17:11:28 +0000 (17:11 +0000)]
Merge "Use UnlockMethodCache#canSkipBouncer in user switcher"
Song Pan [Wed, 18 Sep 2019 09:38:48 +0000 (10:38 +0100)]
Create integrity directory and OWNERS
Integrity component will live in System Server, which can be called by
PackageManagerService to check the integrity of an install. This commit
sets up the directory and OWNERS access.
Test: N/A
Change-Id: I5610ea575c455c3301ace4d816033d88eb349b12
Anna Trostanetski [Wed, 18 Sep 2019 12:25:47 +0000 (12:25 +0000)]
Merge "Implement stats logging for Compatibility API."
Treehugger Robot [Wed, 18 Sep 2019 02:00:54 +0000 (02:00 +0000)]
Merge "Add isApplicationOnUicc API"
Treehugger Robot [Tue, 17 Sep 2019 22:28:35 +0000 (22:28 +0000)]
Merge "Add new onSmsStatusReportReceived() without message reference"
Steven Moreland [Tue, 17 Sep 2019 21:49:31 +0000 (21:49 +0000)]
Merge "HwBinder: don't rely on kernel headers."
Eric Laurent [Fri, 21 Jun 2019 18:39:28 +0000 (11:39 -0700)]
WiredAccessoryManager: fix connected state logic for Extcon
Bug:
134120683
Test: make
Change-Id: I618031968a4131ee153994deca55d192cbc598b3
Merged-In: I618031968a4131ee153994deca55d192cbc598b3
Brad Ebinger [Thu, 12 Sep 2019 01:06:51 +0000 (18:06 -0700)]
Expose ConnectionService Handler to remove flaky tests
Test: atest TelecomUnitTests
Change-Id: Ibb80b5739083ad9f85ee06f4d9f0017f4cb605bd
Amit Mahajan [Tue, 17 Sep 2019 17:18:04 +0000 (17:18 +0000)]
Merge "Fix descriptions for default SIM in global preferences"
Christopher Ferris [Tue, 17 Sep 2019 16:33:25 +0000 (16:33 +0000)]
Merge "Use bionic platform headers."
Taesu Lee [Tue, 17 Sep 2019 04:34:46 +0000 (13:34 +0900)]
Fix descriptions for default SIM in global preferences
Test: Not required.
Change-Id: I7f32eb495b53d13aba50b07d86e63f0549e9e6bb
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Yifan Hong [Mon, 16 Sep 2019 23:58:51 +0000 (23:58 +0000)]
Merge "VintfObject: Fix getHalNamesAndVersions doc"
Treehugger Robot [Mon, 16 Sep 2019 21:32:43 +0000 (21:32 +0000)]
Merge "Ignore physics animation tests that have suddenly become flaky."
Jordan Liu [Mon, 16 Sep 2019 21:28:03 +0000 (21:28 +0000)]
Merge "Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL"
Jean-Michel Trivi [Mon, 16 Sep 2019 21:04:08 +0000 (21:04 +0000)]
Merge "AudioService: fix missing CEC message on unmute after vol down"
Joshua Tsuji [Thu, 12 Sep 2019 19:16:40 +0000 (15:16 -0400)]
Ignore physics animation tests that have suddenly become flaky.
Test: atest SystemUITests
Change-Id: Ia15f767fdb251338a7e7b15be7836b6928e48ba5
Merged-In: Ia15f767fdb251338a7e7b15be7836b6928e48ba5
(cherry picked from commit
2b991d91c6d6a2341a06be329962d2f5a8f3ee28)
Christopher Ferris [Thu, 12 Sep 2019 02:08:52 +0000 (19:08 -0700)]
Use bionic platform headers.
Bug:
130763340
Test: Builds.
Change-Id: Ieed72d4e15c0ce0dfc3a4f3383ea6563905bc236
Merged-In: Ieed72d4e15c0ce0dfc3a4f3383ea6563905bc236
(cherry picked from commit
8269f3a3770d83b139cc3b3571d72eb30f62191f)
Winson Chung [Fri, 30 Aug 2019 23:49:13 +0000 (16:49 -0700)]
Exposing flickerlib classes and layer tracing to sysui
- Allow recents component to enable/disable layer tracing
- Expose flickerlib classes for use with sysui/launcher tests
- Allow trace files to be moved to a path that the client can read
- Ensure layers are flattened with depth traversal to encode ordering
Bug:
140244969
Test: atest FlickerTests
Change-Id: I7af5699ff5b8a4bc62c1a8105c67b31bc45a2236
Merged-In: Ia0934ec7c2b9484fa6c85f5aa8d9b2e5e6f7dc0f
atrost [Wed, 28 Aug 2019 14:40:37 +0000 (15:40 +0100)]
Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug:
136794938
Bug:
138378110
Test: statsd_testdrive 228
Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Taesu Lee [Fri, 30 Aug 2019 05:44:06 +0000 (14:44 +0900)]
Add new onSmsStatusReportReceived() without message reference
IMS providers must generate unique token and don't need to parse the PDU
to get the message reference for new onSmsStatusReportReceived() API.
The platform will extract the message reference from the PDU and return
it to the IMS providers via acknowledgeSmsReport(). And @Deprecated tag
is added on existing onSmsStatusReportReceived() API.
This CL includes some fixing doc bug and description for APIs also.
Test: atest FrameworksTelephonyTests:ImsSmsDispatcherTest
Change-Id: Ib788e291f2e70c3e062319e17e2c9efe33f31164
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Jiyong Park [Sun, 15 Sep 2019 11:19:02 +0000 (20:19 +0900)]
Use filter_packages to unbunden metalava
This change fixes a problem that entire framework source files are given
to metalava even when many of the source files are not for public. Using
the new property filter_packages, only source files that belongs to the
public packages are given to metalava.
This CL also changes the name of the filegroup 'framework-srcs' to
'framework-non-updatable-sources' to better describe its contents. In
addition, a build-time only library 'framework-all' is introduced. This
library produces a header jar for all framework sources for both
non-updatable and updatable parts. It is put to the classpath when
invoking metalava to give information on the hidden classes that were
filtered-out.
Bug:
140764681
Test: m
Change-Id: I6e16679109ac07820e35037754d4327442c014f2
Andy Hung [Fri, 13 Sep 2019 21:18:56 +0000 (21:18 +0000)]
Merge "SoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END"
Shuo Qian [Fri, 13 Sep 2019 19:50:16 +0000 (19:50 +0000)]
Merge "Listeners of active emergency numbers"
Treehugger Robot [Fri, 13 Sep 2019 18:57:50 +0000 (18:57 +0000)]
Merge "WindowOrientationListener: Check if proposed rotation is in range"
Jean-Michel Trivi [Wed, 11 Sep 2019 17:34:03 +0000 (10:34 -0700)]
AudioService: fix missing CEC message on unmute after vol down
Group in one method sending volume / mute updates to HDMI CEC
when applicable. Use this method, maybeSendSystemAudioStatusCommand,
to avoid code duplication.
Add missing synchronization in onUnmuteStream for stream mute check.
When STREAM_MUSIC is unmuted, also call
maybeSendSystemAudioStatusCommand for a mute adjust, to ensure
other CEC devices' UI is in sync with the internal state.
Bug:
136977965
Test: with ATV device in system audio mode, mute with remote, then \
press vol down on TV remote, verify TV display matches ATV UI \
with current volume.
Change-Id: I279a97871ba98e67f282bf148969ba41ed3f6062
Andy Hung [Tue, 10 Sep 2019 21:49:46 +0000 (14:49 -0700)]
SoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END
Test: SoundPoolApplication, SoundPoolOggTest, Games
Bug:
139787914
Bug:
139788416
Bug:
140579743
Bug:
140779732
Merged-In: I83b9b1d61b65dcc4a73d676e1f8be1e022c70302
Change-Id: I83b9b1d61b65dcc4a73d676e1f8be1e022c70302
(cherry picked from commit
a527524356a9a6bc9597e4d06cee5c02cf936a68)
Treehugger Robot [Fri, 13 Sep 2019 17:14:40 +0000 (17:14 +0000)]
Merge "Fix QuotaController constants."
Tao Bao [Fri, 13 Sep 2019 17:04:12 +0000 (17:04 +0000)]
Merge "Add nullability anotations"
Treehugger Robot [Fri, 13 Sep 2019 16:58:19 +0000 (16:58 +0000)]
Merge "Honor HDMI_CONTROL_ENABLED setting in AudioService"
Tobias Thierer [Fri, 13 Sep 2019 16:56:06 +0000 (16:56 +0000)]
Merge "Check FIPS_mode() rather than explicitly calling BORINGSSL_self_test."
Shuo Qian [Wed, 4 Sep 2019 23:21:10 +0000 (16:21 -0700)]
Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
active emergency number, placed by calls or texts.
2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.
Bug:
135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
Merged-In: I6e6bce6d4b97d492ca20302002911f9daa20767e
(cherry picked from commit
7a1eb6d56b3fb37c746664887b6f754e8d09d715)
Dan Sandler [Fri, 13 Sep 2019 02:27:09 +0000 (22:27 -0400)]
Bugreport progress notification should use the bug icon.
(Don't worry, stat_sys_adb isn't going away, but it will
only be used by the ADB notification now.)
Bug:
138661761
Test: initiate bugreport from globalactions
Change-Id: I238659d50f70bfbc047133d89afb76f78ec841f9
Kweku Adams [Fri, 13 Sep 2019 01:39:24 +0000 (18:39 -0700)]
Fix QuotaController constants.
1. QuotaController wasn't using the updated constants on system start.
It would only use the updated constants if they were changed after
system start.
2. Updating ACTIVE limits to more workable numbers.
Bug:
137166468
Test: atest com.android.server.job.controllers.QuotaControllerTest
Change-Id: I3e2848446b20f7258fac2d96566c96aea5715949
Madhava Srinivasan [Mon, 26 Aug 2019 20:15:31 +0000 (22:15 +0200)]
Honor HDMI_CONTROL_ENABLED setting in AudioService
This change updates how AudioService is updated of changes to Hdmi Cec
status (enable/disable) and availablity.
Bug:
138956107
Bug:
138373017
Test: Android TV STB: make; flashall;Volume -/+; HDMI control enable/disable.
Change-Id: Iaf83a45206be076858e13d113ba772ed5c59ef60
Merged-In: Iaf83a45206be076858e13d113ba772ed5c59ef60
Mathieu Chartier [Thu, 12 Sep 2019 18:20:14 +0000 (18:20 +0000)]
Merge "Remove android.permission.PermissionManager from blacklist"
Mathieu Chartier [Thu, 12 Sep 2019 16:19:07 +0000 (09:19 -0700)]
Remove android.permission.PermissionManager from blacklist
This is getting pulled in from somewhere, removing to fix
PreloadCheck test.
Bug:
140912480
Test: atest PreloadCheck
Change-Id: I8eea07930732865cc72fea0e352a1704d1c26118
Kyeongkab.Nam [Thu, 12 Sep 2019 02:33:39 +0000 (11:33 +0900)]
Add nullability anotations
Add missing nullability for applyPayload.
Test: manual
Change-Id: Iafce9091767bd7a31937b0be329ede6639239d73
Christian Wailes [Wed, 11 Sep 2019 18:23:50 +0000 (18:23 +0000)]
Merge "Revert "Revert "Remove a misleading "flush" function."""
Yifan Hong [Wed, 11 Sep 2019 02:59:24 +0000 (19:59 -0700)]
VintfObject: Fix getHalNamesAndVersions doc
Test: CTS device info collect
Bug:
140832836
Change-Id: Iddc3c36d15370baa661e485b76c490a5d2b7815c
Colin Cross [Wed, 11 Sep 2019 18:00:16 +0000 (18:00 +0000)]
Merge changes from topic "protobuf-3.9.1"
* changes:
Convert statsd_test and statsd_benchmark to proto lite
Adapt to google::protobuf::uint64 type change
Neil Fuller [Wed, 11 Sep 2019 10:58:38 +0000 (10:58 +0000)]
Merge "Track changes to CountryTimeZones API"
Treehugger Robot [Wed, 11 Sep 2019 09:31:23 +0000 (09:31 +0000)]
Merge "Add uhid group to system_server"
Sama Lin [Wed, 11 Sep 2019 07:06:26 +0000 (07:06 +0000)]
Merge "Swisscom VVM free SMS shortcodes CH"
Treehugger Robot [Tue, 10 Sep 2019 23:36:54 +0000 (23:36 +0000)]
Merge "Remove libhwbinder/libhidltransport deps"
Treehugger Robot [Tue, 10 Sep 2019 20:49:49 +0000 (20:49 +0000)]
Merge "FocusRequester: refactor handleFocusLoss"
Jean-Michel Trivi [Mon, 5 Aug 2019 16:24:30 +0000 (09:24 -0700)]
FocusRequester: refactor handleFocusLoss
Break out the checks to see if a focus loss is handled by the
framework in a separate method, and reorder the if statements
for code clarity.
Annotate PlayerFocusEnforcer methods for nullability, add
javadoc
Test: atest AudioFocusTest
Change-Id: I9aaab804c78a2e2627ddbd7b9bd41fdec47d2b57
Merged-In: I9aaab804c78a2e2627ddbd7b9bd41fdec47d2b57
Treehugger Robot [Tue, 10 Sep 2019 18:48:31 +0000 (18:48 +0000)]
Merge "Re-enable testAppZygoteServices in pre-submit."
Treehugger Robot [Tue, 10 Sep 2019 18:48:31 +0000 (18:48 +0000)]
Merge "Reconcile Zygote process name code with Q release."
Treehugger Robot [Tue, 10 Sep 2019 17:39:16 +0000 (17:39 +0000)]
Merge changes If2b3b414,I1039748d,Ib3cd38f5
* changes:
AudioService: fix disconnect/connect of A2DP device
audioservice: re send BT_SCO parameter to HAL when audioserver restarts
audioservice: fix hasMediaDynamicPolicy() for loopback and render policies
Treehugger Robot [Tue, 10 Sep 2019 17:35:25 +0000 (17:35 +0000)]
Merge "Refactor SoundEffectsHelper for asynchronous loading"
Treehugger Robot [Tue, 10 Sep 2019 17:29:46 +0000 (17:29 +0000)]
Merge "AudioService: factor out sound effects handling"
Jean-Michel Trivi [Tue, 10 Sep 2019 16:43:00 +0000 (16:43 +0000)]
Merge "Use sendVolumeKeyEvent API instead of sendKeyEvent API"
Christian Wailes [Tue, 10 Sep 2019 16:40:18 +0000 (16:40 +0000)]
Merge "Don't clear the output array if it failed to open the proc status file"
Jean-Michel Trivi [Mon, 24 Jun 2019 17:39:19 +0000 (10:39 -0700)]
AudioService: fix disconnect/connect of A2DP device
Due to the expected BECOMING_NOISY behavior associated
with a device disconnection, the disconnection is handled
asynchronously after a fixed delay. This delay caused an
inversion of commands in the processing order of the
disconnection of a device closely followed by connection
of the same device.
The fix consists in:
- overriding the equals() operator for BtDeviceConnectionInfo
so messages for a given device in the message queue
can be checked / removed.
- when AudioDeviceBroker receives a command for A2DP
connection or disconnection, remove all upcoming connection
and disconnection commands in the queue for this device
(see postBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent)
- remove AudioDeviceBroker.handleSetA2dpSinkConnectionState, which
was only used in BtHelper.onA2dpProfileConnected() with
a CONNECTED state, and have this method perform a regular device
connection (just like when coming from AM->AS).
- in AudioDeviceInventory.onSetA2dpSinkConnectionState(), support
receiving a connection event for an already connected device,
to support codec changes.
This change also includes modifications to the classes involved
in the device connection to make them support mocking/spying
to reproduce the bug conditions (see AudioDeviceBrokerTest).
Bug:
134932649
Test: atest AudioDeviceBrokerTest
Change-Id: If2b3b41409c77467a181a2f9b42310db9b9de8c5
Merged-In: If2b3b41409c77467a181a2f9b42310db9b9de8c5
Eric Laurent [Sat, 13 Jul 2019 01:19:27 +0000 (18:19 -0700)]
audioservice: re send BT_SCO parameter to HAL when audioserver restarts
Fix omission in AudioDeviceBroker.onAudioServerDied() where parameter
"BT_SCO=on|off" must be send to HAL according to current forced usage
for communication.
Bug:
135512789
Test: killaudio server during call over BT SCO
Change-Id: I1039748db5591321869f70c3dc589fbc62d41c31
Merged-In: I1039748db5591321869f70c3dc589fbc62d41c31
Eric Laurent [Fri, 12 Jul 2019 17:31:51 +0000 (10:31 -0700)]
audioservice: fix hasMediaDynamicPolicy() for loopback and render policies
Exclude mixes with LOOPBACK + RENDER flags when looking for dynamic
policies matching media usage. As this is only used in the context
of sending becoming noisy intent we want to send the intent when playback
capture is active.
Bug:
137055231
Test: enable live caption and disconnect headset while music is playing
Change-Id: Ib3cd38f58c2ff78a2f2f13c5c22b637f9701e345
Merged-In: Ib3cd38f58c2ff78a2f2f13c5c22b637f9701e345
Mikhail Naganov [Tue, 2 Jul 2019 21:35:42 +0000 (14:35 -0700)]
Refactor SoundEffectsHelper for asynchronous loading
Use a dedicated thread for all SoundPool and MediaPlayer
operations. This ensures that the client (AudioService) doesn't
get blocked or delayed. This also removes the need to use
locking as all access to data happens on the same thread.
Simplify the implementation of the mapping between UI effect IDs
and SoundPool sample IDs.
Add event logging for sound effects loading.
Bug:
135763139
Test: normal scenario
media volume responsiveness with stuck SoundPool
behavior when declared sound assets are missing
Change-Id: Ie5a1684a2cabe05ff53270ad97cab161a87a59f9
Merged-In: Ie5a1684a2cabe05ff53270ad97cab161a87a59f9
Mikhail Naganov [Tue, 2 Jul 2019 18:44:35 +0000 (11:44 -0700)]
AudioService: factor out sound effects handling
Move the code related to sound effects loading and playback
into a separate class SoundEffectsHelper.
Bug:
135763139
Test: make and run phone
Change-Id: I30a7d897d740b02943c68924074f14fae3c3eff8
Merged-In: I30a7d897d740b02943c68924074f14fae3c3eff8
Amy [Thu, 13 Jun 2019 22:06:15 +0000 (15:06 -0700)]
Use sendVolumeKeyEvent API instead of sendKeyEvent API
sendKeyEvent API always forwards the key control to the TV.
But for volume keys, we want it to be forwarded to the audio system if
system audio mode is on and if we are not a audio system itself.
sendVolumeKeyEvent can handle this logic.
Test: manual
Bug:
129116245
Change-Id: I6b81072ab49c092fac65cd542c19e611fc939cea
Merged-In: I6b81072ab49c092fac65cd542c19e611fc939cea
(cherry picked from commit
ada40f59b63fe613448278a7cfbb7055146f8ccd)
Mathieu Chartier [Tue, 10 Sep 2019 15:34:18 +0000 (15:34 +0000)]
Merge "Rename profileSystemServer to shouldProfileSystemServer"
Jean-Michel Trivi [Tue, 10 Sep 2019 15:20:52 +0000 (15:20 +0000)]
Merge "AudioService: Add the AudioDeviceBroker's message queue to the dump"
Luca Stefani [Sat, 5 Jan 2019 15:40:12 +0000 (16:40 +0100)]
WindowOrientationListener: Check if proposed rotation is in range
* Some OEMs *coughs OnePlus* decided it was a great idea to add a fourth kind of rotation ( flat )
Change-Id: I54c6e6360e897fbc8445edabbf411807521c624b
Neil Fuller [Tue, 10 Sep 2019 08:52:45 +0000 (09:52 +0100)]
Track changes to CountryTimeZones API
Track changes to CountryTimeZones.lookupByOffsetWithBias()
API: the method now takes an extra argument: dstOffsetMillis,
which is unused in this case.
This commit also improves the parameter names to be more descriptive.
Bug:
139091367
Test: treehugger
Change-Id: I2090965640bb389ea41bde460f380f9ea8a6b176
Neil Fuller [Tue, 10 Sep 2019 10:49:27 +0000 (10:49 +0000)]
Merge "Simplify APIs exposed for time zone lookups"
Neil Fuller [Mon, 19 Aug 2019 19:39:30 +0000 (20:39 +0100)]
Simplify APIs exposed for time zone lookups
The libcore.timezone APIs may form the basis for some
new SystemApis. Before starting that process the API
surface is being rationalized to establish the core
use cases.
Test: Treehugger
Bug:
139091367
Change-Id: I6c8b791524d16223c414612913b22f4d70c27d61
Merged-In: I6c8b791524d16223c414612913b22f4d70c27d61
(cherry picked from commit
400efa36ef8666ad8341c36679a4f2cb9fd00f9f)
Treehugger Robot [Tue, 10 Sep 2019 05:50:56 +0000 (05:50 +0000)]
Merge "Revert "Fix: vendor public libraries are accessible via System.loadLibrary""
samalin [Tue, 10 Sep 2019 04:57:49 +0000 (12:57 +0800)]
Swisscom VVM free SMS shortcodes CH
Visual Voicemail uses SMS for provision, these SMSs are free to the
user. To add the shortcode 30047 into whitelist to avoid the premium
SMS notification appear.
Bug:
133877441
Test: manual test
Change-Id: I2f7da544c2a948d1528781ebd11b75f027779e0d
Jiyong Park [Wed, 28 Aug 2019 14:19:20 +0000 (23:19 +0900)]
Revert "Fix: vendor public libraries are accessible via System.loadLibrary"
This reverts commit
cfe38cdb1cc45c8b7dcbe4f39329551f6602b9ce.
The CL
8f712189dfc02285573337e2b4ab17678011db14 in libcore project avoids
the need for adding the new paths in LoadedApk. With the CL, a classloader
does not give up even when loader.findLibrary() has failed due to some
paths are not added to it. Instead, the classloader converts the given
libname into a filename (e.g. foo -> libfoo.so) then calls dlopen()
with the filename. The classloader reports failure only when the dlopen()
call has failed. Therefore, manually adding these paths to the classloader
is no longer needed and thus removed.
Bug:
109720125
Test: System.loadLibrary("adsprpc") is successful in Pixel (because
libadsprpc.so is in Pixel's vendor public lib list)
Test: atest cts/tests/tests/jni
Merged-In: I1970eba7e732728699042a36b89571915ec81451
(cherry picked from commit
37131e1ee61dd83121ef02744855ee514f0aa6c5)
Change-Id: I1970eba7e732728699042a36b89571915ec81451
Mikhail Naganov [Tue, 10 Sep 2019 00:47:31 +0000 (17:47 -0700)]
AudioService: Add the AudioDeviceBroker's message queue to the dump
Clogged queue means device-related requests will not be served.
Example dump snippet:
AudioDeviceBroker:
Message handler (watch for unhandled messages):
Handler (com.android.server.audio.AudioDeviceBroker$BrokerHandler) {
753fed2} @ 359741
Looper (AudioDeviceBroker, tid 115) {
ed3aba3}
(Total messages: 0, polling=true, quitting=false)
Bug:
135763139
Test: adb shell dumpsys audio
Change-Id: If2130a4bd8bd9536df01656fe1a8f94548912ab9
Merged-In: If2130a4bd8bd9536df01656fe1a8f94548912ab9
Treehugger Robot [Tue, 10 Sep 2019 00:05:26 +0000 (00:05 +0000)]
Merge "AudioService: Add the service's message queue to the dump"
Treehugger Robot [Tue, 10 Sep 2019 00:03:18 +0000 (00:03 +0000)]
Merge "audioservice: do not show volume panel when system audio is on"
Mikhail Naganov [Wed, 26 Jun 2019 23:56:03 +0000 (16:56 -0700)]
AudioService: Add the service's message queue to the dump
Clogged queue means UI and other commands can not reach
the service and will cause volume controls to malfunction.
Example dump snippet:
Message handler (watch for unhandled messages):
Handler (com.android.server.audio.AudioService$AudioHandler) {
a904698} @ 61825
Looper (AudioService, tid 118) {
6808ef1}
Message 0: { when=-52s689ms what=25 ... }
Message 1: { when=-52s8ms what=8 ... }
Message 2: { when=-52s4ms what=8 ... }
...
Message 35: { when=-2s436ms what=0 ... }
(Total messages: 36, polling=false, quitting=false)
This indicates that the command queue is not being processed
because the handler got stuck. Checking stacks of the system_server
can help in figuring out the reason.
Bug:
135763139
Test: adb shell dumpsys audio
Change-Id: I02009720668af218edb38d5a5948a5964b72c685
Merged-In: I02009720668af218edb38d5a5948a5964b72c685
Mathieu Chartier [Mon, 9 Sep 2019 20:05:31 +0000 (13:05 -0700)]
Rename profileSystemServer to shouldProfileSystemServer
Makes it clearer and addresses previous CR comment.
Bug:
139883463
Test: make
Change-Id: I7c1a1d99cf307b89ee8f2c5c906168d196b35d0e
Mathieu Chartier [Mon, 9 Sep 2019 19:47:55 +0000 (19:47 +0000)]
Merge "Add phenotype property for profiling system server"
Eric Laurent [Tue, 11 Jun 2019 17:19:38 +0000 (10:19 -0700)]
audioservice: do not show volume panel when system audio is on
Do not show volume panel on TVs when system audio mode is ON.
Bug:
130524216
Test: make
Change-Id: Id8730455ee79f0ea3fa4c23e0a8b6bd2791eb2d3
Merged-In: Id8730455ee79f0ea3fa4c23e0a8b6bd2791eb2d3
(cherry picked from commit
db961d82edee13b7f2a1e83f451c4f20430f8fce)