Commit Graph

110816 Commits

Author SHA1 Message Date
Lorenzo Colitti
30a8f7ef23 Support putting one Ethernet interface in server mode.
requestTetheredInterface can be used to put an interface in server mode,
which will persist until release() is called on the returned request, or
until the requesting process dies.

Test: Enabled ethernet tethering with change on top
Bug: 130840861
Change-Id: Id96d581acb3fa4e52ca62dd94ec257f56bd3a1ce
2020-01-27 19:12:54 +09:00
Milim Lee
31ef4c0520 Local Tethering with ncm interface
Bug: 130840842
Test: build, boot
      atest TetheringTest
      manual test (call startTethering(TETHERING_NCM))

Change-Id: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
2020-01-24 19:18:04 +09:00
markchien
e8b9d75557 Allows the caller to specify configuration by TetheringRequest
This is initial work to allow caller to pass their prefered
configuration to start tethering. Caller may able to specify the
downstream interface ipv4 address with dhcp server disabled for
static IP configuration, or able to exempt entitlement check if
they have permission in follow up CL.

Bug: 141256482
Test: -atest TetheringTest
      -ON/OFF wifi tethering

Change-Id: Ic7c3a33195bbd7e72f9b8e73fa148be476b87bf3
2020-01-23 23:19:23 +09:00
markchien
40898cacc2 Make TetheringManager to system API
Also deprecated tethering APIs in ConnectivityManager.
Will have follow up change to remove @hide tethering function in
ConnectivityManager.

Bug: 145093446
Bug: 148038547
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ia432057bf9056727c4a0ca97d160a49274d33581
2020-01-23 00:41:59 +09:00
Muhammad Qureshi
91f03e0047 Merge "StatsEvent @SystemApi" 2020-01-16 01:22:35 +00:00
Roshan Pius
322c2f71f3 Merge "Settings: Formalize Wifi Mainline usages" 2020-01-16 00:26:09 +00:00
TreeHugger Robot
2b9e33d039 Merge "Adds a flag to force the Nav Bar handle to remain visible" 2020-01-16 00:25:44 +00:00
Nathan Harold
bbc2aaeaaa Merge changes from topic "barring-info"
* changes:
  Add a BARRING_TYPE_UNKNOWN for Unreported Barring
  Add Callback to notify changes of barring status
2020-01-16 00:06:07 +00:00
Ytai Ben-tsvi
224c9043c3 Merge "Improve exception handling in SoundTrigger" 2020-01-16 00:01:55 +00:00
Roshan Pius
32913a8eda Settings: Formalize Wifi Mainline usages
a) Removed some of the @hide settings value which can be replaced with
an overlay flag.
b) Promoted all the other wifi setting keys to @SystemApi.

Bug: 147373460
Test: Device boots up and connects to wifi networks.
Change-Id: Id9775a5a73350ac9921400904771e6f04810e45a
2020-01-15 15:50:38 -08:00
Danning Chen
8f0903ae74 Merge "Add a new method queryEventsForUser() to UsageStatsManagerInternal for People Service to call" 2020-01-15 22:55:15 +00:00
Govinda Wasserman
8b0454689e Adds a flag to force the Nav Bar handle to remain visible
Test: Tested locally
Change-Id: I74395aee1856a735b175af88ec87f12780ee9ff5
2020-01-15 17:12:35 -05:00
Ytai Ben-Tsvi
2e8f78b322 Improve exception handling in SoundTrigger
This unified the exception handling of SoundTrigger and
SoundTriggerModule and adds support for some ServiceSepcificExceptions
that may occur.

Change-Id: I018c7b249058758f0f3b5af34ee06a2396ecb6a7
Bug: 147435580
2020-01-15 13:10:33 -08:00
Muhammad Qureshi
089d1bb28d StatsEvent @SystemApi
Make StatsEvent and StatsLog.write(StatsEvent) @SystemApi.

Bug: 146383532
Test: m

Change-Id: I15050734e757bdb622fb83e3ef244a6ebd26923b
2020-01-15 12:02:01 -08:00
Evan Rosky
718bc41353 Merge "Add focusability into the hierarchy and Container transaction" 2020-01-15 19:42:47 +00:00
Mike Ma
73287d1ab3 Merge "Incident Report Extension API" 2020-01-15 19:27:55 +00:00
TreeHugger Robot
458fbcba7f Merge "Add conversation-centric inline controls" 2020-01-15 19:09:53 +00:00
TreeHugger Robot
bcc07fc3b9 Merge "Minor fixes for devices without WallpaperService." 2020-01-15 19:04:57 +00:00
TreeHugger Robot
5988021002 Merge "Multiple shortcut menu for android R (6/n)." 2020-01-15 19:02:52 +00:00
Nikita Dubrovsky
e6cf79bcab Merge "Enable cursor drag by default for editable TextViews" 2020-01-15 18:52:56 +00:00
Nikita Dubrovsky
ca73951a92 Merge "Add explicit check to not trigger a cursor drag via the mouse" 2020-01-15 18:46:59 +00:00
Automerger Merge Worker
de38d0529f Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" am: 7fd95f64df am: 4a76965c68 am: b8a357c250
Change-Id: I9aee20185e189e51d537b6b0895fdc31c31d0ea2
2020-01-15 18:39:33 +00:00
Automerger Merge Worker
b8a357c250 Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" am: 7fd95f64df am: 4a76965c68
Change-Id: I71d047b955cbb80519bca4cd15d4638dec3dc812
2020-01-15 18:24:31 +00:00
Evan Severson
4e49a5d0b3 Merge "Add new api to get the button label for background permission" 2020-01-15 17:59:34 +00:00
Jovana Knezevic
201ab6dcc0 Merge "Fix several issues with precreated users." 2020-01-15 17:51:25 +00:00
Anna Malova
6c0d599085 Merge "Add PacProcessor system API." 2020-01-15 17:49:18 +00:00
Rambo Wang
7fd95f64df Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" 2020-01-15 17:45:58 +00:00
Nikita Dubrovsky
f32903df0f Merge "Handle ACTION_CANCEL in EditorTouchState (editable TextView)" 2020-01-15 16:42:49 +00:00
Automerger Merge Worker
f2b5633071 Merge "Expose time / time zone system apis for telephony" am: e9dafe541e am: 76e21aa151
Change-Id: Ia6e446d686a1073295a35d39fe024df6f5d35e8f
2020-01-15 16:37:43 +00:00
Neil Fuller
e9dafe541e Merge "Expose time / time zone system apis for telephony" 2020-01-15 16:19:16 +00:00
Julia Reynolds
12ba4cf7a8 Add conversation-centric inline controls
Round one - needs polish, and actions may be added or removed
in the future, and demote isn't working yet.

