Commit Graph

468813 Commits

Author SHA1 Message Date
Kyunglyul Hyun
6e0c08b396 MediaRouter2: s/transferrable/transferable/g
It was s/[tT]ransferrable/$1ransferable/g though.

Bug: 149534504
Test: build & atest mr2 related tests
Change-Id: I7b6cbb51993a5f1673e39f590d65e057d9474315
2020-02-14 15:44:18 +09:00
timhypeng
62605904c6 Add media output group panel constant
Bug: 146813761
Test: build pass
Change-Id: I418b40ad751a96c077ba2f1ad887489720fde1af
2020-02-14 14:24:34 +08:00
Sergey Nikolaienkov
5cb6e52e81 Introduce BubbleModule and KeyguardModule
This CL is the 4th in the series of CLs which intend to "unbind" StatusBar on TV.
In order to make StatusBar really optional and thus to allow us to unbind it, we also need to make some of the classes that depends on it optional as well. For all these cases we need to move from @Inject-annotated contructors to @Provides annotated methods. For this we are introducing BubbleModule and KeyguardModule.

Change-Id: I57009153e2279078ac88c42a53d3963a96eb8452
Test: make SystemUI; atest SystemUITests
Bug: 146188087
2020-02-14 07:16:34 +01:00
Sergey Nikolaienkov
3d84cb4a45 Introduce StatusBarModule
This CL is the 3rd in the series of CLs which intend to "unbind" StatusBar on TV.
In order to make StatusBar really optional and thus to allow us to unbind it, we also need to make some of the classes that depends on it optional as well. For all these cases we need to move from @Inject-annotated contructors to @Provides annotated methods. For this we are introducing StatusBarModule, as well as StatusBarPhoneDependenciesModule and StatusBarDependenciesModule - these two provide dependecies needed to build StatusBar, but not the StatusBar itself

Change-Id: Ie3551bda7056465159f2c7fde4989e009f277304
Test: make SystemUI; atest SystemUITests
Bug: 146188087
2020-02-14 07:16:34 +01:00
Sergey Nikolaienkov
6f157bd670 Introduce StatusBarPhoneModule
This CL is the 2nd in the series of CLs which intend to "unbind" StatusBar on TV.
In order to make StatusBar really optional and thus to allow us to unbind it, we also need to make some of the classes that depends on it optional as well. For all these cases we need to move from @Inject-annotated contructors to @Provides annotated methods. For this we are introducing StatusBarNotificationModule.

Change-Id: Id56f970d21323f49e859715b6874f5cd773aa62a
Test: make SystemUI; atest SystemUITests
Bug: 146188087
2020-02-14 07:16:34 +01:00
Sergey Nikolaienkov
f6ad63293a Expand NotificationsModule
This CL is the 1st in the series of CLs which intend to "unbind" StatusBar on TV.
In order to make StatusBar really optional and thus to allow us to unbind it, we also need to make some of the classes that depends on it optional as well. For all these cases we need to move from @Inject-annotated contructors to @Provides annotated methods. For this we are expanding NotificationsModule.

Change-Id: Icccafd2170f2fdffb8412370056aab7042ffd580
Test: make SystemUI; make CarSystemUI; atest SystemUITests
Bug: 146188087
2020-02-14 07:16:34 +01:00
Kyunglyul Hyun
6945a9bb4d RouteDiscoveyPreference: Update javadoc
Added missing javadoc and updated some to clarify.
Renamed activeScan to performActiveScan.

This CL is to address issues in API review.

