Commit Graph

13017 Commits

Author SHA1 Message Date
Wale Ogunwale
ecf66058ea Added OWNERS file for inputmethod
Bug: N/A
Test: N/A
Change-Id: I0dd7bad55dec4f2332d7819d4ccb1e0da7a2d9b7
2020-02-13 13:14:24 -08:00
Antoan Angelov
be26a656e7 Merge "Autolaunch when active tab has 1 target and inactive tab has 0 targets." 2020-02-13 14:33:24 +00:00
Menghan Li
50c2ca9b41 Merge "Refines the hardware shortcut landing dialog behavior" 2020-02-13 06:28:42 +00:00
Alex Buynytskyy
1580e1c391 Merge "Signature streaming from local file, property to disable incremental." 2020-02-12 22:31:01 +00:00
arangelov
f6986d4809 Autolaunch when active tab has 1 target and inactive tab has 0 targets.
Also fixes bug where we autolaunch without waiting for the inactive
tab list to load. If the inactive tab's targets are 0 since they
are not loaded, if the active tab's targets are 1, it would
incorrectly autolaunch.

Test: manually tried attaching a file in gmail with no cross-profile
intents
Fixes: 149383054
Change-Id: I1a2455088762dce7265ae4b7ad2c6bc8b217f99e
2020-02-12 22:12:18 +00:00
Adrian Roos
c80cc85c05 Merge "InsetsAnimation: Fix crash if disabling decor fitting before view is attached" 2020-02-12 21:17:54 +00:00
Alex Buynytskyy
8e9e6a3255 Signature streaming from local file, property to disable incremental.
+Tests

Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest
Bug: b/136132412 b/133435829

Change-Id: I826900e120c72e7cdd0549c70da28d817982dcd3
2020-02-12 11:24:47 -08:00
Philip P. Moltmann
0946037764 Merge "Revert "Revert "Activity start: Send featureId from context->AppOpsManager""" 2020-02-12 18:52:23 +00:00
Philip P. Moltmann
ee29509ecd Revert "Revert "Activity start: Send featureId from context->AppOpsManager""
This reverts commit e7421e92d9.

Exempt-From-Owner-Approval: revert-revert and only piping anyway
Test: 1:1 revert-revert
Bug: 136595429
Change-Id: I44e5fa2019f5604c6e2c08bdd1967129c64a90a7
2020-02-12 18:51:53 +00:00
TreeHugger Robot
0fe79c3fe2 Merge "Revert "System API used by telephony to bind to WapPushManager app."" 2020-02-12 18:23:59 +00:00
Florian Mayer
fab4628666 Merge "Do not disable tracing in zygote." 2020-02-12 17:28:07 +00:00
Florian Mayer
e38797be84 Do not disable tracing in zygote.
We now use the sequence number of the atrace tag rather than a Binder
transaction, so zygote can observe changes to the tags.

Test: m; flash; adb shell atrace dalvik | grep hprof
Bug: 137366208
Bug: 147667830

Change-Id: I50e32a19c538dd255097c035836504b4746b172b
2020-02-12 16:01:16 +00:00
Antoan Angelov
d60e103d80 Merge "Add empty state screens." 2020-02-12 14:25:02 +00:00
arangelov
590fba384a Add empty state screens.
The added screens are for the following scenarios:
- No resolved apps on the visible tab
- Sharing not enabled by admin for the visible tab for both
directions, work->personal and personal->work
- Work profile is disabled

Other changes in this CL:
- Make the intent resolver height suitable for the empty states
- Handle landscape mode gracefully by hiding the content preview
if the tabs are shown
- Show the content preview view as part of the list view if there
are no tabs present, and above the tabs if tabs are present
- Remove elevation if showing the tabbed view

What's left:
- Finalize strings

Test: manually tested all conditions for the empty state screens
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest
Bug: 142537267
Bug: 142538125