Bug: 137397357
Test: atest
Change-Id: Ia52598bec58fc54b8bde29168cd419a24d1e4dab
2020-01-15 10:20:29 -05:00
TreeHugger Robot
0fb4b69edb Merge "NetworkAgent: Fix doc build fail by invalid tag" 2020-01-15 14:59:04 +00:00
TreeHugger Robot
c24d678cf0 Merge "Update profile owner of org-owned device global restrictions" 2020-01-15 14:36:51 +00:00
TreeHugger Robot
ae6c8788fb Merge "Add Callback API to Toast" 2020-01-15 14:09:51 +00:00
Peter_Liang
f11c17e0ec Multiple shortcut menu for android R (6/n).
Implementation for clicking the target item.

Change-Id: Ib91be1102791ea77768c5c69dbe00535cdc84baf
Fix: b/146969684
Test: manual test
2020-01-15 21:41:52 +08:00
markchien
06b9dfbaa0 NetworkAgent: Fix doc build fail by invalid tag
Bug: 138306002
Bug: 139268426
Test: make doc-comment-check-docs

Change-Id: I8b8df5096b90ad10545087ab09f68ecae637aa35
2020-01-15 12:58:25 +00:00
Jonathan Scott
805b26acf0 Merge "Allow starting activities across user with INTERACT_ACROSS_USERS." 2020-01-15 12:52:15 +00:00
Automerger Merge Worker
55bc2a3b5e Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi" am: dda5e92547 am: fe7146187e am: 968f5a9665
Change-Id: Iece2ad4133751a8c258f64d7796158ffe90881ce
2020-01-15 12:33:59 +00:00
Automerger Merge Worker
968f5a9665 Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi" am: dda5e92547 am: fe7146187e
Change-Id: Ic2168f237508137de450833d9c4a8f7229d89090
2020-01-15 12:16:25 +00:00
Treehugger Robot
dda5e92547 Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi" 2020-01-15 11:42:11 +00:00
Al Sutton
f7f94e34bf Merge "Add "No New Data" flag for Key/Value Backups" 2020-01-15 11:35:07 +00:00
Lorenzo Colitti
b4f3288e38 Merge "Make most of NetworkAgent @SystemApi." 2020-01-15 09:56:31 +00:00
TreeHugger Robot
f129f86a57 Merge "Rename the api from refresh() to refreshTime() to make it more clear" 2020-01-15 09:12:43 +00:00
TreeHugger Robot
863ca6295e Merge "Vibrator: Have Always-On Check DND/LowPower Modes" 2020-01-15 09:09:58 +00:00
Neil Fuller
b87081ceba Merge "System API proxies for the telephony module" 2020-01-15 09:01:57 +00:00
Alan Stokes
395ac1e263 Merge "Update API for uninstalled installers." 2020-01-15 08:40:46 +00:00
Jacky Kao
873cbc0e14 Merge "Implementing new API : takeScreenshot()" 2020-01-15 08:29:49 +00:00
Jacky Kao
09789e4168 Implementing new API : takeScreenshot()
Implementing the new API for A11y services to take the screenshot
of the specified display.
Bitmap takeScreenshot(int displayId)
1. The main codes is moved from the UiAutomationConnection class and
let the UiAutomation change to use this API.
2. Add a capability at metadata to check whether the A11y services could use this
API or not.
3. This API is a async one for A11y services, but is a sync one for
UiAutomation.

Bug: 10931661
Test: a11y CTS & unit tests
Change-Id: I478bd93c60d4742bef20ae0e423ca9de1bda55d2
2020-01-15 16:23:52 +08:00
Yuhan Zhao
03e46fd76a Merge "Intercepting activites that could cause lock task mode violation in ActivityStartInterceptor." 2020-01-15 08:23:47 +00:00
paulhu
5ae1d2c043 Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests

Change-Id: I77cb45e6b2aaf4ab2c457cb59ccf77b1b8c01fa9
2020-01-15 15:38:23 +08:00