Commit Graph

12457 Commits

Author SHA1 Message Date
Artur Satayev
785d3a03b9 Merge "Add @UnsupportedAppUsage annotations for greylist." 2019-11-19 15:05:51 +00:00
Artur Satayev
751e55114c Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.

Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
2019-11-19 15:05:35 +00:00
Alison Cichowlas
8261f2bd36 Merge "Restore app pinning." 2019-11-19 14:33:38 +00:00
Alison Cichowlas
1fd471509a Restore app pinning.
Bug: 143229724
Test: atest AbstractResolverComparatorTest; atest ChooserActivityTest
Change-Id: I71d4334c8d3beed94495b41d5264a95cbbd132ff
2019-11-19 09:31:40 -05:00
Robert Horvath
16af2395a7 Merge changes from topic "inattentive-sleep"
* changes:
  Remove inattentive sleep string translations
  Fade out inattentive sleep warning overlay
2019-11-19 09:29:07 +00:00
Chavi Weingarten
bc66f23f1a Merge "Support talkback for functions on the caption view." 2019-11-18 20:34:59 +00:00
Aran Ink
6a1fbf8462 Merge "Convert TakeScreenshot finishers Runnables to Consumer<Uri>" 2019-11-18 18:22:19 +00:00
Aran Ink
eb565fc85a Convert TakeScreenshot finishers Runnables to Consumer<Uri>
Test: Automated tests pass.
Change-Id: I431dc812903a61a862497287bfd5e4871f399002
2019-11-18 10:40:01 -05:00
Anna Trostanetski
77361b326d Merge "Make CompatConfig be package private." am: 688b3aea7c am: eec638dada
am: 57d083db3b

Change-Id: I53846ae6444b539f3955df33c586a22c6f4e79f1
2019-11-18 07:14:17 -08:00
Anna Trostanetski
57d083db3b Merge "Make CompatConfig be package private." am: 688b3aea7c
am: eec638dada

Change-Id: I7c5fec41bd74e19bffcdcbb6a096197f365936a4
2019-11-18 07:10:44 -08:00
Anna Trostanetski
eec638dada Merge "Make CompatConfig be package private."
am: 688b3aea7c

Change-Id: Id8fcdf026bc41b94a3050d9d261b41cbb97a38e5
2019-11-18 07:07:22 -08:00
Anna Trostanetski
688b3aea7c Merge "Make CompatConfig be package private." 2019-11-18 14:51:32 +00:00
Jiyong Park
de26442649 Merge "remove framework_base_subdirs" am: 46397049fe
am: 7cd8f399f7

Change-Id: I1dc1009490d3e1d26257b7490f1a44bd91b91085
2019-11-16 07:35:07 -08:00
Jiyong Park
7cd8f399f7 Merge "remove framework_base_subdirs"
am: 46397049fe

Change-Id: I910bc8f5f7266e70fe3d8549aab51c2e504298a0
2019-11-16 07:31:54 -08:00
Jiyong Park
46397049fe Merge "remove framework_base_subdirs" 2019-11-16 15:21:03 +00:00
Jiyong Park
ced28d531d remove framework_base_subdirs
Metalava no longer requires it at least for droidstubs in this
directory. Even when local_sourcepath is not set, the -sourcepath option
is set to the module directory (frameworks/base in this case), and
metalava tries to find package.html files under the directory to know if
a package is hidden or not.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 144264106
Test: m

Merged-In: Idfa2aa392ae1da9582e7691a8c06c986baad5088
(cherry picked from commit e53786e864)
Change-Id: Idfa2aa392ae1da9582e7691a8c06c986baad5088
2019-11-16 20:48:06 +09:00
TreeHugger Robot
19e6a8c5c1 Merge "remove framework_base_subdirs" 2019-11-16 08:08:52 +00:00
Jayachandran C
82e53b725a Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs" am: 337df70e17 am: 0a86ee3b3e
am: 78f84d5abe

Change-Id: I24e2c0c353f9e74a65c2e3d24a43338022b3efc4
2019-11-15 22:25:23 -08:00
Jayachandran C
78f84d5abe Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs" am: 337df70e17
am: 0a86ee3b3e