Bug: 149299503
Test: make api-stubs-docs-update-current-api
Change-Id: Ic8a630eb65daab190ec6e0a106c81aa6edfbf72d
2020-02-14 14:52:08 +09:00
Shu Chen
8a48bc0b1f Merge "Fixes the opacity value for the insertion handle to range {0..255}." 2020-02-14 05:50:33 +00:00
TreeHugger Robot
0cf9ed29dc Merge "Standby exemption for system gallery's backup jobs" 2020-02-14 05:43:26 +00:00
TreeHugger Robot
08b44c42d9 Merge "List most recently disconnected devices in the List" 2020-02-14 05:40:55 +00:00
Ravi Paluri
f4b38e7ff1 IMS: Add support for IMS Explicit call transfer
Test: Manual
Bug: 62170207
Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
2020-02-14 11:02:09 +05:30
Sungsoo Lim
cfa7abc12e Refactor BluetoothRouteProvider
Test: pass MediaRoute2 test
Change-Id: I3098f46f2c502c224b05217409351bc5f5860811
2020-02-14 14:23:12 +09:00
TreeHugger Robot
122c050746 Merge "Add a feature flag for contextual home v2." 2020-02-14 04:50:58 +00:00
Hyundo Moon
71416f5af6 Merge "Rename MediaRouterManagerTest to MediaRouter2ManagerTest" 2020-02-14 04:37:32 +00:00
Jacky Kao
075a8094b4 Merge "Improvement for takeScreenshot() API" 2020-02-14 04:35:01 +00:00
TreeHugger Robot
a4d20a71b3 Merge "Fixes Context Hub feature naming and documentation" 2020-02-14 04:34:23 +00:00
Chris Ye
4a58e34b6f Surface GESTURE_START and GESTURE_END constants
Make GESTURE_START and GESTURE_END public.

Bug: 146070157
Bug: 145553733
Change-Id: Icf32eb6e9e732639132a81546550208cd00a5afa
2020-02-13 20:26:48 -08:00
TreeHugger Robot
d813cd6e39 Merge "wifi: Update softap config notification changed wording" 2020-02-14 04:16:09 +00:00
Nathan Harold
5522de1af3 Convert getAdditionalPlmns to return a Set
Set support is a little weird in Java and Android.
Java doesn't support ArraySet, but Android does; Parcel
has both read/write for ArraySet, but they are @hide. Thus,
my options were limited to:
-use the hidden parcel methods
-convert between list and set in the constructor and parcel code
-convert between list and set in the getter
-maintain parallel data structures.

Using the hidden methods seemed cleanest. Since they are
@UnsupportedAppUsage they can't be credibly removed.

In addition, the HAL code doesn't understand Set<> only List<> so
I was faced with the choice of having 2 constructors or using
Collection<>, which actually works just fine and avoids changing
a hundred or so unit tests with no ill effect.

Bug: 149476549
Test: atest FrameworksTelephonyTests
Test: (cts) atest CellInfoTest
Change-Id: I9dfa5f59512f3d1305187cc383c4069ceaaf27fd
2020-02-13 19:57:59 -08:00
TreeHugger Robot
d4c62b020d Merge "Add a SchedulesProvider" 2020-02-14 03:48:23 +00:00
TreeHugger Robot
7c1f1342c1 Merge "Prevent position topmost task to top" 2020-02-14 03:38:39 +00:00
TreeHugger Robot
b7a0533f14 Merge "Force stop app if it has failures during trial launch" 2020-02-14 03:37:53 +00:00
TreeHugger Robot
368e62fbf9 Merge "Always get window insets from server" 2020-02-14 03:22:32 +00:00
TreeHugger Robot
e5aae69015 Merge "Move libstatssocket to apex" 2020-02-14 03:14:44 +00:00
Rambo Wang
c970b3f89e Merge "Introduce a new RIL request constant to support getBarringInfo." 2020-02-14 03:14:37 +00:00
SongFerng Wang
07824c6ee6 Merge "Config of LTE signal strength default value remove SNR" 2020-02-14 03:12:06 +00:00
Suprabh Shukla
0812647050 Standby exemption for system gallery's backup jobs
New media requiring backup can appear on the device without the user
directly using the gallery app. If the gallery app is responsible for
media backups, this can lead to a lot of pending backup jobs because of
the likely low-priority standby bucket of the gallery app.
We should be lenient in imposing throttling to such jobs.

Test: atest FrameworksMockingServicesTests:JobStatusTest

