Commit Graph

6452 Commits

Author SHA1 Message Date
Santos Cordon
800009e985 Merge "Merge "Add delay to power-button power-off after gesture wakeup." into qt-dev am: 65cf57bf6c" into qt-dev-plus-aosp
am: d2877e3209

Change-Id: I498597d62688429c5dc7c1471c3dcdabd5a2fc19
2019-04-23 12:46:00 -07:00
Santos Cordon
d84514fddc Merge "Add delay to power-button power-off after gesture wakeup." into qt-dev
am: 65cf57bf6c

Change-Id: I063e124f45cf7d55d04217ad1123db9ce9b14bf0
2019-04-23 10:59:51 -07:00
Santos Cordon
623526b4b3 Add delay to power-button power-off after gesture wakeup.
Adds a small delay to avoid turning off the device if the user
hits the power button right after the device wakes up via a gesture.

Bug: 126560003
Test: Manual
Change-Id: I3116ce98f244e5660573d5fa764a77083aee7fc5
2019-04-23 11:55:29 +01:00
Christian Wailes
4ec10c8890 Merge "Load the default graphics driver in USAPs." 2019-04-22 23:50:36 +00:00
Tim Van Patten
22a1c5fb44 Merge "Verify Bundle is not null before using it" into qt-dev
am: 5012f5bdce

Change-Id: I9349c9d4689cd61a89e877374551b6965650ded9
2019-04-22 08:23:46 -07:00
Dan Willemsen
1e712ba975 Merge "Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" am: 644792c7d6 am: c2975a3850" into qt-dev-plus-aosp
am: 456017a60e

Change-Id: Idd6cf4c9438ba3ce43cb7219d7e6a2ba487f9635
2019-04-19 15:50:27 -07:00
Tim Van Patten
5973ec9678 Verify Bundle is not null before using it
It's possible the Bundle has not been initialized when determining if
the ANGLE dialog box should be shown, due to how early that check is
performed. This change will verify the Bundle is not null before using
it and fall back to using the Context if it is.

Bug: 130185493
Test: atest CtsAngleIntegrationHostTestCases
Test: Enable Toast Message and then atest CtsAngleIntegrationHostTestCases
Change-Id: I39f48bdf20616298c66b2bb36082149cb24e908c
(cherry picked from commit 5da6a95eab)
2019-04-19 20:31:01 +00:00
Dan Willemsen
42df3187de Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" am: 644792c7d6
am: c2975a3850

Change-Id: I2c58d6c84d01d6f62ac081bd840386d27394cb39
2019-04-19 13:12:10 -07:00
Dan Willemsen
c2975a3850 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS"
am: 644792c7d6

Change-Id: I659115cec0db8ccae778e1b842a08bb04c63e10f
2019-04-19 12:56:42 -07:00
Dan Willemsen
644792c7d6 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" 2019-04-19 19:30:50 +00:00
Alexey Kuzmin
2caff4e815 Merge "Add fallback for TEXTURE_TICK" into qt-dev
am: c87a593dee

Change-Id: I536ee2cae87549fb688ccf64cb3dbf7624b64ce6
2019-04-18 23:00:04 -07:00
TreeHugger Robot
c87a593dee Merge "Add fallback for TEXTURE_TICK" into qt-dev 2019-04-19 05:35:02 +00:00
Maurice Lam
8e1345ccb8 Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev am: 1f4e4e433d
am: eb70e381a8

Change-Id: Idfa18a3efec08ef138a2ec1b7343668fce5f4d6b
2019-04-18 20:37:31 -07:00
Maurice Lam
eb70e381a8 Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev
am: 1f4e4e433d

Change-Id: Ie81c1f7ca45906227e7f7195778bce723981b186
2019-04-18 20:27:07 -07:00
TreeHugger Robot
1f4e4e433d Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev 2019-04-19 03:11:31 +00:00
Yiwei Zhang
351e9a6bf2 Merge changes from topic "GameDriver2"
am: a88226283d

