Commit Graph

21569 Commits

Author SHA1 Message Date
TreeHugger Robot
39a498066f Merge "Add mechanism to send assist data to a IntelligenceService" 2018-11-20 22:55:57 +00:00
Dichen Zhang
197f242110 Merge "Make AudioManager.generateAudioSessionId() static" 2018-11-20 21:50:59 +00:00
Jack Yu
8f707bb8e5 Merge "Move hidden APIs into system APIs" 2018-11-20 18:56:32 +00:00
Winson Chung
fbbb158da6 Add mechanism to send assist data to a IntelligenceService
- Proxy requested assist data from swipe up through the the
  IntelligenceServiceManager to AiAi for each activity that we receive
  assist data for (the AssistDataReceiver to be removed later once AiAi
  implements the new IntelligenceService interface).

Bug: 117268952
Test: Build dummy intelligence service, ensure that we get capture event
      on swipe up.

Change-Id: Iec29792932d30e94a702bd5079711c6615d0738a
2018-11-20 10:08:59 -08:00
Mihai Popa
a5c84f2980 Merge "[Magnifier-57] Add API to set overlay" 2018-11-20 11:14:28 +00:00
Neil Fuller
9347978d5f Merge "API for retrieving time zone IDs by country" 2018-11-20 09:33:24 +00:00
Zimuzo Ezeozue
621a683ea7 Merge "Add privileged API to control keyguard secure notifications" 2018-11-20 04:50:52 +00:00
Felipe Leme
2eadd14d5a Merge "Minor changes on IntelligenceManager APIs." 2018-11-20 00:09:31 +00:00
TreeHugger Robot
5a31e0e77d Merge "Add Intent#EXTRA_CONTENT_QUERY." 2018-11-19 22:52:11 +00:00
Jack Yu
b400507670 Move hidden APIs into system APIs
To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a
2018-11-19 14:37:44 -08:00
TreeHugger Robot
c8a685abf9 Merge "Add MATCH_APEX flag to getInstalledPackages." 2018-11-19 22:00:19 +00:00
Hongming Jin
c796e17aa8 Merge "Add AppOps entries for read sms operation for financial apps." 2018-11-19 21:47:12 +00:00
Dichen Zhang
2d767d2f8b Make AudioManager.generateAudioSessionId() static
Bug: 119775358
Test: MediaPlayer2Test
Change-Id: Ie4fe5088c9d5f2c3bae251ed8cb0fa2e0a7038f8
2018-11-19 13:14:57 -08:00
Mihai Popa
1ddabb2c80 [Magnifier-57] Add API to set overlay
The CL adds an API to customize what overlay will be drawn on the top of
the magnifier content. Our default is to draw a 5% white overlay to make
magnifiers distinguishable in dark contexts.

Bug: 72211470
Test: manual testing
Change-Id: I1a356813960a60f49e068c6135ded9d41429d57c
2018-11-19 19:01:46 +00:00
Dario Freni
cb7a68d29a Add MATCH_APEX flag to getInstalledPackages.
If set, PackageManager will query apexservice and ask for activated
packages.

Test: wrote a small app to test the new query.
Bug: 117589375
Change-Id: I498bd97896f3eab65c88e9684874a30713be585e
2018-11-19 18:51:21 +00:00
TreeHugger Robot
5798ef6a96 Merge "public eSIM APIs created in Android P" 2018-11-19 18:26:23 +00:00
Amin Shaikh
710d123010 Add Intent#EXTRA_CONTENT_QUERY.
Fixes: 119269845
Test: make
Change-Id: I849d0ca62a222b8cabb8cb0e71eb6b016026cc0c
2018-11-19 12:51:13 -05:00
David Brazdil
984d991e3b Merge "Create AppComponentFactory.instantiateClassLoader API" 2018-11-19 17:35:26 +00:00
TreeHugger Robot
271339ffdf Merge "API: Make implicit APIs from type usage explicit" 2018-11-19 17:21:27 +00:00
Roshan Pius
b8054120f8 Merge "AndroidManifest.xml: Add new network permission for managed provisioning" 2018-11-19 16:08:12 +00:00
TreeHugger Robot
ba1c017456 Merge "Support set/get carrier id from ApnSetting" 2018-11-19 02:35:28 +00:00
Roshan Pius
eb9f8195db Merge changes from topics "abort_network_request", "untrused_network", "on_match_scan_results", "network_suggestions_impl"
* changes:
  WifiManager: Add abort callback for network request
  WifiNetworkAgentSpecifier: Allow satisfiedBy call for 2 instances
  WifiConfiguration: Add a field to mark network as trusted
  WifiManager: Send list of matching scan results for network request
  WifiManager: Implement network suggestion API
  wifi(API): Send directed broadcast post connection for suggestions
