Commit Graph

12504 Commits

Author SHA1 Message Date
Hongwei Wang
41df8e465c Merge "Move rotation bounds calculation into SysUI" 2019-12-19 22:19:49 +00:00
Hongwei Wang
ebf1808abc Move rotation bounds calculation into SysUI
Also included in this CL
- Cleanup all bounds calculation in PinnedStackController
- Move PipSnapAlgorithm to SysUI

Bug: 139016833
Bug: 139016576
Bug: 145133340
Test: atest PinnedStackTests
Test: atest MultiDisplayActivityLaunchTest
Test: atest MultiDisplaySystemDecorationTests
Change-Id: Ifa0621a1cb69e76498e020aef7d8fa815df4ce48
2019-12-19 12:36:53 -08:00
TreeHugger Robot
848cc35375 Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2019-12-19 01:05:22 +00:00
Alison Cichowlas
8cf9bb61d6 Merge "Do not restart activity when pinned set changes - just re-sort." 2019-12-18 14:35:02 +00:00
Daulet Zhanguzin
71339a9b87 Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Change-Id: Ia2067fe2bd16bb53534deb6a963b3445a48e74cf
2019-12-18 14:34:12 +00:00
Ricky Wai
32e4875f6b Merge changes from topic "mount_isolate_apps_data"
* changes:
  App data directory isolation
  Pass app visible packages data directory info to zygote
2019-12-18 13:07:02 +00:00
Alison Cichowlas
bc29081628 Do not restart activity when pinned set changes - just re-sort.
Bug: 145703939
Test: Share dialog via screenshot, long press for pin, observe behavior.
Change-Id: I6e9e03b77e1486093097ea1488fa589e3c7bd482
2019-12-17 21:33:44 -05:00
Jeff Sharkey
e0ae4a4d5b Merge "Shuffling to prepare for MediaProvider APEX." 2019-12-18 01:44:59 +00:00
Jeff Sharkey
04b4ba1e15 Shuffling to prepare for MediaProvider APEX.
An upcoming change will move MediaStore to be within the recently
created MediaProvider APEX.  This means that MediaStore will need to
be fully built against @SystemApi, and so this CL adjusts APIs to
support a clean transition:

-- Listing of "recent" storage volumes and scan paths for "internal"
storage is now handled by StorageManager directly, so that partners
retain control over what is deemed recent.
-- StorageVolume now returns the MediaStore volume name and the
filesystem directory where its contents are presented to apps.
-- Conversion of legacy thumbnail "kind" values to dimensions now
happens directly inside MediaStore.
-- PendingParams and PendingSession are completely removed.
-- Contributed media APIs are completely removed.
-- Media for demo users is now surfaced as a unique StorageVolume.
-- Migrate most MediaStore APIs to accept ContentResolver, which
supports easy usage of ContentResolver.wrap().

Bug: 144247087, 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: in-place refactoring
Change-Id: I445528b2779bb37b9f2558e67a3cfc9f60412092
2019-12-18 01:35:46 +00:00
Adam He
b50bc1f669 Merge "API for autofill integration with keyboard." 2019-12-18 00:39:13 +00:00
Automerger Merge Worker
24931ee346 Merge "Remove PhoneStateLister#onOtaspChanged" am: 0d7a5dc2ea am: 6846fe997c am: de89306a0c
Change-Id: I576a3d67755efab9131dc8188d2911bdd497cf47
2019-12-17 21:50:42 +00:00
Automerger Merge Worker
de89306a0c Merge "Remove PhoneStateLister#onOtaspChanged" am: 0d7a5dc2ea am: 6846fe997c
Change-Id: I8129f2a112daeb63e23535edb5155ceb85c2ece7
2019-12-17 21:28:32 +00:00
Meng Wang
0d7a5dc2ea Merge "Remove PhoneStateLister#onOtaspChanged" 2019-12-17 21:14:06 +00:00
Nathan Harold
04eaf14fc9 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-17 20:24:50 +00:00
Automerger Merge Worker
f47a64b59d Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" am: 23019528ec am: a4c3162339
Change-Id: I263fbd69be70ccf48b0e16d00985e716060f6bfa
2019-12-17 19:20:16 +00:00
Automerger Merge Worker
67da267f24 [DO NOT MERGE] Reset mTrackingReportedValues in endSample() am: 7293dfca7c
Change-Id: Ic79aa39d2578c4625c3e92e5ba46dde7df239b0e
2019-12-17 19:13:09 +00:00
Peter Wang
23019528ec Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" 2019-12-17 19:10:24 +00:00
Winson Chiu
14610721fe Merge changes from topic "overlay-vis-remerge"
* changes:
  Move MockitoUtils to server om package
  Revert "Revert "Overlay, actor, and target app visibility handling""