Change-Id: I4e5ab5fa368d2b907e3fa74b00a82d8739e4f229
2020-02-12 12:22:20 +00:00
menghanli
e83358b71b Refines the hardware shortcut landing dialog behavior
Let user can re-show if user click "turn off shortcut" when long press volume key.

Bug: 142529032
Test: Manuel test
Change-Id: I6fbcabcde07706999459c90318d2237b781431e8
2020-02-12 11:17:38 +08:00
Adrian Roos
ec8ac6ba2e InsetsAnimation: Fix crash if disabling decor fitting before view is attached
Bug: 149341851
Test: atest WindowTest
Change-Id: I6a688c493e79c0e95037dcc690c92fb33049dc95
2020-02-12 02:26:43 +00:00
PETER LIANG
0b2c26e421 Merge "Implement and add the bounce fragment type into shortcut menu." 2020-02-12 01:30:59 +00:00
Fiona Campbell
004e36da64 Merge "Add support for brightness as a float" 2020-02-11 18:51:02 +00:00
Peter_Liang
72048e32b2 Implement and add the bounce fragment type into shortcut menu.
Implementation for the bounce fragment.

Bug: 149268000
Test: manual test
Change-Id: Ic8365e0b8e1a860e73a7105e30ea39d78800a9f2
2020-02-11 15:00:00 +08:00
Fiona Campbell
d4eb295196 Add support for brightness as a float
Change the framework to handle brightness as a float rather than an int.

Test: AutomaticBrightnessControllerTest
BrightnessConfigurationTest
BrightnessMappingStrategyTest
BrightnessUtilsTest
DevicePolicyManagerTest
DisplayManagerServiceTest
DisplayTest
DozeScreenBrightnessTest
PowerManagerTest
PowerManagerVrTest
SettingsProviderTest

Exempt-From-Owner-Approval: Changing param from int to float

Change-Id: I413641cd987c5ec8f82753c0388a33f85a9682de
2020-02-10 23:44:40 +00:00
Ben Lin
04c83f6d87 Implement stretch-free resizing for PIP (input side).
This is a feature of two components:
1) Input code that takes user input around the PIP window border and
starts resizing
2) The actual resizing of the PIP task/stack that currently lives in WM,
but will live in SystemUI once migration is done to using Task Organizer

The CL only takes care of #1, the input side living in SystemUI.

Bug: 111426176
Test: Manually drag the corner of PIP window

Change-Id: If4b5e6ea5c482f4fa6eb571b441cf9e6966fbf4b
2020-02-10 15:20:38 -08:00
Meng Wang
9c99325b87 Revert "System API used by telephony to bind to WapPushManager app."
This reverts commit e6a40697e1.

Reason for revert: API review comments

Bug: 148179277
Change-Id: I729e1c27492b25cfcdb4244e294672ba34a7e7ea
2020-02-10 14:42:41 -08:00
Philip P. Moltmann
41308eced1 Merge "Revert "Activity start: Send featureId from context->AppOpsManager"" 2020-02-10 16:31:33 +00:00
Philip P. Moltmann
e7421e92d9 Revert "Activity start: Send featureId from context->AppOpsManager"
Revert "Adjust monkey to changed internal APIs"

Revert "Test featureId is correctly used in startActivity"

Revert submission 10111030-activityStarter_featureId

Reason for revert: presubmit test breakage
Reverted Changes:
Ic7056b492: Activity start: Send featureId from context->AppOp...
I8e2a07da7: Adjust monkey to changed internal APIs
I7a6af6fb1: Test featureId is correctly used in startActivity

Change-Id: I48c55a962c990b22ea49e923baa7c73b121d179b
2020-02-10 16:14:12 +00:00
TreeHugger Robot
f0e9300080 Merge "Statsd logging of notification cancels." 2020-02-09 20:37:30 +00:00
Philip P. Moltmann
6e406c8ae7 Merge "Activity start: Send featureId from context->AppOpsManager" 2020-02-08 22:54:50 +00:00
Philip P. Moltmann
9c5226fe36 Activity start: Send featureId from context->AppOpsManager
The expected usage pattern for noteOp is to get the
Context#getOpPackageName() and Context#getFeatureId() in the calling app
and the call

