OSDN Git Service

android-x86/frameworks-base.git
4 years agoSupport save local time to RTC
Ma Jian [Sun, 12 Jun 2016 07:13:55 +0000 (15:13 +0800)]
Support save local time to RTC

Make it work for dual boot with Windows, we could set property
persist.rtc_local_time to 1, so that RemixOS and Windows both
use local time in rtc.

NO_REF_TASK
Tested:
1) set time in android, reboot to bios, make sure the time in bois is
   local time
2) reboot back to android, the current time should be correct local time
   (this need another change)

Change-Id: Id2c0ce150fb9320b132ad8bdd83b38dcae1070db

4 years agoMap keycode 120 to APP_SWITCH
Chih-Wei Huang [Mon, 22 Dec 2014 04:08:17 +0000 (12:08 +0800)]
Map keycode 120 to APP_SWITCH

Define the unused keycode 120 to be APP_SWITCH.

4 years agoInputReader: read the pointercal from TSCalibration2
Chih-Wei Huang [Sat, 17 May 2014 18:20:32 +0000 (02:20 +0800)]
InputReader: read the pointercal from TSCalibration2

Watch the pointercal and reload it on changed.

4 years agoMake "windows" key to act as "home" key
juntingwang [Wed, 24 Apr 2013 06:06:08 +0000 (14:06 +0800)]
Make "windows" key to act as "home" key

Issue: AXIA-1893
Change-Id: I7b2b19f7e34ec8a1867e8e6ce522e65133e5267f
Signed-off-by: juntingwang <Junting.Wang@windriver.com>
4 years agocamera: fix NullPointerException
Chih-Wei Huang [Wed, 20 Feb 2013 17:46:17 +0000 (01:46 +0800)]
camera: fix NullPointerException

4 years agoGLSurfaceView: Be less picky about EGLConfig alpha sizes
Andy Ross [Tue, 15 Jan 2013 23:05:38 +0000 (15:05 -0800)]
GLSurfaceView: Be less picky about EGLConfig alpha sizes

EGLChooseConfig returns a "best match" set of visuals meeting or
exceeding the required r/g/b/a component depths.  But GLSurfaceView
oddly requires that the returned visual be an exact match.  Add to
that that the (rarely used outside of CTS) default request specifies
zero alpha bits and that not all drivers expose a zero-alpha
EGLConfig, and the default configuration will fail needlessly.

