Commit Graph

687967 Commits

Author SHA1 Message Date
Yunfan Chen
268eff33ec Merge "Provide gesture and tappable element insets for caption" 2022-04-04 03:15:01 +00:00
Songchun Fan
ebcfe1c6e0 Merge "[SettingsProvider] update API javadoc" 2022-04-01 23:25:15 +00:00
Benedict Wong
bd14581e6b Merge "Trigger revalidation of VCN, underlying networks" 2022-04-01 22:33:00 +00:00
Treehugger Robot
0754714469 Merge "Add context to error message." 2022-04-01 22:14:12 +00:00
Ling Ma
18b4802337 Merge "setProperty check for byte limit" 2022-04-01 21:43:23 +00:00
Ling Ma
ffa0f982b6 Merge changes from topic "truncate operator name"
* changes:
  Truncate operator name to fit into SystemProp size
  Add truncateStringForUtf8Storage()
2022-04-01 21:43:23 +00:00
Songchun Fan
ed6aebc4fc [SettingsProvider] update API javadoc
Address comments from API review

BUG: 227781337
Test: N/A
Change-Id: I3042be0671728d06bf1c7ae09baee538bb82fbe7
Merged-In: I3042be0671728d06bf1c7ae09baee538bb82fbe7
2022-04-01 21:29:24 +00:00
Treehugger Robot
bdf20659d3 Merge "Added command line tool to enable/disable new data stack" 2022-04-01 20:40:00 +00:00
Sarah Chin
e5e9a5c339 Merge "Add PROTOCOL_UNKOWN" 2022-04-01 18:32:50 +00:00
Eric Biggers
db9ea17177 Merge "Remove FDE warning from AccessibilityShortcutChooserActivity" 2022-04-01 18:00:45 +00:00
Jack Yu
b6512b4ead Added command line tool to enable/disable new data stack
Provide the temporary command line tool to check whether new
data stack is enabled or not.

Bug: 196597630
Test: adb shell cmd phone get-data-mode
Change-Id: I9f95e7424e6e74af12a0f6780a58fb5732df7300
Merged-In: I9f95e7424e6e74af12a0f6780a58fb5732df7300
2022-04-01 10:55:48 -07:00
Ling Ma
d985d0a3fe Add PROTOCOL_UNKOWN
Test: build
Bug: 217375910
Merged-In: I5bd0351925d27bb2178d4cd0cc93197f463236cd
Change-Id: I5bd0351925d27bb2178d4cd0cc93197f463236cd
2022-04-01 09:40:49 -07:00
Bob Badour
93aa95f71a Add context to error message.
Would have been very useful to avoid http://b/227682097

Bug: 227682097

Test: m apexer apexer_test deapexer debugfs_static; atest --host apexer_test
Change-Id: I24234d053a06868493831d40f94f7e46956391a1
2022-04-01 15:21:26 +00:00
mrenouf
d7013fb94e Merge "Fix edit button in screenshot share activity" 2022-04-01 12:10:01 +00:00
Yi-yo Chiang
9b420e664a Merge "DSU service: Log insufficient storage space error" 2022-04-01 07:53:59 +00:00
Yunfan Chen
16e58e7322 Provide gesture and tappable element insets for caption
Caption is covering the app region and will take gesture and tap events
when the user interact with the caption. This change will make sure the
app can receive the caption as a part of the tappable element insets and
gesture insets to avoid the caption overlaps with interactive elements
inside the window.

Bug: 219987804
Bug: 209717743
Test: atest, see the bugs

Change-Id: I6e48f8df6eb8f73a2f62f34109f4d80d09021929
2022-04-01 05:20:03 +00:00
Ling Ma
c901b0b863 Truncate operator name to fit into SystemProp size
Test: manual
Bug: 210502588
Change-Id: I59a87fa256a9be54755199034e138a63d89f0885
2022-04-01 02:24:22 +00:00
Ling Ma
58d9786a64 Add truncateStringForUtf8Storage()
Test: manual
Bug: 210502588
Change-Id: I5d4ded0cb30151bc567cfedcdb1bbbdb9abdca9b
2022-03-31 18:57:05 -07:00
Jared Duke
a6f4bbd418 Merge "Fix static lib collision between system_server + framework" 2022-03-31 22:47:33 +00:00
Eric Biggers
bcbd6fe8cd Merge "EntropyMixer: ensure new seed file is as good as old one" 2022-03-31 21:56:11 +00:00
Jernej Virag
c207bdcf5f Merge "Add code OWNERS to test OWNERS for internal widgets" 2022-03-31 19:11:07 +00:00
Treehugger Robot
6ff14106fc Merge "[DeviceConfig] cherry-pick deleteProperty SystemApi" 2022-03-31 18:39:09 +00:00
Lucas Lin
1d5282f4dd Merge "Clear mInterface before calling resetIkeState()" 2022-03-31 15:35:53 +00:00
Jernej Virag
ba5392ca14 Add code OWNERS to test OWNERS for internal widgets
This should prevent long review times because test ownership doesn't match code ownership.

