Commit Graph

93869 Commits

Author SHA1 Message Date
Paul Hu
b276709976 Merge "Add CTS API coverage for APIs which are used by NetworkStack"
am: 1c9ca3b0f6

Change-Id: I33b58b69e906e5b90dfc7f0b512c81edd51b1684
2019-05-01 21:12:55 -07:00
Paul Hu
1c9ca3b0f6 Merge "Add CTS API coverage for APIs which are used by NetworkStack" 2019-05-02 01:37:26 +00:00
paulhu
f32da69eec Add CTS API coverage for APIs which are used by NetworkStack
Change-Id: I4f6c34f3bcfa65e60cf73fc1b7cab2d83c32836a
Bug: 129200003
Bug: 129200292
Bug: 129199996
Bug: 129200261
Bug: 129200513
Bug: 129200316
Bug: 129200589
Bug: 129200181
Bug: 129200669
Bug: 129200504
Bug: 129200478
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases: added tests pass
2019-04-30 17:26:24 +08:00
Al Sutton
f8e199f033 Merge "Update team members in the OWNERS file. DO NOT MERGE" 2019-04-30 07:30:24 +00:00
Benedict Wong
aa5ec0985d Merge "Add EPROTONOSUPPORT to IpSecManager SSE map"
am: 7050ce9434

Change-Id: I9ab4161e2b04615ce782c89cd9e99d98cdbdc92d
2019-04-29 13:35:37 -07:00
Benedict Wong
7050ce9434 Merge "Add EPROTONOSUPPORT to IpSecManager SSE map" 2019-04-29 19:59:38 +00:00
Al Sutton
a18210fb2b Update team members in the OWNERS file. DO NOT MERGE
Change-Id: I7f23507e1ec9a5763579160f7942bf2f55df1bfb
Test: build/make/tools/checkowners.py -c -v OWNERS
Fixes: 129861520
2019-04-29 11:01:36 +00:00
Lorenzo Colitti
5418c966ae Merge changes Ia9865c75,I47d9d53d,Idbe10c36
am: da1df963e6

Change-Id: I75fb2a070f4490414d268cefa3702fde13c01f91
2019-04-28 18:12:51 -07:00
yuanyunli
43f1bc9d53 Parse the server host name field of the dhcp package
Some hotspot devices will fill in the server host name field of the DHCP
package, such as iphone. Parsing the server host name of the DHCP
package can help identify ios hotspots.

Bug: 120584519
Test: 127423755
Test: builds, boots, wifi works
Change-Id: Idbe10c36332ce421f1bba93eb87e9e1e12463088
2019-04-26 22:59:52 +09:00
Lorenzo Colitti
57646109fd Merge "Make DNS cache lifecycle management explicit"
am: a6d5664819

Change-Id: Ie97fe453c89476915f3b362b6486c7d4608da2a9
2019-04-25 17:38:23 -07:00
Lorenzo Colitti
a6d5664819 Merge "Make DNS cache lifecycle management explicit" 2019-04-26 00:23:22 +00:00
Chiachang Wang
a4527d568f Merge "Remove Settings constants for NetworkStack"
am: d32d766a04

Change-Id: Icba412d89c10a64d7e5d3d396b6a1364f7ad6bc5
2019-04-24 22:05:10 -07:00
Chiachang Wang
d32d766a04 Merge "Remove Settings constants for NetworkStack" 2019-04-25 04:49:04 +00:00
Chiachang Wang
e6d0ab916a Remove Settings constants for NetworkStack
The definitions reference of these constants are moved from
Settings to DeviceConfig. These definitions are @hide and the
usage in the Settings are removed. Thus, remove the definitions
from API level.

Bug: 123167629
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Test: atest NetworkStackTests
Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
Merged-In: I7291cfa86cd6e907df35e8fbc97e2e9a77e56cab
Merged-In: Ic48bea07e79490dd3787068bc88c748525752a61
2019-04-25 02:40:51 +00:00
Leland Miller
3e2e2d66ce Merge "Use injected instance of RcsControllerCall"
am: f545515ee6

Change-Id: Id364fe89943027eb1ec9f60b7457126ff8945b16
2019-04-24 17:15:18 -07:00
Treehugger Robot
f545515ee6 Merge "Use injected instance of RcsControllerCall" 2019-04-24 23:48:40 +00:00
Benedict Wong
dcbc670688 Add EPROTONOSUPPORT to IpSecManager SSE map
This change maps EPROTONOSUPPORT to the list of error codes that map to
UnsupportedOperationException in IpSecManager.

Bug: 80103456
Test: Compiles, CTS tests ran
Change-Id: Iec3d5fc4a9bcad7c104414afefae775232d46558
2019-04-24 21:31:01 +00:00
Rubin Xu
39c2091c88 Merge "Remove unused methods from INetworkManagementService"
am: 5d2c5d5dc2

