Commit Graph

10936 Commits

Author SHA1 Message Date
TreeHugger Robot
66f8f5357c Merge "Add sampling interval debug entry." 2019-03-08 17:34:33 +00:00
TreeHugger Robot
30579cd805 Merge "Introduce ApplicationInfo.getAllApkPaths()." 2019-03-08 16:32:07 +00:00
Olivier Gaillard
5d339ddc9b Add sampling interval debug entry.
Test: atest BinderCallsStatsTest LooperStatsTest
Change-Id: I5a5d836b2a4d2160196caedeb5a01cccceaa2258
2019-03-08 14:32:02 +00:00
Felipe Leme
0879ad0bd4 Merge "Don't destroy service when the bind connection died." 2019-03-08 03:44:51 +00:00
Felipe Leme
817b5e12f9 Don't destroy service when the bind connection died.
Otherwise it won't reconnect...

Bug: 126807984
Test: manual verification

Change-Id: I54c7fc244672d38f387f786ea13a7ffb54aca44b
2019-03-07 14:46:59 -08:00
Olivier Gaillard
1c56b4d293 Fix a bug that cause binder calls to be underreported.
Test: atest BinderCallsStatsTest
Change-Id: I04805eae2d8ea7679d770f4392960850394a00a2
2019-03-07 22:28:01 +00:00
Torne (Richard Coles)
1aaae10e77 Introduce ApplicationInfo.getAllApkPaths().
Add an internal method to ApplicationInfo to get all APK files that may
be required by an application. This moves assumptions about how apps are
constructed out of Zygote.allowAppFilesAcrossFork and into a more
appropriate place where it can be shared.

Bug: 124116212
Test: atest android.webkit.cts.WebViewTest
Change-Id: I79add98c4922c4f97263bff78cf808bc38274755
2019-03-07 13:59:45 -05:00
Beth Thibodeau
ff0e66270b Merge "Fix position of expand/collapse button" 2019-03-07 15:06:11 +00:00
Kiyoung Kim
9b56c81652 Merge "Add product apk support from libnativeloader" 2019-03-07 05:46:26 +00:00
Selim Cinek
891640397d Merge "Remove the ambient group layout" 2019-03-07 02:56:37 +00:00
TreeHugger Robot
20496370c6 Merge "Fixed Content Capture and Augmented Autofill whitelist." 2019-03-06 23:53:35 +00:00
Selim Cinek
7927c73ffd Remove the ambient group layout
Because the layout looks pretty much the same as when awake, we're
going back to the regular group layout.

Test: atest SystemUiTests
Fixes: 127697886
Change-Id: I5eafaf74435151faab13d8f84850b4939196edd9
2019-03-06 15:21:39 -08:00
TreeHugger Robot
863affdeef Merge "Sharesheet - Lock direct share row" 2019-03-06 23:04:14 +00:00
Beth Thibodeau
837bfc2c51 Fix position of expand/collapse button
Example screenshots at https://drive.google.com/open?id=1rKBY9uj54KbeSr-M4Rd4aKG9FQQYL8qm

Bug: 124522176
Test: verified that button does not move between collapsed and expanded
layouts

Change-Id: Ic7cbe3b78aa439cec8f10b532b80f863bb6c283c
2019-03-06 17:30:11 -05:00
George Hodulik
3179289522 Merge "Revert "Set Sharesheet to use AiAi for DirectShare targets."" 2019-03-06 22:06:52 +00:00
TreeHugger Robot
ab5598dfa7 Merge "Display browsable layout for http/s scheme intents" 2019-03-06 21:23:23 +00:00
Felipe Leme
0f0b1d383d Fixed Content Capture and Augmented Autofill whitelist.
Bug: 125348180
Test: atest CtsContentCaptureServiceTestCases AugmentedLoginActivityTest