Test: n/a
Change-Id: I59812d77db671ee39906df009a918f2881259eab
2022-03-31 15:10:53 +00:00
Neil Fuller
a2b92f89ec Merge "Add Shell permission to support manual testing" 2022-03-31 15:01:35 +00:00
Yi-Yo Chiang
c88a3d9be4 DSU service: Log insufficient storage space error
Log a specialized error message if installation task
failed due to insufficient storage space.
This helps the user to disgnose the source of error.

Bug: 200002443
Test: start DSU task and check logcat
Change-Id: Iabb3e0325ae99c343978ca6c35ab8378f20e0527
2022-03-31 18:38:00 +08:00
Eric Biggers
88a2a7e5c9 EntropyMixer: ensure new seed file is as good as old one
Generate the new seed by hashing the old seed together with some bytes
from /dev/urandom, rather than just using the bytes from /dev/urandom
alone.  This ensures that the new seed doesn't contain less entropy than
the old one, and follows the latest recommended best practices.

While doing this, also clean up various other things:

- Start using AtomicFile to update the seed file so that it won't be
  corrupted if the system crashes while it is being updated.
- Eliminate the RandomBlock class, as it isn't very useful.
- Send all the device-specific information to /dev/urandom in one write.
- Improve comments, variable names, and method names.
- Improve log messages, e.g. don't log a warning on every first boot.
- Improve the unit test.
- Use @VisibleForTesting rather than an ad-hoc comment.

Bug: 226608458
Test: atest EntropyMixerTest
Test: checked for expected log messages
Change-Id: Ief9485536cff50c07d4d920fa32e21dbde6dd245
2022-03-31 04:21:55 +00:00
Treehugger Robot
c32215ee94 Merge "Update OWNERS file to reflect ownership in capability related files" 2022-03-31 04:17:58 +00:00
Ken Chen
ef89731cd3 Merge "Update data type and comments on tagSocket/untagSocket APIs" 2022-03-31 03:29:02 +00:00
Treehugger Robot
99d2f232f8 Merge "Update owners for app-widget test" 2022-03-31 03:03:44 +00:00
Pinyao Ting
6fb3b9e475 Update owners for app-widget test
Change-Id: I95eb54d4eb35b35628105ce0227e0c163d0a3466
2022-03-31 00:39:50 +00:00
Jared Duke
b1e859d9c0 Fix static lib collision between system_server + framework
Exclude the static library `android.hardware.contexthub-V1.0-java` from
system_server, as it's already included in the framework. This avoids a
collision between SYSTEMSERVERCLASSPATH and BOOTCLASSPATH.

Bug: 215530220
Bug: 222468116
Change-Id: I7b23bfaba58676702b78e74e95911e03e88eb456
Test: m + atest StrictJavaPackagesTest
2022-03-30 22:26:43 +00:00
Treehugger Robot
cf13ba50cd Merge "Update owners of framework-jarjar-rules.txt" 2022-03-30 19:26:45 +00:00
Treehugger Robot
a535dfe28a Merge "Update handover rule java doc" 2022-03-30 18:35:23 +00:00
Treehugger Robot
004bb42f93 Merge "Added Java bindings to async trace functions with track argument" 2022-03-30 18:16:29 +00:00
Tim Murray
45f3622eb3 Merge "Update OWNERS for tracing, including the Java APIs." 2022-03-30 18:15:38 +00:00
Tim Murray
1c968c099f Update OWNERS for tracing, including the Java APIs.
Change-Id: I7b4f972f09695c68110ed09e3a75e35e40a61387
2022-03-30 11:10:21 -07:00
Tim Murray
1eb344eda8 Merge "update OWNERS for trace APIs" 2022-03-30 18:03:35 +00:00
Ling Ma
da11a0da69 Update handover rule java doc
Change-Id: I784ac4b58ea64baf90ec7faf7a25dda5cd1c31cc
Merged-In: I784ac4b58ea64baf90ec7faf7a25dda5cd1c31cc
Test: atest
Bug: 222018690
2022-03-30 10:17:55 -07:00
Ken Chen
9c315eb11f Update data type and comments on tagSocket/untagSocket APIs
- Fix comment in version script to say LL-NDK, not NDK
- Use uint32_t for tag