Bug: 148887841
Change-Id: I54a42037c335f86a9078cf15e3e8d745d03c7337
2020-02-13 19:10:31 -08:00
Eric Laurent
db1b56d9ed AudioSystem: add owner UID to setPhoneState API.
Communicate current audio mode owner UID to native service
when changing audio mode via setPhoneState.

This will be used by call audio capture restriction rules.

Bug: 148368476
Test: manual phone call tests
Change-Id: Ieb1ff01f20d4b70a4f52b6a0e320d8275d90dbfb
2020-02-13 19:01:13 -08:00
Ryan Mitchell
76e669069c Extract system partitions into standalone class
Extract the order system partition list from package manager so
OverlayConfig can reuse the PMS partition order.

Bug: 119442586
Bug: 135048762
Test: ScanTests and PackageManagerServiceTest
Change-Id: If281c5d47e3551eb635c466af6d2400c514518eb
2020-02-13 19:00:24 -08:00
Roshan Pius
45f6580b9a [automerger skipped] Merge "RELAND: NetworkRequest: Embed requestor uid & packageName" am: 3819be4271 -s ours am: f66d933b13
Change-Id: I810f30663bfe7be230b99da7d546a552c3ef078b
2020-02-14 02:25:02 +00:00
Wei Wang
9e33ab41c0 Add feature id to location dumpsys.
Sample dumpsys output:
 Reciever[961e275 listener UpdateRecord[passive android SensorNotification (1000 foreground) Request[POWER_NONE passive fastest=+30m0s0ms] null] monitoring location: true]
 At 2020-02-14 01:09:12: + passive request from android with feature SensorNotification at interval 1800 seconds

Bug: 129416976
Test: atest CtsLocationFineTestCases
Change-Id: I15dcc00aac61e47651e41fd95e08d7cdbc553b25
2020-02-14 02:22:10 +00:00
shubang
f657da2d54 Tuner JNI: time filter
Test: make; acloud create;
Change-Id: I6bd53f6831e021d14b8d5762850a083acdbcf26a
2020-02-13 18:15:56 -08:00
TreeHugger Robot
d1c394c55a Merge "Fix issue where train files would not be deleted past TTL or when over file number limit." 2020-02-14 02:12:58 +00:00
Roshan Pius
f66d933b13 [automerger skipped] Merge "RELAND: NetworkRequest: Embed requestor uid & packageName" am: 3819be4271 -s ours
am skip reason: Change-Id I207c446108afdac7ee2c25e6bbcbc37c4e3f6529 with SHA-1 3e63df535a is in history

Change-Id: Ib90134e63ac00f6b377d27d1d8f2a125a247d724
2020-02-14 02:09:17 +00:00
Nathan Harold
2fb0bc50f9 Allow Nullable Registered PLMN
API Council has noted an inconsistency
between setRegisteredPlmn() and getRegisteredPlmn().

Because other methods such as CellIdentity#getMncStr()
are already nullable, it's reasonable to allow the
registered PLMN to be null in the event that the device
isn't registered.

Bug: 149476549
Test: make update-api && make && atest NetworkRegistrationInfoTest
Change-Id: Ib38e72a6bdbaf4e1fd439e92f835daa6f87ceb73
2020-02-13 18:06:43 -08:00
Julia Reynolds
ac6a498ece Merge "Allow system listeners to unsnooze" 2020-02-14 01:58:32 +00:00
Roshan Pius
3819be4271 Merge "RELAND: NetworkRequest: Embed requestor uid & packageName" 2020-02-14 01:57:49 +00:00
Bogyun Son
bfb64dc915 [wm] Add APIs to notify task focused & task focus lost
- Let listeners know which task is going to front or back.

 onTaskFocusChanged(taskId, focused)
- calls when the task gets or loses focus.