Change-Id: Ia7a9b1ebbd14c0011a4806bcf5ba87f438510129
2019-03-06 12:08:39 -08:00
TreeHugger Robot
54a2b0a924 Merge "Allow users to set the default browser via ResolverActivity" 2019-03-06 19:46:45 +00:00
Matt Pietal
cdfcd9a7ba Sharesheet - Lock direct share row
Add single direct share row this is always present, prepare for
expanding to 2. Show message about missing direct share targets
if none are found in the first XX seconds. Use animations to
transition between the states. Add border dividers between sections

Bug: 126565347
Test: atest ChooserActivityTest
Change-Id: I31963375530433c3d6e9069402b5a20df5766034
2019-03-06 14:42:50 -05:00
George Hodulik
2bd58810f6 Revert "Set Sharesheet to use AiAi for DirectShare targets."
This reverts commit 4f270f0325.

Reason for revert: b/127305716

Change-Id: I46a9dba07d0e1b15af78ab185d873a045c0e7423
2019-03-06 19:22:10 +00:00
Ashley Rose
0be2720c5b Merge "Add @InspectableProperty annotations to LayoutParams" 2019-03-06 18:38:18 +00:00
Adam He
682ea3ccfd Merge changes from topic "aa_whitelist"
* changes:
  Check for empty arguments in setWhitelist().
  Implemented a WhitelistHelper for whitelisting packages/activities for Augmented Autofill and Content Capture.
2019-03-06 18:31:59 +00:00
shafik
0c7c5d59f8 Display browsable layout for http/s scheme intents
Displays Settings button instead of always button for all intents that
have http or https scheme, as opposed to only intents that have
BROWSABLE as category.
This fixes an inconsistent and confusing behaviour that users were
experiencing, as sometimes they saw the Always button and sometime the
Settings button.

Fixes: 126499502
Test: open a mail.google.com from Facebook Messenger - used to display
Always button and now displays Settings button
Test: use shell command to send https intent without BROWSABLE category
- used to display Always button and now displays Settings button

Change-Id: I1084fd716ba8e584c2b17d8fe1500dbc641cab46
2019-03-06 17:12:27 +00:00
shafik
34064c39bd Allow users to set the default browser via ResolverActivity
The resolver prompt now redirects users to the Default Browser page when
they tap a browser app and choose [Settings]. In that page, they can
choose the default browser (even if the tapped browser app is already
the default browser).

Bug: 124721947
Test: manual
Change-Id: I31518510fa382bd49c61ee494bf585dec0c762f8
2019-03-06 15:53:18 +00:00
Tony Mak
9a3c1f1dfe Configurable NAS by using DeviceConfig
The latest plan is only system apps with a certain privilege permission
could become NAS. And DeviceConfig could specify any of these valid
candidate to be the default NAS.

So the logic would be like this:
1. If user has set the NAS manually, NMS will persist the user_set bit
   and never mess with it.
2. If it is not the case, NMS will try the NAS defined in DeviceConfig,
   and then the one defined in config.xml

Also added some new shell commands for easy debugging.

Test: atest NotificationAssistantTest.java
Test: atest NotificationManagerServiceTest.java
Test: Use "device_config put" command to set a valid one. Observe that
      NAS is updated and persisted across reboot.
Test: Repeat the command with an invalid one, observe that NAS is not
      updated.
Test: Go to settings, set a NAS, and repeat the device_config command,
      observe that NAS is not changed.
Test: Go to settings, set NAS to be none. Reboot the device, and "none"
      is persisted.

FIXES: 123566150

Change-Id: Ibf8e498944afd5d1fa8659a856a8abdcce41f092
2019-03-06 13:27:53 +00:00
Adam He
70ebc5a508 Check for empty arguments in setWhitelist().
Bug: 125348180
Test: atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:com.android.internal.infra.WhitelistHelperTest
Change-Id: I9c2296ebe2762e97f03350b365b148429b15ab60
2019-03-05 14:51:30 -08:00
Mathieu Chartier
77bd12369e Fix logic for use_app_image_startup_cache flag
The logic was only there for the system server before, it is now
moved to ProcessList (the correct location).