Change-Id: Ie37c9c751830d209d40772bd2d410a9c550236cd
2019-04-24 07:43:27 -07:00
Treehugger Robot
5d2c5d5dc2 Merge "Remove unused methods from INetworkManagementService" 2019-04-24 14:29:39 +00:00
Neil Fuller
78ccbc3bec Merge "Switch to HexEncoding from ByteStringUtils"
am: 6badf7c7da

Change-Id: I0af52cb2289e1df89ac65fa01334d4e9de69e010
2019-04-24 06:08:15 -07:00
Neil Fuller
6badf7c7da Merge "Switch to HexEncoding from ByteStringUtils" 2019-04-24 12:57:25 +00:00
Aaron Huang
cab3f447ae Merge "Move NattKeepalivePacketData out of the framework"
am: 833edcbb1b

Change-Id: I3c291d378ed3dc54199708fdc188a908ccb3ee08
2019-04-23 21:17:26 -07:00
Aaron Huang
833edcbb1b Merge "Move NattKeepalivePacketData out of the framework" 2019-04-24 04:00:56 +00:00
Benedict Wong
f8893a980f Merge "Add NATT keepalive resources and methods into IpSecService"
am: c345527430

Change-Id: I97e7451959d619f42d68a5c29cca410bf0740852
2019-04-22 13:31:52 -07:00
Benedict Wong
c345527430 Merge "Add NATT keepalive resources and methods into IpSecService" 2019-04-22 20:03:54 +00:00
Benedict Wong
69a9326356 Merge "Add configurability of LinkProperties, meteredness for Test Networks"
am: 248cbf0025

Change-Id: I3ad0ccc7fefbd6bd8888cd1f3f396effcdbfdd3b
2019-04-22 11:07:43 -07:00
Benedict Wong
248cbf0025 Merge "Add configurability of LinkProperties, meteredness for Test Networks" 2019-04-22 17:41:20 +00:00
Luke Huang
a24d5d8f8b Make DNS cache lifecycle management explicit
1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.

Bug: 129453995
Test: atest FrameworksNetTests
Change-Id: I15660d27f735e33d621d4af8972cdf115bf76dfa
2019-04-22 17:43:37 +08:00
Chalard Jean
9adc83312a Merge "Fix a bug where + before % is ignored"
am: 11ad605e28

Change-Id: Ia91037ba91e1619d076bd936964125313cde3787
2019-04-22 01:25:57 -07:00
Treehugger Robot
11ad605e28 Merge "Fix a bug where + before % is ignored" 2019-04-22 08:09:32 +00:00
Stanley Tng
ba81211c48 Merge "Add more documentation for LE CoC"
am: 964f6265ad

Change-Id: I40ba8a95f3df26cd7d036c781cd867abdb10ba6f
2019-04-21 19:17:24 -07:00
Treehugger Robot
964f6265ad Merge "Add more documentation for LE CoC" 2019-04-22 02:05:22 +00:00
Chalard Jean
9e50b98428 Fix a bug where + before % is ignored
Achievement unlocked : fix a 10-year-old trivial bug

Bug: 1866121
Test: new CTS in Ib7ee866f65baf99b46a31e2115355a42a829421e
Change-Id: Ic91660d974dce21f2affdcacaeffe9accf8451ac
2019-04-22 10:35:15 +09:00
Zach Johnson
dd2b92d97d Merge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid"
am: ce5fdc042a

Change-Id: Ib08fcd957f2eb162d9021d4b7a9ef7dcda5be646
2019-04-19 20:42:31 -07:00
Treehugger Robot
ce5fdc042a Merge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid" 2019-04-20 02:20:04 +00:00
Stanley Tng
bcbc130235 Add more documentation for LE CoC
Added more information into Android SDK for LE Connection-oriented
Channels (CoC) so that it matches the corresponding RFComm
documentation.

Bug: 70683224
Test: Compile
Change-Id: I40abde70a7ca6bcd194ee75bd8367c0ed9e97d05
2019-04-19 15:50:42 -07:00
Zach Johnson
df588a2292 Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid
Test: compilation
Fixes: 126698824
Change-Id: I4873b46a37df3e103ddc62001cc9f0bc01aea4dc
2019-04-19 15:30:22 -07:00
Yiwei Zhang
18e97c3db5 Merge changes from topic "GameDriver3"
am: 5d832d2988