Change-Id: I2b1be68cd2eea8a4795a882933ed91dbf6ed83ee
2019-11-15 22:11:01 -08:00
Jayachandran C
0a86ee3b3e Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs"
am: 337df70e17

Change-Id: Iba519e0e11af591d93f9bca5e09aab6191240b39
2019-11-15 19:11:44 -08:00
Jayachandran C
16dce22bf5 Remove usage of Telephonymanager getDefault() and from() hidden APIs
This CL changes to use getSystemService(TelephonyManager.class)

Bug: 140768340
Test: Build
Change-Id: I1fcf2c17456f126584df359547f64c07c168aa65
2019-11-15 15:46:43 -08:00
James O'Leary
fe08abee19 [DO NOT MERGE] Convert TakeScreenshot finishers Runnables to Consumer<Uri>
am: 712eb51dc9

Change-Id: I1a5cc3ceef3f95e02abcbe86fcafd56e19aedc65
2019-11-15 14:05:59 -08:00
Hyangseok Chae
1e83f128f0 Support talkback for functions on the caption view.
Accessibility talkback feature works partially.
Support talkback for a title on caption view.

Test: manual
1. Enable Accessibility TalkBack
2. Execute application with freeform
3. Touch title on the freeform window
4. Check speech "App in Pop-up window"

Bug: 144271785

Change-Id: I5ab3cd23610f37a8b930de4710abf8ae62f65b84
(cherry picked from commit b51a68057f5d1498e3a87a10928d8377ad82acd0)
2019-11-15 21:42:47 +00:00
Adam Bookatz
b9a57da94c Merge "Introduce user types" 2019-11-15 19:15:37 +00:00
TreeHugger Robot
28c7e9c2ea Merge "Pipe through featureId from caller to permission checks in telephony code" 2019-11-15 18:18:02 +00:00
James O'Leary
712eb51dc9 [DO NOT MERGE] Convert TakeScreenshot finishers Runnables to Consumer<Uri>
Test: n/a
Bug: b/131082115
Change-Id: Ia84d034d08ff4d004fc9852dc5156d46059e8b00
2019-11-15 16:41:21 +00:00
atrost
f69bbe1a45 Make CompatConfig be package private.
All access will go through PlatformCompat Service.
This is a step towards having callbacks upon a config change, which is
needed for seLinux support.

Test: test app + adb command locally
Bug: 143539591
Bug: 143758748
Change-Id: I31d1c40e99894e77e85a8c33eb07ed9052c8e43a
2019-11-15 16:34:32 +00:00
Mark Tabry
15fb09d1e9 Merge changes from topic "VmsWestworld"
* changes:
  Add AIDL interface and puller implementation for automotive devices.
  Define new atoms for Vehicle Maps Service.
2019-11-15 15:52:24 +00:00
Robert Horvath
993e82eec7 Merge "Add setting to go to sleep after long user inactivity" 2019-11-15 15:05:15 +00:00
Martijn Coenen
c272f94077 Merge "Re-land: Reconcile Zygote process name code with Q release." into stage-aosp-master
am: 0b5937472e

Change-Id: I4edfa7f78dc60bef5d681b0ae268f1d1f1d15b03
2019-11-15 00:16:45 -08:00
Mark Tabry
9dc13578f7 Add AIDL interface and puller implementation for automotive devices.
Changes:
  - Adds hidden ICarStatsService AIDL API.
  - Adds CarStatsPuller for pulling atoms from ICarStatsService.
  - Pulls VmsClientStats via CarStatsPuller.

Bug: 141697665
Test: Manual testing on hawk using statsd_testdrive
Change-Id: I44e104d430f64b1bd3dce96e9749df79ab3d2fbf
2019-11-14 23:38:34 -08:00
Zhen Zhang
bde7b46042 Replcae ListView with RecyclerView in Share-sheet
Use RecyclerView and GridLayoutManager to replace ListView in
Share-sheet
Bug: 140502600
Test: Passed all existing unit tests in ChooserActivityTest and
ResolverActivityTest, except two known failure, setShowAtTopToTrue and
setMaxHeight in ResolverActivityTest.