Change-Id: I632eae432db8490ae78d32b245717a6ab0861f8a
2019-04-18 17:25:47 -07:00
Cody Northrop
3bdcf72798 Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev am: 4112ec5512
am: f31151ffcf

Change-Id: I2225d29757d87fe3dc57f40aa45d48e55f5fd7ac
2019-04-18 14:46:57 -07:00
Dan Willemsen
cac5c61e24 Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS
So that CTS can handle more than one active codename.

Bug: 130764058
Test: atest CtsOsTestCases:android.os.cts.BuildTest#testBuildConstants
Change-Id: I671e28308723ee9e79ded01f12330e4efdbbbe17
2019-04-18 14:06:54 -07:00
Cody Northrop
f31151ffcf Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev
am: 4112ec5512

Change-Id: I1de0f3362f321aac31166d19706f0b8974b73a02
2019-04-18 13:22:45 -07:00
Chris Wailes
301a1c46da Load the default graphics driver in USAPs.
This patch causes unspecialized app processes to load the OpenGL driver
after they are forked.  The ZygoteProcess code will then take an
application's driver preference into account when selecting how to
launch it.

Test: m & boot & launch & inspect traces for driver loading
Bug: 130029351
Change-Id: If6fa02f9c387596162e75a685b04208b45a5c86b
2019-04-18 13:20:55 -07:00
Cody Northrop
4112ec5512 Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev 2019-04-18 19:47:07 +00:00
Yiwei Zhang
c4db14e72d Game Driver: rename GUP to Game Driver
Bug: 119221883
Test: Build, flash, boot and make RunSettingsRoboTests
Change-Id: I39724917b516b4871c6b1b1f0d30aa0f793942a4
Merged-In: I39724917b516b4871c6b1b1f0d30aa0f793942a4
2019-04-17 19:54:52 -07:00
Peiyong Lin
ac74bc8f45 [Game Driver] Add blacklist mechanism.
When a blacklist is set, we must not use driver package for those applications
on the blacklist.

BUG: 120869311
Test: Build, flash, boot. Verify with command line.
Change-Id: I1c9f10a3086007038c328a20346ffadeff1861ae
Merged-In: I1c9f10a3086007038c328a20346ffadeff1861ae
2019-04-17 16:22:33 -07:00
Yiwei Zhang
79c5356a07 GUP: Add a global property for genreal preference
This change also fixes typos and adds some missing comments

Bug: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: Ida976c4fb3d4af5ffc1d9b977f00fa9c7239a434
Merged-In: Ida976c4fb3d4af5ffc1d9b977f00fa9c7239a434
2019-04-17 15:54:48 -07:00
Svetoslav Ganov
9120f14e9e Merge "Merge "Make storage a restricted permission - framework" into qt-dev am: d21ce79b30" into qt-dev-plus-aosp
am: 9420c964a6

Change-Id: I628c1eb0e5713d0b8a7de937f4f2d5b45ac90bb6
2019-04-17 14:44:38 -07:00
Peiyong Lin
a0bd6fd610 Merge changes from topic "GameDriver"
am: e10cb9bd1c

Change-Id: I4627c998da042bfab14769455c874aae2e19b91c
2019-04-17 14:02:56 -07:00
Peiyong Lin
7d1d0c4f63 [GUP] Hard code the name of the whitelist file.
am: be09eef818

Change-Id: Ib63d6d818600961a5cba4ed2c2d33d654bd1c849
2019-04-17 13:55:43 -07:00
Peiyong Lin
4ce7aa1729 Add global property to store opt-in application package name.
am: e23f59aa5a

Change-Id: I2dcd31f5110a5f65cb52a501b2dcfc5b3de75c83
2019-04-17 13:47:55 -07:00
Peiyong Lin
7808ff2cd8 [GraphicsEnvironment] Add whitelist support.
am: 443894f8bb

Change-Id: I9353ed28aa66dbc845012bc99fd789a970e6ea09
2019-04-17 13:38:48 -07:00
Svetoslav Ganov
e837fdfb66 Merge "Make storage a restricted permission - framework" into qt-dev
am: d21ce79b30