Test: manual
Bug: 123524494
Bug: 124437687

Change-Id: Ie259a13617981bcbced144f1514c43f32d06102b
2019-03-05 14:12:01 -08:00
Adam He
6240eab185 Implemented a WhitelistHelper for whitelisting packages/activities for Augmented Autofill and Content Capture.
Fixes: 125348180
Test: atest android.contentcaptureservice.cts.LoginActivityTest
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest
Test: atest FrameworksCoreTests:com.android.internal.infra.WhitelistHelperTest
Change-Id: I59c32d5a05c9c1ee813395545507fc8eaee47745
2019-03-04 16:15:32 -08:00
Ashley Rose
de3b4a78cd Add @InspectableProperty annotations to LayoutParams
Change-Id: I69eb71bec8bbf36564e178a3ddf4be9e00e2d531
Fix: 126913705
Test: m framework
2019-03-04 16:46:15 -05:00
Svetoslav Ganov
2a980300bc Merge "Slice and dice app ops - framework" 2019-03-04 17:22:20 +00:00
Susi Kharraz-Post
915031d26c Merge "Add logging for reshuffle of direct share targets" 2019-03-04 17:19:30 +00:00
Susi Kharraz-Post
fcec993fe5 Add logging for reshuffle of direct share targets
Direct share targets can update after they have been initially
displayed. This modifies the logging that was there to indicate when the
direct targets are displayed for the first time and when they are being
reordered.

Bug: 126920281
Test: successfully ran atest ChooserActivityTest
Change-Id: I1d16c0fb2b5631473879ba9758128e6f482567c2
2019-03-04 08:54:56 -05:00
Olivier Gaillard
2602d4abe7 Merge "Decreases the maximum cardinality of binder/looper stats." 2019-03-04 13:54:19 +00:00
TreeHugger Robot
f278d267f5 Merge "Change default values for thread collection" 2019-03-04 10:53:00 +00:00
Svet Ganov
af189e3371 Slice and dice app ops - framework
Appops can be peformed by an app on its behalf and also on
behalf of another app, i.e. an app can perform a proxy op
and blame the work on another app. The proxy mechanims is
for apps doing work on behalf of other apps where GCore is
one example since the app doing the work needs to check if
the caller has access to the functionality - specifically
the app op backing a runtime permission in case the calling
app does not support runtime permissions.

Apps being able to blame work on other apps is a problem now
that we would be using historical op data to show permission
usage in the UI as apps can start blaming each other to gain
a competitive advantage.

To address the issue we are adding APIs for querying portions
of the app op data - last and historical. One can now get
the ops for work the app did for itself, work the app blamed
on other apps if the app is trusted, work the app blamed on
other apps if the app is not trusted, work other trusted apps
blamed on the app, work other untrusted apps blamed on the app.
A trusted app is one holding the permisison to update app op
stats which is privileged.

The data slicing API allow us to show in the UI only the trusted
poriton of the data which is work the app did for itself, work
trusted apps balmed on the app, and work the app if untrusted
blamed on other apps.

Test: atest CtsAppOpsTestCases

bug:111061782

Change-Id: I9a2bcaea272cb06f38ba742cf601a6dc3b287d5e
2019-03-01 21:12:16 -08:00
TreeHugger Robot
1f6a9ee7b1 Merge "Implement UX for IME with freeform windows" 2019-03-02 04:59:33 +00:00
Christian Wailes
adb444f742 Merge "Renamed blastula to unspecialized app process (usap)" 2019-03-02 01:38:11 +00:00
Evan Rosky
0d654cb29c Implement UX for IME with freeform windows
UX desires for this are: when IME appears for a freeform window,
1. Temporarily push the freeform window up to make room for IME
1a. However, do not push the top of the window off the screen
2. Any part of the window left under the IME becomes inset and
   thus handled by adjustPan or adjustResize.