Change-Id: If2449acb0eef75ad81d913ab8fc07ae927f2ab8e
2019-04-19 14:38:53 -07:00
Treehugger Robot
5d832d2988 Merge changes from topic "GameDriver3"
* changes:
  Game Driver: process sphal libraries in GPU service
  Game Driver: Add a Settings.Global property for sphal libraries
  [Game Driver] Add global whitelist option.
  [GPU Service] Move blacklists process to GPU service.
  Split blacklist from versioned blacklists.
  Game Driver: clean up GraphicsEnvironment
  [GPU Service] Implement GPU service.
2019-04-19 20:47:35 +00:00
Dan Willemsen
c2975a3850 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS"
am: 644792c7d6

Change-Id: I659115cec0db8ccae778e1b842a08bb04c63e10f
2019-04-19 12:56:42 -07:00
Yiwei Zhang
b1eeb0cd9d Game Driver: process sphal libraries in GPU service
This change adds the sphal libraries text file parsing to the GPU
service. As the result, when the Game Driver apk is updated, the sphal
library list will be read out to the GAME_DRIVER_SPHAL_LIBRARIES
settings global property to be used in the graphics environment to
extend the current linker namespace.

Bug: 124448366
Test: Build, flash and boot. Install the apk to verify settings global.

Change-Id: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
Merged-In: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
2019-04-19 12:35:03 -07:00
Yiwei Zhang
eb8d7cc3cd Game Driver: Add a Settings.Global property for sphal libraries
This change add the GAME_DRIVER_SPHAL_LIBRARIES property to save the
list of sphal libraries assessible to Game Driver.

Bug: 124448366
Test: Build, flash and boot.
Change-Id: I7cb06df80f19d87f5fd13d7df3c991ceb5bdfb06
Merged-In: I7cb06df80f19d87f5fd13d7df3c991ceb5bdfb06
Exempt-From-Owner-Approval: Change in CoreSettingsObserver.java is too
minor
2019-04-19 12:34:34 -07:00
Dan Willemsen
644792c7d6 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" 2019-04-19 19:30:50 +00:00
Benedict Wong
2445227fa8 Add NATT keepalive resources and methods into IpSecService
This change adds a new NATTKeepalive resource type, along with the
associated allocation/deallocation. Additionally, this change allows
ReferenceCountedResource(s) to not be binder-linked, to allow the
ConnectivityService to verify ownership and allocate a NattKeepalive
without double-registering for binder-death notifications.

Bug: 125517194
Test: IpSecService frameworks tests ran
Change-Id: I8293f79940ad57dabb6f2b9de5e334d06b869443
2019-04-19 11:17:21 -07:00
Peiyong Lin
db98f35743 [Game Driver] Add global whitelist option.
Allow a '*' at the beginning of the whitelist file to mean whitelist
everything.

BUG: 120869311
Test: Build, flash and boot. Verify with apk
Change-Id: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
Merged-In: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
2019-04-19 10:49:03 -07:00
Peiyong Lin
8287771adc [GPU Service] Move blacklists process to GPU service.
Instead of re-process blacklists proto everytime, we move the processing to GPU
Service, and add SettingsObserver to observe the change of
Settings.Global.GAME_DRIVER_BLACKLISTS such that we only re-process the
blacklists when needed.

As a result, we will have GAME_DRIVER_BLACKLISTS which is used to accept a list
of blacklist from the server, one for each game driver version that needs to
have blacklist, and GAME_DRIVER_BLACKLIST will only contain a list of
blacklisted application package names for the current version of game driver on
the device, separated by comma.

BUG: 120869311
Test: Build, flash and boot. Use adb shell settings put command to verify.
Change-Id: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
Merged-In: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
2019-04-19 10:48:07 -07:00
Benedict Wong
512ab0d94f Add configurability of LinkProperties, meteredness for Test Networks
This commit adds the ability to pass in LinkProperties and meteredness
for additional testing use cases.

Bug: ?
Test: Compiles. Test utility only.
Change-Id: Idf6c3bcae2dea5e61c0418b72b889496919be8ba
2019-04-19 10:46:56 -07:00
Aaron Huang
77e4e527a0 Move NattKeepalivePacketData out of the framework
For implementing parcelable interface for NattKeepalivePacketData.
Move this class out of framework.jar and move to services.jar

This class is used in telephony-common.jar and it also loads
service.jar.

Bug: 33530442
Test: - build pass
      - atest NetworkStackTests
      - atest ConnectivityServiceTest

Change-Id: Id2fdec5c4015d2cefd8a93e0cfdcc3c304fc9b64
2019-04-20 00:37:19 +08:00
Tyler Gunn
ab13f3096a Merge "Add CallLog provider loggging to check for app-ops denial."
am: cc469a276b

Change-Id: I14099b4e5c28b85623fafab0add45b44d828e340
2019-04-19 08:46:11 -07:00
Tyler Gunn
cc469a276b Merge "Add CallLog provider loggging to check for app-ops denial." 2019-04-19 15:33:53 +00:00