Change-Id: Iaa8b9eca1495bd0c441d0a3cbc60222404544de3
2019-04-17 12:54:42 -07:00
Yiwei Zhang
a35e865b97 GUP: Update global property for the new dev opt
We updated the development opt in mechanism for GUP. Now we have
GUP_DEV_OPT_IN_APPS for applications selected to use GUP and
GUP_DEV_OPT_OUT_APPS for applications selected not to use GUP.

Bug: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: I52869ecf9e411a8dbdc1146f00c82023ba41bebf
Merged-In: I52869ecf9e411a8dbdc1146f00c82023ba41bebf
2019-04-17 00:17:53 -07:00
Peiyong Lin
8eeb14e639 Rename updatable graphics driver to Game Update Package.
We have rebranded this project to Game Update Package, and GUP for short.

BUG: 119221883
Test: Build, flash and boot. Verify by going to developer options.
Change-Id: If284bd3e0b29cb025833be29fa33179011c151d7
Merged-In: If284bd3e0b29cb025833be29fa33179011c151d7
2019-04-16 23:06:24 -07:00
Peiyong Lin
be09eef818 [GUP] Hard code the name of the whitelist file.
Allowing customized whitelist filename could result in inconsistency and
fragmentations in toolings.

BUG: 120870520
Test: Build, flash and boot
Change-Id: Ibe9337b358b6a67600048f1661d73574d7bea607
Merged-In: Ibe9337b358b6a67600048f1661d73574d7bea607
2019-04-16 18:35:17 -07:00
Peiyong Lin
e23f59aa5a Add global property to store opt-in application package name.
We provide a way in developer option to opt-in an application to use updated
graphics driver. To make sure we set up the graphics environment correctly, we
need to access the package name of the selected application. This patch
introduces a global property to store the package name.

BUG: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: I49dfcccf387169c072fb9345f7a50c00fcdb0737
Merged-In: I49dfcccf387169c072fb9345f7a50c00fcdb0737
2019-04-16 18:35:17 -07:00
Peiyong Lin
443894f8bb [GraphicsEnvironment] Add whitelist support.
This patch adds the ability to load whitelist from updatable graphcis driver
apk. Typically a whitelist is part of the graphics driver apk, and the name is
set by overwriting ro.gfx.driver.whitelist.0

BUG: 117241379
Test: Build, flash and boot, whitelist an app and verify.
Change-Id: Ie36ca0173a90a8e48acaca2979ab64bbf92eeaed
Merged-In: Ie36ca0173a90a8e48acaca2979ab64bbf92eeaed
2019-04-16 18:33:43 -07:00
Maurice Lam
52f378834d Make LocaleList.isPseudoLocale a public API
Test: CTS
Bug: 130636934
Change-Id: I6a9abd8a7de358cb077d9648c62fe9c0ec482720
2019-04-16 21:31:28 +00:00
Svet Ganov
d563e937f2 Make storage a restricted permission - framework
This change makes storage a soft restricted permission. When the
permission is whitelisted for an app then hodlding it allows the
app to access the full SD card as on a P device. If howerver, the
permisison is not whitelisted for an app then holding it allows
accessing the visual/aural collections in media store while the
app would run in its own isolated storage sandbox.

This change also connects the opt in/out application attribute
to how external storage is mounted remocing temporary code. The
attribute was renamed to convey that opting in legacy mode is
not somethung that is desirable or would be available in the long
run.

White at this also fix the default state of app ops for restricted
permissions to avoid allowing ops for non requested restricted
permissions to every UID as component access could skip permission
checks by cannot skip app op checks.

bug:130327036

atest CtsPermission2TestCases
atest CtsPermissionTestCases
atest CtsAppOpsTestCases
atest atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ExternalStorageHostTest
atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest

Change-Id: Ibb23cbb6a5c66d9c3823cc13562a1b903b391ffd
2019-04-16 12:34:49 -07:00
Cody Northrop
12d320a501 GraphicsEnvironment: Expose query to determine ANGLE use
Move the early logic that decides whether ANGLE should be used
to a static public function that can be queried elsewhere
without setting up the environment further.