3. Return the window to its original position when IME closes.
3a. Unless the window is moved while IME is up.
4. If the window is moved around while IME is up, do not change
   the content (ie. don't adjust insets).

This CL includes some fixes to related bugs as well:
- During adjustPan, the caption is now "unscrolled" so that
  it remains at the top of the window. Previously, the caption
  would be scrolled out of the window along with the content.
  This is done via setTranslation so it won't trigger relayout.
- The starting bounds of task-drag uses the task bounds instead
  of dim bounds. Dim bounds was based on the visible frame
  which excludes the IME inset; so, it was causing the window
  to be resized if the user tried to drag the window while IME
  was open. Going through the history, this was done to resolve
  some issue with resizing dialog activities. I've verified
  that behavior in this case is the same before and after this
  CL.

Bug: 119375946
Test: Manual since UX: open desktop display, open apps that
      use IME (both adjustPan and adjustResize).
      Also, atest WindowFrameTests
Change-Id: Id81d0b0a5f82be28fabed3ad22e713fc4fa7536d
2019-03-01 16:03:04 -08:00
Chris Wailes
7e797b6f26 Renamed blastula to unspecialized app process (usap)
Bug: 123017829
Test: make & boot & launch apps
Change-Id: Icfb9f8f4ebabacece817735d60d232cf3afb4e08
2019-03-01 13:18:48 -08:00
George Hodulik
09207ac8a5 Merge "Set Sharesheet to use AiAi for DirectShare targets." 2019-03-01 19:38:10 +00:00
TreeHugger Robot
ae912825bc Merge "Add a whitelist to control packages that can use Bugreporting API" 2019-03-01 19:36:23 +00:00
Nikita Ioffe
07964b49ac Add a whitelist to control packages that can use Bugreporting API
Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
2019-03-01 16:26:03 +00:00
Misha Wagner
d250dd8da9 Change default values for thread collection
Test: atest KernelCpuThreadReaderTest#testUidPredicate_zero
Bug: 126511586
Change-Id: Ie60cda12db56f59d2a871660d64ed0db813f8cd7
2019-03-01 16:06:47 +00:00
Olivier Gaillard
45b6865efd Decreases the maximum cardinality of binder/looper stats.
Test: atest BinderCallsStats LooperStats
Change-Id: Ia08ea19efe148c9eea6206020e55a8a45e044faa
2019-03-01 13:39:24 +00:00
TreeHugger Robot
47c4d9d688 Merge "Add thread atom that contains sum of filtered thread CPU usage" 2019-03-01 13:33:53 +00:00
Andrei-Valentin Onea
b9fadbfc94 Merge "Add statslog logging for hidden api usage" 2019-03-01 11:47:15 +00:00
Jeff Sharkey
cb4dd2791a Merge "Translate selection arguments that are paths." 2019-03-01 06:28:24 +00:00
Jeff Sharkey
bffd25082c Translate selection arguments that are paths.
Also migrate MediaProvider logging to more general-purpose location
on the ContentProvider.Transport, where we can log exact input/output
values to aid debugging.

Bug: 124347872
Test: manual
Change-Id: I6aba60879ded4e0892d2d1cdd717c23cebaaabd8
2019-02-28 16:39:30 -07:00
Beth Thibodeau
eab4ddeb15 Add flag to control compact seekbar visibility.
Test: `adb shell device_config put systemui compact_media_notification_seekbar_enabled true`
and observed that seekbar appeared on the next layout, or disappeared if set
back to false.
Bug: 123698590

Change-Id: I0f2469aa17e66fb0d5bedce93582fc45812a0c30
2019-02-28 15:08:11 -05:00
Andrei-Valentin Onea
5ac2de02f6 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 16:44:23 +00:00