Change-Id: Icca408de1c1f5a56150a0e06ed5a94f7c803de12
2019-11-14 17:32:28 -08:00
Martijn Coenen
0807f15eba Re-land: Reconcile Zygote process name code with Q release.
Re-landing due to merge from staging branch reverting fix.

Some Zygote code that was pushed to AOSP master is different from the
pushed Q release. In particular, a call to set the process name for a
Zygote child was missing, causing an app zygote test to fail.

Bug: 139535125
Test: atest android.app.cts.ServiceTest#testAppZygoteServices
Change-Id: I9cb47cea2295dd6c7df16722d3bb474185b7dc6b
Merged-In: Ice3eb966a88e6de5bc8834b60b54bcac31bf31db
2019-11-14 23:48:14 +00:00
Philip P. Moltmann
33692f734f Pipe through featureId from caller to permission checks in telephony
code

A featureId is only used by runtime permissions.

Test: atest FrameworksTelephonyTests CtsAppOpsTestCases
Bug: 136595429
Change-Id: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2019-11-14 13:40:55 -08:00
Kevin Lau Fang
9b96d06072 Merge "Revert submission" 2019-11-14 20:31:09 +00:00
Kevin Lau Fang
01e16a5234 Revert submission
Reason for revert: This causes a boot issue on Taimen (b/144480969). It wasn't caught by TreeHugger due to Taimen tests being disabled due to a different lab outage (b/144350336).

Change-Id: Idc18b3531fda53257b85b81a869c00592eee83ce
2019-11-14 20:07:11 +00:00
Bookatz
029832a951 Introduce user types
Introduces the notion of 'user types' to UserManager.
Previously, users only had properties, set by UserInfo flags. We now
solidify some of these as formal user types. Each user must be of
precisely one user type. The configuration of each type is defined
in a UserTypeDetails object.

Prior 'types' - namely Guest, Restricted, ManagedProfiles, Demo, and
'normal' - that were set via UserInfo flags are now controlled via
UserType. Previous UserInfo flag methods for categorizing these are
still supported as long as no user of of more than one type.

If a user was (e.g.) previously both Guest and Demo, it is now
invalid and will be prevented from upgrading. This should not be a
problem in AOSP, where these 'types' were assumed mutually exclusive.

UserTypeDetails is sufficiently general to support future non-managed
profiles. To this end, the logic for specifying badges and their
colors/labels is contained by UserTypeDetails, and therefore
UserManager is responsible for delivering the corresponding badge
information.

Bug: 142151520

Test: added new test class UserManagerServiceUserTypeTest
Test: added additional tests in UserManagerServiceUserInfoTest
Test: added additional tests in UserManagerTest
Test: added additional tests in UserManagerServiceCreateProfileTest
Test: created UserTests to run the various pm.User*Test's

Test: atest \
  com.android.server.pm.UserTests \
  UserLifecycleTests \
  ManagedUserContentResolverTest \
  CtsDevicePolicyManagerTestCases \
  CtsMultiUserHostTestCases \
  com.android.server.devicepolicy.DevicePolicyManagerTest \
  com.android.server.am.UserControllerTest \
  CreateManagedProfileTaskTest

Test: atest com.android.server.pm.UserManagerServiceCreateProfileTest
   using adb shell getprop persist.sys.max_profiles # for 5 and -1

Change-Id: Id1183a76055e9a7610965cf40b256d1392afe6f8
2019-11-14 10:00:50 -08:00
Zhen Zhang
1406fca43a Port GridLayoutManager from library to internal widget
GridLayoutManager is ported from oc-dr1-release branch support library:
android.support.v7.widget.GridLayoutManager.java
Changes made:
AccessibilityNodeInfoCompat replaced by AccessibilityNodeInfo
Removed onFocusSearchFailed override due to lack of helper function and
class.
It will be used for RecyclerView in Share-sheet
Bug: 140502600
Test: Built successfully with the change.