noteOp(callingPackageName, Binder.getCallingUid(), callingFeatureId)

As the featureId parameter is new this parameter has to been piped all
through from the ...Manager classes running in the app all way deep into
the bowels of the system server.

There is a special featureId==null for the "default" feature. This is
used in two cases:
- In case the system server (packageName == null || packageName ==
  "android") makes a call
- In the case there is no caller. In this case I left annotations in the
  code to make clear that the default feature is used

Raw binder interfaces (defined in AIDL files) are not supposed to be
used by apps. Still historically this has happened and we ended up with
@UnsupportedAppUsage tags in these files. Also AIDL does not support
two methods with the same name but different parameters. I.e. in the
case when I had to add a paramater to a method tagged as UnsupportedAppUsage I
- created a new method ...WithFeature with the additional paramter
- set a maxTargetSDK for the old method and mention the public API to
  use in the deprecation method
This is really not pretty. Once there is no more app using the old
internal API this hack can be removed.

Additionally this change removed all internal calls to
AppOpsService.noteOperation and AppOpsService.checkOperation and
replaces them with the public API equivalent. This sometimes means to
move the resolution of the mAppOpsManager to be lazy.

Exempt-From-Owner-Approval:: Just piping through arguments
Bug: 136595429
Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/am/
      atest CtsAppOpsTestCases added test to cover activity start
      atest WmTests
Change-Id: Ic7056b492cb1c9a79158e6c2b4864898a0eb5b2a
2020-02-08 22:53:43 +00:00
Ben Lin
ec10bfa32d Merge "Refactor TaskPositioner resizing logic into a shareable class." 2020-02-08 05:51:03 +00:00
Songchun Fan
4889c7a823 Merge "Incremental native lib extraction" 2020-02-07 23:32:00 +00:00
TreeHugger Robot
2f2cae9438 Merge "Fix tag skip and add tests for component-override" 2020-02-07 23:28:57 +00:00
Ryan Mitchell
1ba81d6fcf Fix tag skip and add tests for component-override
Add SystemConfig parsing tests for component-override. Also fix an
issue where component-override causes the next tag to be skipped.

Bug: 148297212
Bug: 138458609
Test: atest SystemConfigTest
Change-Id: Ifc0d02f705f3f0ffe710729310779a1d41226acb
2020-02-07 14:13:41 -08:00
Will Brockman
75c6057193 Statsd logging of notification cancels.
Logs notification cancel only if the notification was in fact posted.

Uses the UiEventReported framework.  Tweaked that framework to handle
null InstanceIds better.

Bug: 146488473
Test: atest NotificationManagerServiceTest BuzzBeepBlinkTest RoleObserverTest
Test: statsd_testdrive 90 244
Change-Id: Ifd6946ce64c3a09f8cac436bb7087ec56521486c
2020-02-07 16:03:49 -05:00
Antoan Angelov
c0fce3043e Merge "Change color of the tab underline to match the UX mocks." 2020-02-07 21:03:27 +00:00
Songchun Fan
0f8b6fe950 Incremental native lib extraction
Basically we configure all the lib files inside Incremental Service,
e.g., create lib dirs, make lib files, extract original
lib file data from zip and then write data to the lib files on incfs.

Test: manual with incremental installation
BUG: b/136132412 b/133435829
Change-Id: I7544d2e78bcf3bdd76ce4c0766ec31ff13fd2011
2020-02-07 11:35:48 -08:00
Songchun Fan
623777c2c5 Merge "Refactor to prepare for incremental native lib extraction" 2020-02-07 19:20:11 +00:00
arangelov
a6f73b83a8 Change color of the tab underline to match the UX mocks.
Even though the color can be changed by updating
Theme.DeviceDefault.ResolverCommon's colorControlActivated,
that also changes the background color when selecting a
list item in the resolver list. Instead, we change only
the tab-specific styling.