Bug: 223423155
Test: CtsNetTestCases:android.net.TrafficStatsTest
Test: CtsNativeNetPlatformTestCases
Change-Id: Ifb819ed0adeb8f173b98c3f131a4bf2e0715dd4e
2022-03-31 00:28:15 +08:00
Pedro Loureiro
b4f03e15eb Update owners of framework-jarjar-rules.txt
Soong team is now owner too.

Test: N/A

Change-Id: I9af77c6f3e9e63032da278abe3b020bba16c51ab
2022-03-30 16:03:42 +00:00
Treehugger Robot
8513c50145 Merge "ApiDocs.bp: fix typo (proofrerad -> proofread)" 2022-03-30 14:59:06 +00:00
Seth Moore
ca344c9949 Merge "Inform the remote provisioner when a key may have been consumed" 2022-03-30 14:12:05 +00:00
lucaslin
520cc2fde3 Clear mInterface before calling resetIkeState()
Clear mInterface before calling resetIkeState() in
onDefaultNetworkChanged().
resetIkeState() will trigger interfaceRemoved() to be called.
If mInterface is set, interfaceRemoved() will clear
Ikev2VpnRunner which makes VPN disconnect.

This issue can be reproduced when device establishes VPN
connection with mobile data first then connects to wifi.
In this case, onLost() for mobile data will not be called
because there is a new network(wifi) can satisfy the request,
so only onAvailable() for wifi will be called.
Which means onSessionLost() will not be called and only
onDefaultNetworkChanged() will be called, which makes that
mInterface is not cleared before interfaceRemoved() is called.

Bug: 219546241
Test: Check if VPN is still there when establishing VPN with
      mobile data first, then connect to wifi and disconnect
      wifi.
Change-Id: I7f9a1d9afd2a40762e9fac68edf1fb8ae75df8bc
2022-03-30 14:03:01 +00:00
Neil Fuller
fddc4e2741 Add Shell permission to support manual testing
Add android.permission.SUGGEST_TELEPHONY_TIME_AND_ZONE to the shell
process to enable command-line injection of time zone suggestions to the
time_zone_detector service.

Shell already has permissions like SET_TIME_ZONE that allow the time
zone to be set directly, so this is not a security regression.

Bug: 227337462
Test: adb shell cmd time_zone_detector suggest_telephony_time_zone --slot_index 0 --zone_id Europe/London --quality single --match_type country
Merged-In: I377cab85a1b39ef2887b452d1ffcdc5b00a8d5ab
Change-Id: I377cab85a1b39ef2887b452d1ffcdc5b00a8d5ab
2022-03-30 13:28:57 +00:00
Santos Cordon
e5e6e495aa Merge "Add entry to OWNERS" 2022-03-30 12:32:45 +00:00
Mårten Kongstad
2598fe0136 ApiDocs.bp: fix typo (proofrerad -> proofread)
Bug: N/A
Test: builds
Change-Id: Idced669300ad40afd0de78046c2d4479d8ef75de
2022-03-30 12:31:33 +00:00
Yi-yo Chiang
309fad06f6 Merge "DSU service: Pipeline the installation task to improve performance" 2022-03-30 02:45:44 +00:00
Sarah Chin
301fddda9d Merge "Add support for RAT-based TCP buffer sizes" 2022-03-29 23:25:57 +00:00
Etienne Ruffieux
b7de235729 Merge changes from topic "api-review-result-receiver"
* changes:
  Added error method to interface Bluetooth stats
  [API Review] Replace ResultReceiver by Executor
2022-03-29 20:36:29 +00:00