2018-11-17 03:52:04 +00:00
Andy Hung
9e950d937b Merge changes from topic "getAudioAttributes"
* changes:
  AudioTrack: Add getAudioAttributes public method
  AudioTrack: Fix import order lint warnings
2018-11-16 23:21:51 +00:00
Jordan Liu
64b4925059 Merge "Expose ApnService as a SystemApi and use subId arg" 2018-11-16 23:01:43 +00:00
TreeHugger Robot
992cd354fc Merge "passpoint-r2: define getMatchingOsuProviders(List<ScanResult>) API" 2018-11-16 22:32:53 +00:00
Nathan Harold
6ef595468c Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd am: f3d183108b
am: 247f4e292f

Change-Id: Ic65f1d1c929b22371e827d63281a3447ca29e8bc
2018-11-16 14:07:13 -08:00
Zimuzo
b3b9c26543 Add privileged API to control keyguard secure notifications
I688e87cf09ad206f4f517a7be960c2aa01af8fc4, restricted privileged apps from silently becoming Device Admins.

Ia4e1ce9b81756e7f84ed0aa22d97e0b968cd8d89 added privileged APIs for locking the device and resetting the password.
We continue that work by providing an alternative for DevicePolicyManager#setKeyguardDisabledFeatures guarded by android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS

Bug: 111153365
Bug: 112601004
Test: Secure notifications can be redacted on keyguard
Change-Id: If81cecf6e74f7abcff581a122c4b68cc04ff57c6
2018-11-16 22:00:43 +00:00
TreeHugger Robot
f16a3537b6 Merge "[Magnifier-55] Add API for content clamping" 2018-11-16 21:45:40 +00:00
Oleg Kibirev
2d281dfe63 Merge "Add a PowerManager @SystemApi to start a dream" 2018-11-16 21:38:34 +00:00
TreeHugger Robot
e2dc21e1a3 Merge "Exposing canSuspendPackage as SystemApi" 2018-11-16 21:05:46 +00:00
Nathan Harold
247f4e292f Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd
am: f3d183108b

Change-Id: Iee76a8ee4cd04cf5847ab33320635f7dab29d9e2
2018-11-16 12:58:31 -08:00
Roshan Pius
6a554a54b5 wifi(API): Send directed broadcast post connection for suggestions
Based on feedback received, moving away from using a PendingIntent for
post connection action (PendingIntent's are impossible to persist &
maybe too heavy for our use-case). We'll now send out a simple directed
broadcast to the app that added the network suggestion.

Also, added annotation indicating the permission requirement for using
the new API.

Bug: 115504887
Test: make api-stubs-docs-update-current-api -j128
Change-Id: Ide169b139ca16d43bd250de4d0447807d85a60ed
2018-11-16 12:13:01 -08:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00:00
TreeHugger Robot
14805a777d Merge "[WPA3] Make WPA3/OWE capability query API public 2/2" 2018-11-16 18:27:33 +00:00
Xiangyu/Malcolm Chen
544a84e01c Merge "Remove parentSubId and define API to set groupSubId" 2018-11-16 18:05:16 +00:00
Mihai Popa
3e1aed1272 [Magnifier-55] Add API for content clamping
The CL adds API to customize the bounds relative to a view where the
magnifier content is allowed to be copied from.