2019-12-17 19:06:28 +00:00
Alexander Dorokhine
98be60dd24 Merge "Fix double-wrapping of exceptions in remote AndroidFutures." 2019-12-17 18:36:24 +00:00
Alison Cichowlas
a0540b61eb Merge "Sharesheet - App stacking." 2019-12-17 17:50:01 +00:00
Automerger Merge Worker
5d836174d9 Merge "Add new configuration loading path for apex module Cronet" am: a960204edf am: d5f5adad39
Change-Id: I76afbbbb8df96f44749889573a1b1b5bc74aa07d
2019-12-17 16:20:16 +00:00
Alison Cichowlas
19ee292575 Sharesheet - App stacking.
When an app offers more than one activity to handle Send intents,
"stack" these into a single target in the All Apps list.

Tapping this target gives a disambiguation dialog to allow the
user to choose the specific action they want.

Long-pressing this app still brings up the app pinning dialog, but
app pinning allows you to pin any of the actions.

Test: atest ChooserActivityTest
Test: manual - press/longpress targets in A-Z list
Change-Id: Ida56344c3451da80d7cbe61bac8ca2117497e59a
2019-12-17 11:09:21 -05:00
Ricky Wai
5a8fe7a028 Pass app visible packages data directory info to zygote
These information are needed to isolate apps data directory.

Only normal app zygote forks require these info, as
- system process - Does not need data isolation
- app zygote - It's for generating isolated process, so don't need
access apps data.
webview zygote - Similar to isolated process, don't need to access
apps data.

Bug: 143937733
Test: Able to see the package name, volume uuid, and inode nuber
for each visible package in zygote
Change-Id: I281e113d2a13d103c8967b37a06b639c5a5a8ff8
2019-12-17 14:24:40 +00:00
Luke Huang
5c4040ce24 Add new configuration loading path for apex module Cronet
Add an additional loading path which is used for libs permission
xml providing from Cronet apex module.

Bug: 145474221
Bug: 139397529
Test: build
Test: manual test with Cronet
Change-Id: I103539a45fe9182f84a79bfe45a6172d94068690
Merged-In: I02541eb2d4808d69ab8cb2d6a48cf8aaa39c86dc
2019-12-17 14:02:20 +00:00
Luke Huang
1414c61d29 Add new configuration loading path for apex module
Add some additional loading paths which is used for libs permission
xml providing from apex module.

Bug: 145474221
Bug: 139397529
Test: build
Test: manual test with Cronet
Change-Id: I02541eb2d4808d69ab8cb2d6a48cf8aaa39c86dc
2019-12-17 19:37:54 +08:00
Winson Chung
5de9140f92 Merge "Remove a few hard coded references to SystemUI in fw/base/services" 2019-12-17 05:41:48 +00:00
Alexander Dorokhine
3c5b567b02 Fix double-wrapping of exceptions in remote AndroidFutures.
The StrongBinder was calling completeExceptionally() with the result of get(), which caused the underlying exception to be wrapped in an extra ExecutionException.

Test: AndroidFutureTest
Change-Id: I3a74d3e2b9e325262269a5100296c0133e0336af
2019-12-16 18:48:59 -08:00
Hui Yu
7293dfca7c [DO NOT MERGE] Reset mTrackingReportedValues in endSample()
Otherwise, when next SamplingTimer.update() is called, it will take
zero as start time.

Bug: 142466892
Test: NA.

Change-Id: I04625fadd8fd8bab3ba83b8e7cd10737ad34e60b
(cherry picked from commit c7d49e01dd)
2019-12-17 00:45:31 +00:00
Nathan Harold
4d340f12c9 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
2019-12-16 16:16:51 -08:00
Meng Wang
66972daf11 Remove PhoneStateLister#onOtaspChanged
and replace with Registrant in Phone, since the callback is only used
inside telephony.

Bug: 140908357
Test: make
Change-Id: Ia86e9885f85d7f6b3698e96653add00e9b8670ed
2019-12-16 15:10:43 -08:00
Songchun Fan
13068a57ce Enable basic incremental installation
1. Skip extractNativeLibs
2. Skip native library configurations
2. Skip SELinux restorecon