Change-Id: I33905f567b9944b975a6ea829e3409322f23e67d
2019-11-13 15:29:08 -08:00
Dianne Hackborn
da0e5cef21 Merge "Rework platform version to hide codenames." 2019-11-13 23:16:03 +00:00
TreeHugger Robot
02a118de19 Merge "Rebuild list before calling useLayoutWithDefault()." 2019-11-13 17:46:01 +00:00
arangelov
bb5723332c Rebuild list before calling useLayoutWithDefault().
Fixes: 144080004
Test: manual
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I2ea56dd29012eb70dcc7ecb509647ddf65778f38
2019-11-13 13:23:13 +00:00
Dianne Hackborn
a2fe812ea0 Rework platform version to hide codenames.
The public platform version no longer can be a codename, it is
always the most recently released platform.  A new build property
and API provides either the offical version or the current codename
as appropriate.  This will avoid breaking apps that look at the
platform version while development is under a codename.

Bug:  143175463
Test: manual
Change-Id: I72975ec86ac07700dc9052245b54411fa77982b8
2019-11-12 15:55:59 -08:00
Jorim Jaggi
f081f06a48 Kill overscan insets and outsets
Also remove WindowManagerStressTest because that has been replaced
with proper perf test.

Test: Boots
Bug: 143255833
Change-Id: I1d293cda7c82d0aa1c3a6cc694c74bf7d10cc974
2019-11-12 17:49:51 +01:00
Robert Horvath
60e51fe1b9 Fade out inattentive sleep warning overlay
After long user inactivity, a warning overlay is shown that the device
will go to sleep soon unless a button is pressed.

Currently, the overlay is hidden immediately on user activity.
This causes the overlay to be dismissed on an ACTION_DOWN KeyEvent,
and the following ACTION_UP KeyEvent to be delivered to the app
underneath the overlay.
We want to consume the ACTION_UP KeyEvent, as eg. an ACTION_UP KeyEvent
for the back button causes YouTube to quit out of a currently playing
video (even if the KeyEvent is cancelled).

With this change, the overlay fades out, and during the animation
continues to receive KeyEvents.
For quick button presses, this prevents the app from seeing the
ACTION_UP KeyEvent.
For long button presses, the app continues to see key repeats
and ACTION_UP events.

Bug: 137633812
Test: 1. Set timeout lower:
         `adb shell settings put secure attentive_timeout 35000`
      2. Play YouTube video
      3. Wait for overlay to show
      4. Press back
      5. Verify: Video keeps playing, overlay disappears
Change-Id: Ie6eab2b381f3ba9638b231cfeab3b90ad349b6e8
2019-11-12 10:58:24 +01:00
Jiyong Park
e53786e864 remove framework_base_subdirs
Metalava no longer requires it at least for droidstubs in this
directory. Even when local_sourcepath is not set, the -sourcepath option
is set to the module directory (frameworks/base in this case), and
metalava tries to find package.html files under the directory to know if
a package is hidden or not.

Bug: 144264106
Test: m

Change-Id: Idfa2aa392ae1da9582e7691a8c06c986baad5088
2019-11-12 14:58:36 +09:00
Artur Satayev
756d3b447a Merge "Add @UnsupportedAppUsage annotations for greylist." am: 423c3a32d6
am: 7a565c45b1

Change-Id: I48075ef4296e0b55c0055f7364c5129bbd60e9ed
2019-11-11 09:33:13 -08:00
Artur Satayev
7a565c45b1 Merge "Add @UnsupportedAppUsage annotations for greylist."
am: 423c3a32d6

Change-Id: I5387b4742fdaf67ad3189356f2361f73969b53a8
2019-11-11 09:13:24 -08:00
Jorim Jaggi
5fdaa0c9af Merge "Remove FEATURE_SWIPE_TO_DISMISS functionality" 2019-11-11 13:10:30 +00:00
Artur Satayev
3be4d59369 Merge "Add @UnsupportedAppUsage annotations for max-p." am: 8893f158c6
am: da4d6567c2

Change-Id: Iff80c388dec2c6f8184b739be6fb38b8ec8a1a49
2019-11-08 09:49:03 -08:00
Artur Satayev
da4d6567c2 Merge "Add @UnsupportedAppUsage annotations for max-p."
am: 8893f158c6

Change-Id: I2f249063c274b54a58a24cda23f1d5a60fa14540
2019-11-08 09:38:12 -08:00