Bug: 72211470
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I3016a34929acf029f5251d03812f17e4da4cb948
2018-11-16 16:29:44 +00:00
Chong Zhang
258274714d Merge "Retrieve CA_Descriptor private data for scrambled stream" 2018-11-16 15:30:00 +00:00
Ecco Park
8561aa3281 passpoint-r2: define getMatchingOsuProviders(List<ScanResult>) API
This API is required to support control of OSU Service Providers with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ib2f2e406c8c295c83924e7884657b4088dd23bb3
Signed-off-by: Ecco Park <eccopark@google.com>
2018-11-16 15:23:48 +00:00
Ecco Park
33ac9a434e Merge "passpoint-r2: define getAllMatchingWifiConfigs(List<ScanResult>) API" 2018-11-16 15:12:48 +00:00
David Brazdil
fd6dcc21d9 Create AppComponentFactory.instantiateClassLoader API
Adds a hook to AppComponentFactory to allow control over the
instantiation of the main app class loader. LoadedApk creates
the default class loader and uses it to load the base APK. If
AppComponentFactory is declared in the manifest, its new method
instantiateClassLoader is called and its result becomes the
class loader used by LoadedApk to instantiate other classes
declared in the manifest. By default this is simply the class
loader created by LoadedApk.

Second method provides AppComponentFactory with a copy of
ApplicationInfo. The factory otherwise cannot locate any of the
app's resources, including its APK or the data folder.

Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
2018-11-16 11:45:47 +00:00
Ecco Park
f035a04f59 passpoint-r2: define getAllMatchingWifiConfigs(List<ScanResult>) API
This API is required to support control of Passpoint configurations with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Ecco Park <eccopark@google.com>

Change-Id: I1b9e1499081a8b005f10c249163185d0dc817b46
2018-11-16 03:19:21 -08:00
Gustav Sennton
413ce3b609 Merge "Add a Notifications API for contextual (smart) actions." 2018-11-16 10:22:39 +00:00
Hai Shalom
dc6f7af9a9 [WPA3] Make WPA3/OWE capability query API public 2/2
Remove owe and wpa3 methods from system-current.txt, since these methods
are now public.

Bug: 112195778
Test: No code changes
Change-Id: I76907a783f946640e0191823c52b17826d751603
2018-11-15 19:32:21 -08:00
Malcolm Chen
dc3a733062 Remove parentSubId and define API to set groupSubId
Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
2018-11-15 17:31:50 -08:00
Jordan Liu
d60a4c00b3 Expose ApnService as a SystemApi and use subId arg
IApnSourceService#getApns now takes a subId argument, and can be
implemented by extending ApnService.

Bug: 113075153
Test: unit tests and manual
Change-Id: I9cfcf977c20f33abd2d773393780f9e54d75fe21
2018-11-15 15:39:03 -08:00
Hongming Jin
228cd01733 Add AppOps entries for read sms operation for financial apps.
Bug: 111207447
Test: atest -m CtsPermission2TestCases
Change-Id: Ie106be00102cd31c2c5014fee1131748e10edfc5
2018-11-15 15:30:01 -08:00
Brad Ebinger
9ca7a38d29 Merge "Expose ProvisioningManager API for IMS configurations" am: 082bf0ccca am: 5ffd9747af
am: 81e18816f9

Change-Id: I99b9a5dec01e51426f923d24eceacd2f719c2fcd
2018-11-15 14:51:27 -08:00
Andy Hung
4c19137b22 AudioTrack: Add getAudioAttributes public method
Bug: 116735841
Test: AudioTrackTest#testBuilderAttributesStream
Change-Id: I09c69ed42a7a76d3d85694dd120a54f5567fb164
2018-11-15 14:47:56 -08:00
Brad Ebinger
81e18816f9 Merge "Expose ProvisioningManager API for IMS configurations" am: 082bf0ccca
am: 5ffd9747af

Change-Id: I51307a4658b63823da79567130b0425bc5695555
2018-11-15 14:34:50 -08:00
Brad Ebinger
082bf0ccca Merge "Expose ProvisioningManager API for IMS configurations" 2018-11-15 22:07:29 +00:00