Test: atest ActivityStackSupervisorTest#testNotifyTaskFocusChanged
Bug: 129951708
Change-Id: I92bfdb760f4c5f1db00334f4eff41fe52115b942
2020-02-13 17:56:18 -08:00
Jackal Guo
4e2e8a3e6e Merge "Support accessibility on embedded hierarchies (3/n)" 2020-02-14 01:51:30 +00:00
Hyundo Moon
e90a28e38a Rename MediaRouterManagerTest to MediaRouter2ManagerTest
Test: atest mediaroutertest
Change-Id: Id3b7f71b6dcc290fcfd20690dda2b928d864373a
2020-02-14 10:47:52 +09:00
Evgenii Stepanov
45c350c0a8 Merge changes from topic "allowNativeHeapPointerTagging"
* changes:
  Add android:allowNativeHeapPointerTagging.
  Refactor NativeHeapTagging compat feature.
2020-02-14 01:41:37 +00:00
Jacky Kao
5519738da5 Improvement for takeScreenshot() API
1. Modify the related documentations.
2. Make the timestamp got from framework side.
3. Use the ParcelableColorSpace class.

Bug: 149271120
Test: a11y CTS & unit tests
Change-Id: I2aedf67f8ed7d949322b23b59eaa383e53ecb594
2020-02-14 09:36:00 +08:00
Taran Singh
d7ecc6237c Merge "Fix synchronization in updateImeTargetWindow" 2020-02-14 01:30:41 +00:00
Hui Yu
c7956f0d91 Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE
isProcStateBackground() mostly is used to determinte when to call registered IUidObserver's
onUidActive() and onUidIdle() callbacks. CameraServer and AudioServer
are the two most notable IUidObserver.

Since AppOps uses PROCESS_STATE_BOUND_FOREGROUND_SERVICE as foreground state cutoff. It is
better we consolidate other part of code use the same proc state as
foreground cutoff.

Bug: 149500958
Test: NA.
Change-Id: I8206ef4c8cad210547204117c2fe8eb0550d459f
2020-02-13 17:29:57 -08:00
JW Wang
41672e0adf Merge changes Ie6668cf6,Ib9803b4f
* changes:
  Tweak the lifecycle of rollbacks (2/n)
  Let completeEnableRollback return a boolean (1/n)
2020-02-14 01:23:44 +00:00
Dmitri Plotnikov
ab87b27663 Prevents an NPE when content provider is slow to start
Also, extends the client-side timeout to match that
in ActivityManagerService.

Also, fixes an ANR that could occur if getType is called for
an unknown content provider

---------------

Revert "Revert "Prevents an NPE when content provider is slow to start""

This reverts commit 3a54effffd.

Reason for revert: Roll forward of the original CL,
  with a fix for the regression it caused

Original commit 140fc2e9c9
Test: atest FrameworksCoreTests:android.content.ContentResolverTest
Fixes: 148987678

Change-Id: Ic60acceaabbf6b32c71d0b8bdf831a7d1f13d392
2020-02-13 17:23:05 -08:00
Shu Chen
523d33f1e1 Fixes the opacity value for the insertion handle to range {0..255}.
Bug: 149523168
Test: locally verified.
Change-Id: I53c4be59e128a6451a9d8c847ee9d5fd295659ab
2020-02-14 01:17:10 +00:00
Yuliya Kamatkova
b5d87a8695 Pass Activity LocusContext to the Content Capture.
Bug: 147750355
Test: manual
Change-Id: Ic739318ac5a38f5c251da433ffc054a57e4123c1
2020-02-13 17:15:56 -08:00
Sarah Chin
e0b991ec97 Add carrier config for sub6/mmwave/all unmetered
Test: atest DcTrackerTest
Bug: 147312358
Change-Id: Ibd0d1546e3577653eef1fdb4466f43e0c3c781fe
2020-02-13 17:15:38 -08:00
Dmitri Plotnikov
5630f2f9b2 Allow blocking calls to ActivityController
ActivityControllers are used in tests (e.g. monkeys), therefore
we are not concerned about misbehaving activity controllers on
production devices.

Fixes: 147705653
Test: run a monkey to ensure that activities can still start and
  there are no ONEWAY_FLAG warnings from BinderProxy

Change-Id: If14c17e821106e27b562e2ddf76edfd3bdcdd80a
2020-02-13 17:11:22 -08:00