Bug: 130029351
Test: atest CtsAngleIntegrationHostTestCases

Change-Id: I908233d46631ec91dca714bff3f8fd9341160c9e
2019-04-16 11:48:29 -06:00
Abhijeet Kaur
cefb80b9f8 Merge "Notify the caller about I/O error" am: 2f206c6270 am: 22fd8708f3
am: 03a0b26b49

Change-Id: I4f1e7be73b180a8fea771e37daf09d5891500292
2019-04-16 05:29:36 -07:00
Abhijeet Kaur
03a0b26b49 Merge "Notify the caller about I/O error" am: 2f206c6270
am: 22fd8708f3

Change-Id: I33045e638efcc6e0f700cf935d0f0e4de8ecc61d
2019-04-16 05:20:14 -07:00
Abhijeet Kaur
22fd8708f3 Merge "Notify the caller about I/O error"
am: 2f206c6270

Change-Id: I59b43aa3c092ee577833da5dc110953d4b21154d
2019-04-16 05:10:31 -07:00
Abhijeet Kaur
0af10e33f3 Notify the caller about I/O error
Call onError for caller of BugreportManager.start() if any io error
occurs during runtime.

Test: Tested manually by throwing IO exception in the code when
bugreport is being generated, onError of the callback successfully
called.
Change-Id: I9033d85d392b926041fc26a86806a370752d062d
2019-04-16 11:34:21 +01:00
Nandana Dutt
4f7400b99a Merge "Expose bugreporting service name" into qt-dev am: 8a69e0b393
am: 0f29d93db7

Change-Id: Ia334dd09d87e1ee44c63f1ee3a379ec188f88606
2019-04-12 09:49:38 -07:00
Nandana Dutt
0f29d93db7 Merge "Expose bugreporting service name" into qt-dev
am: 8a69e0b393

Change-Id: I8dfc4cddcd62a06e8a54a83b1dfb132c33f91481
2019-04-12 07:28:32 -07:00
Abhijeet Kaur
0eb2721c73 Merge "Pass valid file descriptor to binder" am: 0013d45b27
am: 83882781ac

Change-Id: I6058cc21b3c38ba8ea3a572f49ac944db36507ae
2019-04-12 06:04:31 -07:00
Nandana Dutt
8a69e0b393 Merge "Expose bugreporting service name" into qt-dev 2019-04-12 10:48:44 +00:00
Abhijeet Kaur
83882781ac Merge "Pass valid file descriptor to binder"
am: 0013d45b27

Change-Id: I034b8a273e123523bb038bf9d8a88ad4c652b328
2019-04-12 01:41:49 -07:00
Peiyong Lin
3bb41dd481 Merge "[GraphicsEnvironment] Expose API to query whether an app should use game driver." into qt-dev am: 8f0e1cddbf
am: def0cd31f2

Change-Id: I9dd5a8147f35147ac77aeb9c7bc8bfdffe2cc3c6
2019-04-11 18:08:01 -07:00
Peiyong Lin
8f0e1cddbf Merge "[GraphicsEnvironment] Expose API to query whether an app should use game driver." into qt-dev 2019-04-11 23:21:29 +00:00
Abhijeet Kaur
86311f8a53 Pass valid file descriptor to binder
screenshotFd needs to be optional in Bugreport API. For some bugreports
such as wifi,telephony, interactive etc taking a screenshot is not
required.

Initially, the API was sending invalid file descriptor to the Binder, but
that binder transaction could not be completed as Binder validates the
file descriptor to be valid and not-null.

Adding a tmp.png screenshot file to pass to bugreport API call. In a
separate CL in frameworks/native, added check that the bugreports that
don't require screenshots would not use this file descriptor value.

Bug: 128981582
Test: Tested by taking bugreports using Bugreport API in shell
Merged-In: I3233f5753506ae159c9fa591742e6b99e361039b
Change-Id: I3233f5753506ae159c9fa591742e6b99e361039b
(cherry picked from commit b462e2e499)
2019-04-11 18:11:29 +01:00