It's not incorrect to have alpha bits you didn't request: the only way
to produce divergent behavior is for a fragment shader to write out
explicit alpha values (into the channel it didn't want to begin with!)
with values other than 1.0 and then rely on them being ignored and
treated as 1.0.

For: AXIA-1448
Change-Id: I2f64995d7b9de1ae082aa47822af525390102083
Signed-off-by: Andy Ross <andy.ross@windriver.com>
4 years agoimport YuvToEncoder R3 patches, BZ 18528, 19092, 19696
Zhao Liang [Fri, 20 Jul 2012 03:56:51 +0000 (11:56 +0800)]
import YuvToEncoder R3 patches, BZ 18528, 19092, 19696

BZ: 47824

Please refer http://umgbugzilla.sh.intel.com:41006/show_bug.cgi?id=19092 and
external/jpeg/libjpeg.doc

The MCU height is max_v_samp_factor = 2 DCT rows so you must pass at least 16
scanlines on each call to jpeg_write_raw_data(), which is to say 16 actual
sample rows of Y and 8 each of Cb and Cr.

The original implement of Yuv420SpToJpegEncoder::compress didn't add padding to the frame buffer
when height and width aren't aligned with 16 pixel. It will cause illegal memory violation and core dump.

Category: aosp improvement
Domain: Video.Media-jpeg
Origin: Internal
Upstream: Yes

Change-Id: Ibcf14230d616e2d440ace244bb420723b5c01dc2
Orig-Change-Id: Ic1b7494b98ee9c1997b226d58abd034b1dcb18f6
Signed-off-by: Tong, Bo <box.tong@intel.com>
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
4 years agoMerge cherrypicks of [10484934, 10484473, 10472987, 10481068] into qt-qpr2-release
android-build-team Robot [Mon, 2 Mar 2020 23:55:13 +0000 (23:55 +0000)]
Merge cherrypicks of [10484934104844731047298710481068] into qt-qpr2-release

Change-Id: I3ba00e16f09289a9368e55b59b0a527bc55bb3f3

4 years agoDO NOT MERGE: Revert Move startInput for WINDOW_FOCUS_GAIN to background thread
Yohei Yukawa [Fri, 28 Feb 2020 23:04:58 +0000 (23:04 +0000)]
DO NOT MERGE: Revert Move startInput for WINDOW_FOCUS_GAIN to background thread

Reason for revert:
Caused an unexpected regression Bug 144174015

Bug: 139806621
Bug: 144103599
Fix: 144174015
Test: Manually verified Bug 144174015 disappeared as follows
 1. Open Gmail then start composing an email
 2. Swipe up the home button to recents then re-launch Gmail
 3. Do the step 2 several times.
 4. Make sure that you can still type something on Gmail.
Change-Id: I9265f01ed2f6e4aca7728d278f06ceea5633dac5
(cherry picked from commit 344858dd9c5616a0de16fa0ac72e0d384e2406c4)

4 years agoDO NOT MERGE: Revert: Freeup lock when IME is set inactive and unbound
Yohei Yukawa [Fri, 28 Feb 2020 23:04:58 +0000 (23:04 +0000)]
DO NOT MERGE: Revert: Freeup lock when IME is set inactive and unbound

Reason for revert:
Caused an unexpected regression Bug 144174015

Bug: 139806621
Bug: 144103599
Fix: 144174015
Test: Manually verified Bug 144174015 disappeared as follows
 1. Open Gmail then start composing an email
 2. Swipe up the home button to recents then re-launch Gmail
 3. Do the step 2 several times.
 4. Make sure that you can still type something on Gmail.
Change-Id: I04a77afea17f9d3eb05017fa00313fad4e48cd5c
(cherry picked from commit 9494c9dbb73b0ce237cb2f64fba90434b1b09c09)

4 years agoMerge cherrypicks of [10460465, 10460521, 10460352, 10458819] into qt-qpr2-release
android-build-team Robot [Fri, 28 Feb 2020 21:18:04 +0000 (21:18 +0000)]
Merge cherrypicks of [10460465104605211046035210458819] into qt-qpr2-release

Change-Id: Iceb99c57cf8adeb4ffa9fa79fbc5f8246058e2cf

4 years agoAllow settingIgnored for DBH request if inEmergency
Yu-Han Yang [Wed, 26 Feb 2020 20:46:01 +0000 (12:46 -0800)]
Allow settingIgnored for DBH request if inEmergency

Bug: 150232136

Test: on device
Change-Id: Ia987418a591d716b787d406d725338a8563a55dd
(cherry picked from commit 6d19cef854bdb382507daefae2a5956400a255d5)

4 years agoMerge cherrypicks of [10297641, 10298303, 10298494, 10298514, 10297196, 10298164...
android-build-team Robot [Tue, 11 Feb 2020 19:07:54 +0000 (19:07 +0000)]
Merge cherrypicks of [10297641102983031029849410298514102971961029816410297642102976431029604610296047102982451029824610297197102971981029849510298496] into qt-qpr2-release

Change-Id: I1f8470eec0bf64e28290002664f6e5a6c8d733dc

4 years agoFix serialization issue of ExternalVibration
Alexey Kuzmin [Tue, 7 Jan 2020 11:59:18 +0000 (11:59 +0000)]
Fix serialization issue of ExternalVibration

Remove excessive serialization of Audio Attributes
Bug: 140417434
Test: atest ExternalVibrationTest#testSerialization

Change-Id: Ib7ceaed875889126a53f874eec64fab4817e48d1
(cherry picked from commit b1a33a8b4fd4b1603c0465a904be29f0c4a07e64)

4 years agoRevoke 'always' web handler status when not autoverifying
Christopher Tate [Tue, 17 Dec 2019 19:21:02 +0000 (11:21 -0800)]
Revoke 'always' web handler status when not autoverifying

If an app has previously used autoVerify to make claims about its status
re handling web navigation intents, but is updated such that it no
longer makes those claims, step down its "official handler" status as
though it had never invoked autoVerify in the first place.

Bug: 146204120
Test: manual: as described in bug; observe policy before/after via
      'adb shell dumpsys package d'
Test: atest CtsOsHostTestCases
Change-Id: I58502d1b32d793aba9aa772fa2ad5ac38acca48a
Merged-In: I58502d1b32d793aba9aa772fa2ad5ac38acca48a
(cherry picked from commit d2a71cc4b8f11688f85f33507b75d00041c14852)

4 years agoFix potential double destroy of AssetManager
Riddle Hsu [Thu, 4 Jul 2019 08:10:08 +0000 (16:10 +0800)]
Fix potential double destroy of AssetManager

Assume there is a XmlBlock [X] created by a AssetManager [A]
([A] will have mNumRefs = 2). After [A].close is called
(mNumRefs = 1) and then both [X] and [A] are going to be GCed,
if [A].finalize is called first (nativeDestroy), the later
[X].finalize will invoke [A].xmlBlockGone that triggers the
second nativeDestroy of [A] and leads to crash.

By clearing the mObject in AssetManager.finalize, the
decRefsLocked from other paths won't call nativeDestroy again.

Bug: 136721562
Bug: 144028297
Test: atest AssetManagerTest
Test: Build and install CorePerfTests
      adb shell am instrument -w -r --no-hidden-api-checks -e class \
      android.app.ResourcesPerfTest#getLayoutAndTravese,android.graphics.perftests.RenderNodePerfTest \
      com.android.perftests.core/androidx.test.runner.AndroidJUnitRunner

Change-Id: Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1
Merged-In: Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1
(cherry picked from commit 0a8a1e9d40a3cdff06150c43c623fa4c415226b6)

4 years agoPrevent sending early termination of appop use
Fabian Kozynski [Wed, 18 Dec 2019 14:54:09 +0000 (09:54 -0500)]
Prevent sending early termination of appop use

If a package starts a particular appop both as active and noted, once
one of them is finished (usually noted after 5s), a message will be sent
to callbacks indicating the end of the use. However, the app op may
still be active. This could result in the removal of indicators
prematurely from notifications.

This change prevents that from happening by checking if the app op is
still in use by that combination uid/package (either active or noted)
and not notifying listeners if that's the case.

Test: atest AppOpsControllerTest
Test: use app from bug report. Observe that notification does not lose
the microphone indicator
Bug: 144092031
Merged-In: I180e7c257e6171e7686ba7eda9bf02249358ed0

Change-Id: I94473c3ccf1318dac29f067dade91e540e20285e
(cherry picked from commit 1a459638398446938a20b32fa0fbc63ad4bd505f)

4 years agoSnap for 6129081 from 7fffbe673fc3a7273075aa36bd1e1f2820729fac to qt-qpr2-release
android-build-team Robot [Sun, 12 Jan 2020 21:04:48 +0000 (21:04 +0000)]
Snap for 6129081 from 7fffbe673fc3a7273075aa36bd1e1f2820729fac to qt-qpr2-release

Change-Id: I4a8b091440effb0da17287dca3b7300c8676c577

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sun, 12 Jan 2020 15:16:28 +0000 (15:16 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sun, 12 Jan 2020 15:06:35 +0000 (15:06 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sun, 12 Jan 2020 15:02:43 +0000 (15:02 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 Jan 2020 09:58:55 +0000 (01:58 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ie6d5b00e740371bb1e11dbce49edddebd466b25a
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 Jan 2020 09:42:51 +0000 (01:42 -0800)]
Import translations. DO NOT MERGE

Change-Id: I2a6a13d41fb703ccee7d24a5be0fbe2d26110bf0
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 Jan 2020 08:06:57 +0000 (00:06 -0800)]
Import translations. DO NOT MERGE

Change-Id: I5408c7ab27f2e104998d9232519328992c11a985
Auto-generated-cl: translation import

4 years agoSnap for 6128439 from b1d8ad5183a468a59d5fecb66e047d3007ed93c4 to qt-qpr2-release
android-build-team Robot [Sun, 12 Jan 2020 00:11:56 +0000 (00:11 +0000)]
Snap for 6128439 from b1d8ad5183a468a59d5fecb66e047d3007ed93c4 to qt-qpr2-release

Change-Id: Iec20fdd5f7b2876d7ce51280758be87f40530163

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 11 Jan 2020 08:53:46 +0000 (00:53 -0800)]
Import translations. DO NOT MERGE

Change-Id: I5a8acd5969781950322e34833e274c3c38fef446
Auto-generated-cl: translation import

4 years agoSnap for 6123600 from b43b52a2e138b7648005ba8187947da2bd749d73 to qt-qpr2-release
android-build-team Robot [Fri, 10 Jan 2020 02:13:32 +0000 (02:13 +0000)]
Snap for 6123600 from b43b52a2e138b7648005ba8187947da2bd749d73 to qt-qpr2-release

Change-Id: Ibe4e42bfb37b846419b4cef676806e25d23f5085

4 years ago[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission...
Automerger Merge Worker [Thu, 9 Jan 2020 17:41:35 +0000 (17:41 +0000)]
[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b069876 am: 81db8d8a83 am: 5b6d8d7724 -s ours am: d0715a9f07 -s ours am: c64d1c4649 -s ours
am skip reason: Change-Id Iae9c273af822b18c2e6fce04848a86f8dea6410a with SHA-1 d0205a3469 is in history

Change-Id: Id7d778048e411acc447b4adf43d977e8eb98a8af

4 years ago[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission...
Automerger Merge Worker [Thu, 9 Jan 2020 17:40:58 +0000 (17:40 +0000)]
[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission" into pi-dev am: 361f1e97f6 -s ours am: 92b897e4a8 -s ours
am skip reason: Change-Id I2da730feda4d7ebed1f158b073167bb3964b3e7d with SHA-1 9352cb24b1 is in history

Change-Id: I641d8967ec8af4b58696bf2c044f5a87a6836937

4 years ago[automerger skipped] Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am:...
Automerger Merge Worker [Thu, 9 Jan 2020 17:40:04 +0000 (17:40 +0000)]
[automerger skipped] Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62 am: 929c2c5e1b am: 0cf089521a -s ours am: 9ecc8ab3c8 -s ours
am skip reason: Change-Id I8ae4e331d09b4734c54cdc6887b273705dce88b1 with SHA-1 bf04ea6d3b is in history

Change-Id: Icf80644315482ee15830ff00e5454eb73e259777

4 years ago[automerger skipped] Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc...
Automerger Merge Worker [Thu, 9 Jan 2020 17:39:55 +0000 (17:39 +0000)]
[automerger skipped] Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476 am: d46ef183b1 am: d6f29b2711 -s ours am: e1ca007272 -s ours
am skip reason: Change-Id Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea with SHA-1 428a272285 is in history

Change-Id: I52b4194b76008c44e042870f1c9059b69af6eb11

4 years ago[automerger skipped] Handles null outInfo in deleteSystemPackageLI am: 6afabce549...
Automerger Merge Worker [Thu, 9 Jan 2020 17:39:45 +0000 (17:39 +0000)]
[automerger skipped] Handles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda am: 3e28284fb8 am: 9f31fb9eaf -s ours am: f8f4f28079

Change-Id: Idf3455832bb8dfea247487f8efea1a954f3f65a6

4 years ago[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission...
Automerger Merge Worker [Thu, 9 Jan 2020 16:50:47 +0000 (16:50 +0000)]
[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b069876 am: 81db8d8a83 am: 5b6d8d7724 -s ours am: d0715a9f07 -s ours
am skip reason: Change-Id Iae9c273af822b18c2e6fce04848a86f8dea6410a with SHA-1 d0205a3469 is in history

Change-Id: I9b95f9715b7d15e3f430e6c46a2fd975b6b51f23

4 years ago[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission...
Automerger Merge Worker [Thu, 9 Jan 2020 16:50:08 +0000 (16:50 +0000)]
[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission" into pi-dev am: 361f1e97f6 -s ours
am skip reason: Change-Id I2da730feda4d7ebed1f158b073167bb3964b3e7d with SHA-1 9352cb24b1 is in history

Change-Id: Id83288231d705e604e5094d40d211c0c940c4dd4

4 years ago[automerger skipped] Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am:...
Automerger Merge Worker [Thu, 9 Jan 2020 16:49:00 +0000 (16:49 +0000)]
[automerger skipped] Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62 am: 929c2c5e1b am: 0cf089521a -s ours
am skip reason: Change-Id I8ae4e331d09b4734c54cdc6887b273705dce88b1 with SHA-1 bf04ea6d3b is in history

Change-Id: I8dd0a9c26382b390dd7417fe35820abce79fdb92

4 years ago[automerger skipped] Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc...
Automerger Merge Worker [Thu, 9 Jan 2020 16:48:50 +0000 (16:48 +0000)]
[automerger skipped] Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476 am: d46ef183b1 am: d6f29b2711 -s ours
am skip reason: Change-Id Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea with SHA-1 428a272285 is in history

Change-Id: Ia06b75350be3d1a99972e9763653fb0b6422b131

4 years ago[automerger skipped] Handles null outInfo in deleteSystemPackageLI am: 6afabce549...
Automerger Merge Worker [Thu, 9 Jan 2020 16:48:29 +0000 (16:48 +0000)]
[automerger skipped] Handles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda am: 3e28284fb8 am: 9f31fb9eaf -s ours
am skip reason: skipped by user patb

Change-Id: I1be1d1947f31c4c9e89f6de3768a578f58511668

4 years ago[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission...
Automerger Merge Worker [Thu, 9 Jan 2020 14:06:22 +0000 (14:06 +0000)]
[automerger skipped] Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b069876 am: 81db8d8a83 am: 5b6d8d7724 -s ours
am skip reason: Change-Id Iae9c273af822b18c2e6fce04848a86f8dea6410a with SHA-1 d0205a3469 is in history

Change-Id: Ifa87cac191ad07937dc70770ff74a9d025131a40

4 years agoMerge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b0...
Automerger Merge Worker [Thu, 9 Jan 2020 13:53:42 +0000 (13:53 +0000)]
Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b069876 am: 81db8d8a83

Change-Id: I5660cafce05a0e3c6edff03bd645d8df329c5d50

4 years agoMerge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b0...
Automerger Merge Worker [Thu, 9 Jan 2020 13:40:20 +0000 (13:40 +0000)]
Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev am: 5e0b069876

Change-Id: I4c255820617a86afdfa239febdd46fff7d082381

4 years agoMerge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev
TreeHugger Robot [Thu, 9 Jan 2020 13:25:46 +0000 (13:25 +0000)]
Merge "Fix security problem on PermissionMonitor#hasPermission" into oc-dev

4 years agoMerge "Fix security problem on PermissionMonitor#hasPermission" into pi-dev
Paul Hu [Thu, 9 Jan 2020 08:53:08 +0000 (08:53 +0000)]
Merge "Fix security problem on PermissionMonitor#hasPermission" into pi-dev

4 years agoMerge "Fix PermissionMonitor issues" into qt-dev am: 97baed2635
Automerger Merge Worker [Thu, 9 Jan 2020 05:59:27 +0000 (05:59 +0000)]
Merge "Fix PermissionMonitor issues" into qt-dev am: 97baed2635

Change-Id: Ia955c4304c2e623b291c111615c65f012b7c3028

4 years agoMerge "Fix PermissionMonitor issues" into qt-dev
Paul Hu [Thu, 9 Jan 2020 05:41:52 +0000 (05:41 +0000)]
Merge "Fix PermissionMonitor issues" into qt-dev

4 years agoSnap for 6120535 from 9595ad654b547711c1af56a562dbf429e608d176 to qt-qpr2-release
android-build-team Robot [Thu, 9 Jan 2020 02:02:58 +0000 (02:02 +0000)]
Snap for 6120535 from 9595ad654b547711c1af56a562dbf429e608d176 to qt-qpr2-release

Change-Id: I831b75f3f7350376063409d5c53cd1f96c4e8a24

4 years agoMerge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62...
Automerger Merge Worker [Thu, 9 Jan 2020 01:50:54 +0000 (01:50 +0000)]
Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62 am: 929c2c5e1b

Change-Id: I59ffea6df5c62eb899b3603c8767318e96af195a

4 years agoUse KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476 am: d46ef183b1
Automerger Merge Worker [Thu, 9 Jan 2020 01:50:38 +0000 (01:50 +0000)]
Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476 am: d46ef183b1

Change-Id: I6a21d79dc45635a49540f5d821094925b2e71d01

4 years agoHandles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda am: 3e282...
Automerger Merge Worker [Thu, 9 Jan 2020 01:50:24 +0000 (01:50 +0000)]
Handles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda am: 3e28284fb8

Change-Id: Ib34f13ac3d1e34dbe639dc19c1c664aab9d7f17d

4 years agoMerge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62
Automerger Merge Worker [Thu, 9 Jan 2020 01:04:14 +0000 (01:04 +0000)]
Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f am: 43d5e3bb62

Change-Id: I5df542202c561a4ed931b918ccbaed317a8ba942

4 years agoUse KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476
Automerger Merge Worker [Thu, 9 Jan 2020 01:03:58 +0000 (01:03 +0000)]
Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476

Change-Id: I64af9ee49999f2de11f1a6779e116357649f63b2

4 years agoHandles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda
Automerger Merge Worker [Thu, 9 Jan 2020 01:03:45 +0000 (01:03 +0000)]
Handles null outInfo in deleteSystemPackageLI am: 6afabce549 am: ae901aceda

Change-Id: I2741bc7999cd2b1c1e16b982791f72e3023361c7

4 years agoMerge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f
Automerger Merge Worker [Thu, 9 Jan 2020 00:08:31 +0000 (00:08 +0000)]
Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev am: e422bc0c8f

Change-Id: I7efbfda4517e46abf406fd53487836704a941a2e

4 years agoUse KNOWN_PACKAGES when shared lib consumers am: 08315953bc
Automerger Merge Worker [Thu, 9 Jan 2020 00:08:14 +0000 (00:08 +0000)]
Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc

Change-Id: I3ab4cc8d36bd79f3b7342cf0d0fa3056d08988e7

4 years agoHandles null outInfo in deleteSystemPackageLI am: 6afabce549
Automerger Merge Worker [Thu, 9 Jan 2020 00:08:02 +0000 (00:08 +0000)]
Handles null outInfo in deleteSystemPackageLI am: 6afabce549

Change-Id: I077e6febea84013403feb65842ae99bc449ac737

4 years agoMerge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming...
TreeHugger Robot [Thu, 9 Jan 2020 00:02:49 +0000 (00:02 +0000)]
Merge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming from password fields." into qt-qpr1-dev

4 years agoMerge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev
Bryan Ferris [Wed, 8 Jan 2020 22:46:45 +0000 (22:46 +0000)]
Merge changes I8ae4e331,Id4e37c3e,If0fd4834 into oc-dev

* changes:
  Fixes NPE when preparing app data during init
  Use KNOWN_PACKAGES when shared lib consumers
  Handles null outInfo in deleteSystemPackageLI

4 years agoFixes NPE when preparing app data during init
Patrick Baumann [Wed, 6 Nov 2019 18:36:39 +0000 (10:36 -0800)]
Fixes NPE when preparing app data during init

When deleting an unused static shared library on Q, the user manager was
fetched via mContext.getSystemService. At this time during boot, the
service wasn't registered and so null was returned. This has already
been addressed in R with a move to injecting dependencies in the
PackageManagerService constructor.

Bug: 142083996
Bug: 141413692
Test: manual; remove static dependency on eng Q build and reboot
Change-Id: I8ae4e331d09b4734c54cdc6887b273705dce88b1
Merged-In: I8ae4e331d09b4734c54cdc6887b273705dce88b1

4 years agoUse KNOWN_PACKAGES when shared lib consumers
Patrick Baumann [Thu, 10 Oct 2019 22:50:28 +0000 (15:50 -0700)]
Use KNOWN_PACKAGES when shared lib consumers

This change ensures we find ALL known packages that could be consuming a
shared library, not only currently installed ones. Without this check,
the system may get into a state in which we have currently uninstalled
but on-device apps that depend on a shared library that does not exist
on device.

This change also leaves static shared library packages on device even if
it's not installed for any of the remaining users as it could still be
used, but marked uninstalled for users in which it is consumed.

Bug: 141413692
Bug: 142083996
Test: Manual; attempt to remove shared lib after marking its consumer uninstalled.
Test: atest StaticSharedLibsHostTests
Change-Id: Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea
Merged-In: Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea

4 years agoMerge "DO NOT MERGE: Add another exception to the nearby-sharing chip code." into...
Daniel Sandler [Wed, 8 Jan 2020 15:10:35 +0000 (15:10 +0000)]
Merge "DO NOT MERGE: Add another exception to the nearby-sharing chip code." into qt-qpr1-dev

4 years agoSnap for 6117658 from 45dbf8cc5a50e2ef843f60185b16c171aeccb823 to qt-qpr2-release
android-build-team Robot [Wed, 8 Jan 2020 02:27:06 +0000 (02:27 +0000)]
Snap for 6117658 from 45dbf8cc5a50e2ef843f60185b16c171aeccb823 to qt-qpr2-release

Change-Id: Ic11d6d6c6c20845136cba717270dfc944ff8e91a

4 years agoMerge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming...
Automerger Merge Worker [Wed, 8 Jan 2020 01:35:31 +0000 (01:35 +0000)]
Merge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming from password fields." into qt-dev am: be7f868e7a

Change-Id: Iafcfda17fa43b90f8b9511618a6a7bbca238e781

4 years agoDO NOT MERGE - Temporary fix to disable augmented autofill requests coming from am...
Automerger Merge Worker [Wed, 8 Jan 2020 01:35:27 +0000 (01:35 +0000)]
DO NOT MERGE - Temporary fix to disable augmented autofill requests coming from am: 483da5385f

Change-Id: Ia144921ee6ad424c565ca14713a275b9383e52cb

4 years agoMerge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming...
Adam He [Wed, 8 Jan 2020 01:16:40 +0000 (01:16 +0000)]
Merge "DO NOT MERGE - Temporary fix to disable augmented autofill requests coming from password fields." into qt-dev

4 years agoDO NOT MERGE: Add another exception to the nearby-sharing chip code.
Dan Sandler [Tue, 7 Jan 2020 15:44:43 +0000 (10:44 -0500)]
DO NOT MERGE: Add another exception to the nearby-sharing chip code.

Fixes: 146690046
Test: Share from Chrome
Change-Id: I41b3965ca2289f628a2d1de3a6da7daf01385a54

4 years agoHandles null outInfo in deleteSystemPackageLI
Patrick Baumann [Fri, 23 Aug 2019 20:50:23 +0000 (13:50 -0700)]
Handles null outInfo in deleteSystemPackageLI

This change adds null checks before accessing outInfo in
deleteSystemPackageLI.

Bug: 142083996
Bug: 141413692
Test: manual; remove static dependency on eng build and reboot
Change-Id: If0fd48343e89cbb77ccd25826656194195d5b0cd
(cherry picked from commit 17471016508bb9c9ffb8c3946dda0b4897d722f1)
Merged-In: If0fd48343e89cbb77ccd25826656194195d5b0cd

4 years agoMerge "docs: Add documentation for equals() method" into qt-dev am: 732a127636 am...
Automerger Merge Worker [Tue, 7 Jan 2020 22:54:47 +0000 (22:54 +0000)]
Merge "docs: Add documentation for equals() method" into qt-dev am: 732a127636 am: 8bc1955d0e

Change-Id: Ie77e185c38a1a5eda8efa73577d98babadb6e90d

4 years agoMerge "docs: Add documentation for equals() method" into qt-dev am: 732a127636
Automerger Merge Worker [Tue, 7 Jan 2020 22:41:40 +0000 (22:41 +0000)]
Merge "docs: Add documentation for equals() method" into qt-dev am: 732a127636

Change-Id: I306e8e186d2350f2dabb7238ad8b5c55d8e04e1d

4 years agoMerge "docs: Add documentation for equals() method" into qt-dev
Kevin Hufnagle [Tue, 7 Jan 2020 22:29:32 +0000 (22:29 +0000)]
Merge "docs: Add documentation for equals() method" into qt-dev

4 years agodocs: Add documentation for equals() method
Kevin Hufnagle [Fri, 3 Jan 2020 15:38:37 +0000 (07:38 -0800)]
docs: Add documentation for equals() method

Explain the conditions that must be true in order for two objects
of type `ComponentName` to be considered equal.

Test: make ds-docs -j32

Bug: 62991861

Change-Id: I162ecd825b187ca688af11271a937e3740a4a833
Exempt-From-Owner-Approval: Docs-only change

4 years agoSnap for 6114123 from fc94ebae09a76f30fb0ed57ea1e39bf366bdf2f5 to qt-qpr2-release
android-build-team Robot [Tue, 7 Jan 2020 02:01:21 +0000 (02:01 +0000)]
Snap for 6114123 from fc94ebae09a76f30fb0ed57ea1e39bf366bdf2f5 to qt-qpr2-release

Change-Id: I48946e4a804bbc0afabe4416975e656f33b95400

4 years agodocs: Fix typo in IMPORTANCE_SERVICE description am: 08a4e470b8 am: edcfda720b
Automerger Merge Worker [Mon, 6 Jan 2020 18:24:58 +0000 (18:24 +0000)]
docs: Fix typo in IMPORTANCE_SERVICE description am: 08a4e470b8 am: edcfda720b

Change-Id: Id0683ebab467f7baaac1650b15dd8e98f8057306

4 years agodocs: Fix typo in IMPORTANCE_SERVICE description am: 08a4e470b8
Automerger Merge Worker [Mon, 6 Jan 2020 18:13:01 +0000 (18:13 +0000)]
docs: Fix typo in IMPORTANCE_SERVICE description am: 08a4e470b8

Change-Id: I32360f63be584c4223c6aae692beb48c0bdf4802

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Mon, 6 Jan 2020 05:10:55 +0000 (05:10 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 6 Jan 2020 01:21:55 +0000 (17:21 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ic0a95801207612d600d8072163aaa5c5b8da51b3
Auto-generated-cl: translation import

4 years agoSnap for 6111559 from db92bf07a2b71e14d185fef57a698e591d37cbe4 to qt-qpr2-release
android-build-team Robot [Mon, 6 Jan 2020 00:04:21 +0000 (00:04 +0000)]
Snap for 6111559 from db92bf07a2b71e14d185fef57a698e591d37cbe4 to qt-qpr2-release

Change-Id: I25796cc00ae733250ba3be922dc946475e613d30

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 5 Jan 2020 07:39:30 +0000 (23:39 -0800)]
Import translations. DO NOT MERGE

Change-Id: I7edb50b15c89ca55770d4be0dcca7a066856ada7
Auto-generated-cl: translation import

4 years agodocs: Fix typo in IMPORTANCE_SERVICE description
Kevin Hufnagle [Fri, 3 Jan 2020 20:05:28 +0000 (20:05 +0000)]
docs: Fix typo in IMPORTANCE_SERVICE description

Test: make ds-docs -j32

Bug: 140783404

Change-Id: Ife86109eebefe9c87f7c9ed4a0587676e3392d90
Exempt-From-Owner-Approval: Docs-only change

4 years agoSnap for 6107751 from 03bdd73cca7e5f2d2b858aab0040259f9b96ebf7 to qt-qpr2-release
android-build-team Robot [Fri, 3 Jan 2020 02:09:47 +0000 (02:09 +0000)]
Snap for 6107751 from 03bdd73cca7e5f2d2b858aab0040259f9b96ebf7 to qt-qpr2-release

Change-Id: I75b07d533cf9d47cf54a8290b62a3ba696c8e251

4 years agoMerge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced...
Automerger Merge Worker [Thu, 2 Jan 2020 21:50:42 +0000 (21:50 +0000)]
Merge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced am: 98274d96f5 am: 9868e4c737

Change-Id: I60a049225fd042ee6c559c0a1dcbc99b4b49d92e

4 years agoMerge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced...
Automerger Merge Worker [Thu, 2 Jan 2020 21:25:50 +0000 (21:25 +0000)]
Merge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced am: 98274d96f5

Change-Id: Id7b90a1a2f4f89e3303e43c1a2a78d7a9587feb3

4 years agoMerge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced
Automerger Merge Worker [Thu, 2 Jan 2020 21:11:32 +0000 (21:11 +0000)]
Merge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27 am: af521c4ced

Change-Id: Id28175d26ec9910e184d5520cdf280e3ab831cf4

4 years agoMerge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27
Automerger Merge Worker [Thu, 2 Jan 2020 20:47:01 +0000 (20:47 +0000)]
Merge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev am: 546c644f27

Change-Id: I511da6d59c3b525cb678d6bb08a6cfa8e4e5a94f

4 years agoMerge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev
TreeHugger Robot [Thu, 2 Jan 2020 20:31:27 +0000 (20:31 +0000)]
Merge "Fix MediaCodec FLAC Javadoc" into oc-mr1-dev

4 years agoSnap for 6103831 from 15783772f43a19a23cbcfe59e4d18fced0be7b3c to qt-qpr2-release
android-build-team Robot [Tue, 31 Dec 2019 02:03:11 +0000 (02:03 +0000)]
Snap for 6103831 from 15783772f43a19a23cbcfe59e4d18fced0be7b3c to qt-qpr2-release

Change-Id: Ife364e8d622d83a478c8cbcc4cbcf35ffb7ebb8b

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Mon, 30 Dec 2019 19:29:33 +0000 (19:29 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Mon, 30 Dec 2019 16:00:27 +0000 (16:00 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 30 Dec 2019 15:17:43 +0000 (07:17 -0800)]
Import translations. DO NOT MERGE

Change-Id: I1108db974400d6e4b0c80482517916f2cf1b7d02
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 30 Dec 2019 10:52:09 +0000 (02:52 -0800)]
Import translations. DO NOT MERGE

Change-Id: I3b741dd925de582bc2c9f649785af77ae88ee9bc
Auto-generated-cl: translation import

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Mon, 30 Dec 2019 08:45:28 +0000 (08:45 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoSnap for 6102350 from 55a28df6f2f7abed00d8d16c96e01df84af7e526 to qt-qpr2-release
android-build-team Robot [Mon, 30 Dec 2019 00:09:13 +0000 (00:09 +0000)]
Snap for 6102350 from 55a28df6f2f7abed00d8d16c96e01df84af7e526 to qt-qpr2-release

Change-Id: I0264864c715ed4946f5b38bbb2b72f16a6c639d0

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 29 Dec 2019 23:00:10 +0000 (15:00 -0800)]
Import translations. DO NOT MERGE

Change-Id: I4397ed43be999a7e5379baf5661913455b7e098e
Auto-generated-cl: translation import

4 years agoSnap for 6101850 from 20fd656400405016fed74e035da7dbd99c34e29b to qt-qpr2-release
android-build-team Robot [Sun, 29 Dec 2019 00:03:39 +0000 (00:03 +0000)]
Snap for 6101850 from 20fd656400405016fed74e035da7dbd99c34e29b to qt-qpr2-release

Change-Id: I17ac821ca01635418eab1e6f165072a225cbc0f9

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Dec 2019 23:06:28 +0000 (15:06 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id836f5783ad2d8a4ffa9f3f0be7a75c400af7e38
Auto-generated-cl: translation import

4 years agoMerge changes I9a0bf442,Id4c7c086 into qt-qpr1-dev
Etan Cohen [Sat, 28 Dec 2019 01:30:18 +0000 (01:30 +0000)]
Merge changes I9a0bf442,Id4c7c086 into qt-qpr1-dev

* changes:
  [WIFI] Protect broadcasts used by the Wi-Fi framework
  [WIFI] Protect broadcasts used by the Wi-Fi framework

4 years ago[WIFI] Protect broadcasts used by the Wi-Fi framework
Etan Cohen [Fri, 27 Dec 2019 20:47:18 +0000 (12:47 -0800)]
[WIFI] Protect broadcasts used by the Wi-Fi framework

Make sure the broadcasts used by the Wi-Fi framework are protected:
i.e. can only be transmitted by privileged components (as opposed to
any 3rd party app).

Broadcast: Suggestion API

Bug: 146642727
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Merged-In: I9a0bf4428774b13cc6414a223f378e09341a6a55
Change-Id: I9a0bf4428774b13cc6414a223f378e09341a6a55

4 years ago[WIFI] Protect broadcasts used by the Wi-Fi framework
Etan Cohen [Mon, 23 Dec 2019 22:39:54 +0000 (14:39 -0800)]
[WIFI] Protect broadcasts used by the Wi-Fi framework

Make sure the broadcasts used by the Wi-Fi framework are protected:
i.e. can only be transmitted by privileged components (as opposed to
any 3rd party app).

Broadcast: MAC randomization

Bug: 146642727
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Id4c7c0868ced4b3edb8752e10c0350c190cee862
Merged-In: I9a0bf4428774b13cc6414a223f378e09341a6a55

4 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 27 Dec 2019 19:50:01 +0000 (11:50 -0800)]
Import translations. DO NOT MERGE

Change-Id: I1571b49977856a781e697c3d868217b23c1da05c
Auto-generated-cl: translation import

4 years agoSnap for 6099496 from 870f67cc63ab5bbf56091e072fe592dd5844402e to qt-qpr2-release
android-build-team Robot [Fri, 27 Dec 2019 02:07:03 +0000 (02:07 +0000)]
Snap for 6099496 from 870f67cc63ab5bbf56091e072fe592dd5844402e to qt-qpr2-release

Change-Id: Ieaa9b9c25cdc609f0f975d6b0a1047a9d97edee0

4 years agoMerge "Camera: Fix typo when comparing display size height" into qt-qpr1-dev
TreeHugger Robot [Thu, 26 Dec 2019 17:16:35 +0000 (17:16 +0000)]
Merge "Camera: Fix typo when comparing display size height" into qt-qpr1-dev

4 years agoSnap for 6095135 from cbd20f5fd0b7266ff08908edca4bf8c14b704713 to qt-qpr2-release
android-build-team Robot [Tue, 24 Dec 2019 02:18:21 +0000 (02:18 +0000)]
Snap for 6095135 from cbd20f5fd0b7266ff08908edca4bf8c14b704713 to qt-qpr2-release

Change-Id: I53d1c6166301e28758e2750a8d6e3c838ee1b3be