Fixes: 149085716
Test: manual
Change-Id: I9c3399828048ffe71db5e15d09c5cad1fd205d0d
2020-02-07 19:07:33 +00:00
Ben Lin
2e306af241 Refactor TaskPositioner resizing logic into a shareable class.
So this can be used by other resizing not done by the framework (e.g.
PIP resizing done via SysUI).

Bug: 147361175
Test: Compile
Change-Id: I0010b292af5ea48e4303a4faaf9c0bbe49d5d64f
2020-02-07 10:27:30 -08:00
Peter_Liang
9e3fe0c513 Add clickable attribute into list item view version 2.
Root cause: can't click item to trigger function.
Goal: set clickable to true when legacy type service item is disabled status.

Bug: 148834576
Test: manual test
Change-Id: I4788711e49e507bdc50e3c29681d8461d3f5e1ef
2020-02-07 12:10:27 +08:00
Songchun Fan
03f92b2ab9 Refactor to prepare for incremental native lib extraction
Easier for follow up CLs to do make incremental-specific changes.

Test: atest CtsExtractNativeLibsHostTestCases
BUG: b/136132412
Change-Id: I69f05b4779fb229597fe3140bb117db28fbac938
2020-02-06 17:34:00 -08:00
Alex Buynytskyy
d8b25b838f Incremental Delivery: Add device feature.
Feature is present if ro.incremental.enable set to true.

Test: builds
Bug: b/136132412 b/133435829

Change-Id: I99ad307cbd3428e0b3964a369930658ee1c8ac0f
2020-02-06 14:05:55 -08:00
TreeHugger Robot
75e65fa6bc Merge "Add the tabs height when determining the height of the share sheet" 2020-02-06 15:22:21 +00:00
Narayan Kamath
85e2378965 Merge "Reland: Rework platform version to hide codenames." 2020-02-06 10:51:15 +00:00
Dianne Hackborn
db0074542c Reland: 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
Exempt-From-Owner-Approval: Relanding change with zero delta in this project.
Change-Id: I4407df40151d884293fa9d301a401b65bedb5527
2020-02-06 10:50:43 +00:00
Automerger Merge Worker
ea25aa5d95 Merge changes I5a01d709,I1b7da86d am: 95d9c6164b am: 3e07b3a7f3 am: f45c114c4e
Change-Id: Icf066ed0634f01597d6c4273131d9ed67f0935f9
2020-02-06 01:44:23 +00:00
Automerger Merge Worker
3e07b3a7f3 Merge changes I5a01d709,I1b7da86d am: 95d9c6164b
Change-Id: I7079ddf41c18c3c073e3a0234fbd15f40a339315
2020-02-06 01:10:49 +00:00
Benedict Wong
95d9c6164b Merge changes I5a01d709,I1b7da86d
* changes:
  Add Skeleton Ikev2VpnRunner class
  Add VpnRunner abstract class
2020-02-06 00:55:05 +00:00
arangelov
a69e67638b Add the tabs height when determining the height of the share sheet
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Bug: 142537267
Bug: 142538125
Change-Id: I056730d69163591a84d7c3b70c52a646579c8830
2020-02-05 21:25:15 +00:00
PETER LIANG
bfd6004044 Merge "Fix the accessibility event for clicking disabled item." 2020-02-05 11:15:35 +00:00
PETER LIANG
eb241932c7 Merge "Fix services don't be triggered when clicking selection item from shortcut key." 2020-02-05 09:51:32 +00:00
Peter_Liang
17234aa738 Fix services don't be triggered when clicking selection item from shortcut key.
Root cause: should call corresponding function
Goal: using performAccessibilityShortcut function from AccessibilityManager

Bug: 148779579
Test: manual test
Change-Id: Ibc3fcb77e1aef54683328d1e7a71afabccffc523
2020-02-05 09:48:37 +00:00