Test: manual
Change-Id: I71c86325e08ceea0c05426263fd5b09413cec6be
2019-12-16 21:53:04 +00:00
Automerger Merge Worker
1fa842bd68 Merge "expose APIs for mainline telephony-sdk" am: 0bc81e1d23 am: 91c9100315
Change-Id: I4990908923e76fade72928168ae40e200ea28409
2019-12-16 21:15:46 +00:00
Chen Xu
0bc81e1d23 Merge "expose APIs for mainline telephony-sdk" 2019-12-16 20:51:04 +00:00
Adam He
bc67f2e158 API for autofill integration with keyboard.
Bug: 137800469
Test: manual verification
Change-Id: Id222500c373898d576661cacb7a1cb51061041d4
2019-12-16 12:43:01 -08:00
Xiangyu/Malcolm Chen
30e1d6bd76 Merge "Mainline: remove usage of hidden DEFAULT_PHONE_INDEX" 2019-12-16 19:36:24 +00:00
Automerger Merge Worker
1fb2a8e90c Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270 am: e3ba3689d9
Change-Id: Ied2a947b67ab365b73f454de1423caba23e89f49
2019-12-16 18:33:34 +00:00
Automerger Merge Worker
e3ba3689d9 Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270
Change-Id: I57e27f7314692bbaa882216405deca80ded92ad1
2019-12-16 18:18:36 +00:00
Tiger Huang
3a70dd663e Merge "Window Manager Flag Migration (7/n)" 2019-12-16 14:52:28 +00:00
Tiger Huang
4a7835ffb6 Window Manager Flag Migration (7/n)
Introduce new APIs in Window/WindowManager.LayoutParams for developers
to decide which types of insets at which side a window should avoid:

    setFitWindowInsetsTypes(@InsetsType int types)
    setFitWindowInsetsSides(@InsetsSide int sides)
    setFitIgnoreVisibility(boolean ignore)

The existing logic in DisplayPolicy.layoutWindowLw uses combinations of
window types, window flags, and system UI flags to decide what frames a
window should have, which is very complex, difficult to maintain, and
should be replaced with the new APIs.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
            ViewRootImplTest DisplayPolicyLayoutTests
            DisplayPolicyInsetsTests DisplayPolicyTests
            TaskSnapshotSurfaceTest
Change-Id: I06ddc9d0d2887ba4ded7bb8adbf9c9c0da4bf7b4
2019-12-16 17:08:21 +08:00
TreeHugger Robot
70b6079730 Merge "Add a whitelist to control packages eligible for rollback (1/n)" 2019-12-16 01:33:33 +00:00
Antoan Angelov
9dba368079 Merge "Call rebuildList() from sharesheet's handlePackagesChanged()." 2019-12-14 17:49:35 +00:00
TreeHugger Robot
39d4fd7077 Merge "Fix "atest ResolverActivityTest" UPDATE_APP_OPS_STATS failure." 2019-12-14 16:06:03 +00:00
Malcolm Chen
cf5a2d0ff1 Mainline: remove usage of hidden DEFAULT_PHONE_INDEX
Bug: 140908357
Test: build
Change-Id: Iccee59265dee12da46e3cb09e84e9fcf0f30ead4
2019-12-13 17:25:01 -08:00
Peter Wang
2dae34155e [Telephony Mainline] Expose MAX_NETWORK_TYPE constant
Test: Build
Bug: 140908357
Change-Id: I40cbcdfb8e77b3e01968d008f4359790c4264539
Merged-In: I40cbcdfb8e77b3e01968d008f4359790c4264539
2019-12-13 15:36:17 -08:00
Brad Ebinger
000bec9fbe Move RCS UCE out of Telephony Mainline
Telephony Mainline does not interact with UCE,
therefore it should not be included as mainline.

Test: build taimen; build coral; manual test uce
Change-Id: I743228939e648689ff9e73d9af2ffb7b90feb3b2
2019-12-13 22:17:30 +00:00
Winson Chung
f2b41770d4 Remove a few hard coded references to SystemUI in fw/base/services
Bug: 143775123
Test: atest ScreenshotHelperTest
Test: atest AlarmManagerTest
Change-Id: I2fefe2968e23bc2d06aa52266c2eeeb90f4733ee
2019-12-13 13:59:31 -08:00
Winson Chiu
2fdaf81c7a Revert "Revert "Overlay, actor, and target app visibility handling""
This reverts commit 637138dd94.

Exempt-From-Owner-Approval: Revert of revert, all necessary review will be in follow up

Reason for revert: Revert of revert for re-merge, follow up will fix test conflict

Change-Id: I6c5c3209d1fdb62cb6f733961ee8737dea4ca89b
2019-12-13 12:07:04 -08:00
Paul McLean
c613c7760f Fix "atest ResolverActivityTest" UPDATE_APP_OPS_STATS failure.
Bug: 146215372
Test: run atest ResolverActivityTest. Scan results.
Change-Id: I81311c4963b0946d34f6c610f73b603e7b821d1b
2019-12-13 11:39:10 -07:00
arangelov
42ab116a0f Call rebuildList() from sharesheet's handlePackagesChanged().
Before, rebuildList() was not called for ChooserActivity.
Now we call it via ChooserActivity.onHandlePackagesChanged() which
calls ResolverActivity.onHandlePackagesChanged().

Fixes: 145998549
Test: manually reproduced the steps in the bug
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I66ac1bf694a3241952e0e160e688cd4d9b1b477e
2019-12-13 18:19:32 +00:00
Antoan Angelov
ab83704911 Merge "Move content preview outside of the ViewPager (work tab part 2)" 2019-12-13 18:07:01 +00:00