692799 Commits

Author SHA1 Message Date
Xusong Wang
9fb5ad2a60 Change OWNERS.
Test: n/a
Change-Id: If647d9f16ab26aab2a6cb7d699031a5db8cd6015
2022-07-19 23:52:35 +00:00
Caren Chang
407d531735 Merge "Add explanation about the purpose of accessibility heading and use case apps should consider." 2022-07-19 22:05:32 +00:00
Andrew Chant
1ae7d6245c Merge "Revert "Remove unused net-module-utils-srcs filegroup."" 2022-07-19 20:32:22 +00:00
Andrew Chant
fdff6e62d3 Revert "Remove unused net-module-utils-srcs filegroup."
Revert submission 2152437-remove-net-module-utils-srcs

Reason for revert: broke build.
Bug: 239599703
Reverted Changes:
I058e1aa37:Remove unused net-module-utils-srcs filegroup.
I7c8a12372:Remove unused net-module-utils-srcs filegroup.

Change-Id: Ib9f9319fd6dfade634eda65cafc8c9f7b643f3bb
2022-07-19 20:27:51 +00:00
Jeff Sharkey
0e27faa039 Merge changes from topic "jul15"
* changes:
  Offer explicit 3-byte vs 4-byte modified UTF-8.
  Cache least recently used output buffer.
2022-07-19 18:59:31 +00:00
Patrick Rohr
4b8edd89ed Merge "Remove unused net-module-utils-srcs filegroup." 2022-07-19 18:06:42 +00:00
Jeff Sharkey
c6b3699b63 Offer explicit 3-byte vs 4-byte modified UTF-8.
As documented in art/runtime/jni/jni_internal.cc, ART has deviated
from the RI by using a 4-byte encoding instead of the 3-byte encoding
required by the JNI specification.

Some users are okay with this 4-byte encoding (where they control
both the reading and writing logic) but other users require
compatibility with the DataOutput/DataInput API contract, so this
change lets users request either behavior.

This change now exercises all tests in both 4-byte and 3-byte modes,
and exhaustively confirms that all valid code-points match the
DataOutput/DataInput contract when in 3-byte mode.

Benchmark results still show significant performance benefits when
using this 3-byte encoding over the upstream RI:

    timeRead_Upstream_mean (ns):                  5090068
    timeRead_LocalUsing3ByteSequences_mean (ns):  1996032
    timeRead_LocalUsing4ByteSequences_mean (ns):  1813250

    timeWrite_Upstream_mean (ns):                 3856276
    timeWrite_LocalUsing3ByteSequences_mean (ns): 1632697
    timeWrite_LocalUsing4ByteSequences_mean (ns):  886503

Bug: 236923096
Test: atest FrameworksCoreTests:CharsetUtilsTest
Test: atest FrameworksCoreTests:FastDataTest
Test: atest FrameworksCoreTests:XmlTest
Test: atest FrameworksCoreTests:BinaryXmlTest
Test: ./frameworks/base/libs/hwui/tests/scripts/prep_generic.sh little && atest CorePerfTests:FastDataPerfTest
Change-Id: Ibddd36410a0d4a909522de011f23a337b53d6889
2022-07-19 10:36:37 -06:00
Treehugger Robot
7dba39cbdd Merge "Add OWNERS for core_jni_helpers.*" 2022-07-19 08:40:04 +00:00
Jack He
71dd611947 Merge changes from topic "le-audio-broadcast-old-api"
* changes:
  le_audio: Extend handling of Broadcaster as active device
  AudioDeviceBroker: Extend createBtDeviceInfo with LE_AUDIO_BROADCAST
2022-07-18 21:29:56 +00:00
Caren Chang
02bbf4b30c Add explanation about the purpose of accessibility heading and use case apps should consider.
Change-Id: I01bdd1fc89d54e62e9ce1f8dc15a58d13c56fabc
Test: N/A, documentation chang
2022-07-18 21:19:44 +00:00
Miguel Aranda
9795cfad96 Merge "Fix CharsetUtf8PerfTest." 2022-07-18 13:32:35 +00:00
Orion Hodson
06471ce8d4 Add OWNERS for core_jni_helpers.*
Bug: 168471625
Test: build/make/tools/checkowners.py frameworks/base/core/jni/OWNERS
Change-Id: Ie337552d8b490e8100cf35b9b0c9780cb771966a
2022-07-18 12:13:15 +01:00
Alex Buynytskyy
2be5b4c118 Cache least recently used output buffer.
- reduce memory allocations especially when Xml is serialized inside a
tight inner loop,
- performance slightly improved.

BEFORE:
100 packages:
[2/4] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.516s)
	timeWrite_Binary_mean: 674979
	threadAllocCount_mean: 59
	timeWrite_Binary_min: 671194
	timeWrite_Binary_median: 674798
	timeWrite_Binary_standardDeviation: 3658
	threadAllocSize_mean: 530176
10 packages:
[2/4] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.542s)
	timeWrite_Binary_mean: 71113
	threadAllocCount_mean: 56
	timeWrite_Binary_min: 70201
	timeWrite_Binary_median: 71237
	timeWrite_Binary_standardDeviation: 692
	threadAllocSize_mean: 59136
1 package:
[2/4] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.091s)
	timeWrite_Binary_mean: 15698
	threadAllocCount_mean: 56
	timeWrite_Binary_min: 15072
	timeWrite_Binary_median: 15677
	timeWrite_Binary_standardDeviation: 410
	threadAllocSize_mean: 6439

AFTER:
100 packages:
[1/1] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.221s)
	timeWrite_Binary_mean: 605862
	threadAllocCount_mean: 53
	timeWrite_Binary_min: 602353
	timeWrite_Binary_median: 604424
	timeWrite_Binary_standardDeviation: 4972
	threadAllocSize_mean: 492748
10 packages:
[1/1] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.575s)
	timeWrite_Binary_mean: 58710
	threadAllocCount_mean: 50
	timeWrite_Binary_min: 57551
	timeWrite_Binary_median: 57798
	timeWrite_Binary_standardDeviation: 2129
	threadAllocSize_mean: 21696
1 package:
[1/1] android.util.XmlPerfTest#timeWrite_Binary: PASSED (10.151s)
	timeWrite_Binary_mean: 11576
	threadAllocCount_mean: 50
	timeWrite_Binary_min: 11315
	timeWrite_Binary_median: 11381
	timeWrite_Binary_standardDeviation: 431
	threadAllocSize_mean: 4336

Test: atest FastDataPerfTest XmlPerfTest
Bug: 195994150
Fixes: 195994150

Merged-In: Ieedd27a676d718967c2fac30bc48a68ae636a180
Change-Id: Ieedd27a676d718967c2fac30bc48a68ae636a180
2022-07-15 16:07:19 -06:00
Grzegorz Kołodziejczyk
b9201a0a9d le_audio: Extend handling of Broadcaster as active device
Patch extends handling Broadcaster as active Bluetooth device.
Broadcast device.

Bug: 150670922
Tag: #feature
Test: PTS and presubmit
Sponsor: jpawlowski@
Merged-In: Ic41c619411f1784bf586aa48ad0fa4a39a37ecb7
Change-Id: Ic41c619411f1784bf586aa48ad0fa4a39a37ecb7
(cherry picked from commit 7c1bf84c373f10ad88f2b220b787dd9f71f1ff76)
2022-07-15 14:58:03 -07:00
Grzegorz Kołodziejczyk
c4a11b4ee1 AudioDeviceBroker: Extend createBtDeviceInfo with LE_AUDIO_BROADCAST
Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: build

Merged-In: I389ce1fb8f6a763e991a00f3bebfac0648086722
Change-Id: I389ce1fb8f6a763e991a00f3bebfac0648086722
(cherry picked from commit 59afd5ccf781d3a7ef76d05cde7336e58c5d9f38)
2022-07-15 14:30:48 -07:00
Jack Yu
8a3803d401 Merge "Improved telephony registry logging" 2022-07-15 05:28:26 +00:00
Jack Yu
c947aed948 Improved telephony registry logging
Bug: 232630223
Test: Manual
Merged-In: Ifd00798a9add597b06677b857c58b3a946fb7435
Change-Id: Ifd00798a9add597b06677b857c58b3a946fb7435
2022-07-14 17:35:28 -07:00
Daeho Jeong
a303ea139d Merge "Make target dirty segment ratio tunable" 2022-07-14 14:56:13 +00:00
Xiao Ma
77af0f33a5 Remove unused net-module-utils-srcs filegroup.
Bug: 238960524
Test: m
Change-Id: I7c8a123729dc249eaf8ea1e4354f2f26411850aa
Merged-In: I7c8a123729dc249eaf8ea1e4354f2f26411850aa
2022-07-14 10:09:54 +00:00
Aaron Huang
371f5eba8f Merge "Dump mNetworkToIfaces in NetworkPolicyManagerService" 2022-07-14 03:34:26 +00:00
Treehugger Robot
d1a6cd9185 Merge "Fix weak global reference overflow" 2022-07-13 22:25:36 +00:00
Beth Thibodeau
1622d409d9 Merge "NotificationPlayer: use AUDIOFOCUS_GAIN_TRANSIENT instead of AUDIOFOCUS_GAIN in looping mode" 2022-07-13 15:58:46 +00:00
Miguel Aranda
9b62bec021 Merge "Fix failing Libcore benchmarks." 2022-07-13 12:44:32 +00:00
Miguel
7a2bd0fb4a Fix CharsetUtf8PerfTest.
The test performed a lot of repetitions of the same append call with a buffer that kept being extended which resulted in OOM errors, but now we use a new buffer each time.

Test: atest CharsetUtf8PerfTest
Bug: 235455275
Change-Id: I10427d315a6d0b45394c74d0c8642f0c085ceb07
2022-07-13 10:25:14 +00:00
Miguel
0abd4763ec Fix failing Libcore benchmarks.
JarFilePerfTest was incorrectly submitted and not working yet, and
SignaturePerfTest had a failing test case.

Test: atest SignaturePerfTest
Change-Id: I739a87c02fdb3dd8c82cd63c8187fa9a8bf05ca7
2022-07-13 09:59:56 +00:00
Aaron Huang
309257255a Dump mNetworkToIfaces in NetworkPolicyManagerService
Dump last interfaces of the network information in dumpsys of
netpolicy.

Output:
Network to interfaces:
  100: {rmnet_data1}]
  101: {v4-wlan0, wlan0}]

Bug: 237640200
Test: FrameworksNetTests
Change-Id: I258f5565e62666cd71222073c692e45e2e5828e2
2022-07-13 14:46:46 +08:00
Wei Sheng Shih
36daf1f2a1 Merge "Extend splash screen exception list to SC-V2" 2022-07-13 01:49:45 +00:00
ot903277
11a19e4c71 Fix weak global reference overflow
When the last item of sRunningAttributionSources is removed, the
current check condition will cause the process of removing
sRunningAttributionSources stopped and return directly, bring in weak
global reference table overflow.

Change the order for smooth removal.

Bug: 218794347
Test: run audio stress test pass
Change-Id: I39072f3b72f0be6d6debbcbc948d7a940ad92785
2022-07-13 09:24:18 +08:00
Treehugger Robot
97f0cbd96f Merge "Update permission OWNERS." 2022-07-12 21:11:44 +00:00
Treehugger Robot
2fd53f29b2 Merge "noop - fix 'jobject -> jclass' in native jni code signature." 2022-07-12 19:12:21 +00:00
Nicolas Geoffray
a82115dc12 Merge "Add a new file for the boot image." 2022-07-12 07:59:01 +00:00
wilsonshih
e16beeffe3 Extend splash screen exception list to SC-V2
Extend the support of the exception list for SC-V2 and apps targeting
S and SC-V2.

Test: atest ActivityRecordTests
Test: com.android.server.wm.SplashScreenExceptionListTest
Bug: 231708538
Merged-In: I5412e81f70cbc9aac3861d13d85e199e949bedc7
Change-Id: I70a2aa4684c1267fe98e0e2260c61042db9c2e36
2022-07-12 14:11:10 +08:00
Maciej Żenczykowski
eabe05581f noop - fix 'jobject -> jclass' in native jni code signature.
These are static methods, see: frameworks/base/core/java/com/android/internal/net/NetworkUtilsInternal.java

  public static native void setAllowNetworkingForProcess(boolean allowNetworking);
  public static native boolean protectFromVpn(FileDescriptor fd);
  public static native boolean protectFromVpn(int socketfd);

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ibac6e7b864823cc94bb5301d47bf244b9dd6bdad
2022-07-12 05:30:03 +00:00
Miguel Aranda
7ec1c694b5 Merge "Final set of libcore benchmarks." 2022-07-11 16:43:07 +00:00
Nicolas Geoffray
ee7e78cc29 Add a new file for the boot image.
In that file, we can list methods which we want to compile but that our
boot image profiling implementation did not cover.

Test: m
Bug: 235557326
Change-Id: Id5241dac826b5d4f581573d8b9b556bde2dabdeb
2022-07-11 14:57:17 +01:00
Treehugger Robot
2bddd216d0 Merge "Fix virtual display cannot be relased." 2022-07-11 10:50:21 +00:00
Chris Li
4b7206b8d8 Merge "[Bugfix][RemoteAnimation] Fix IndexOutOfBoundsException in onAnimationFinished of RemoteAnimationController" 2022-07-11 06:55:00 +00:00
xi yu
2d53bb2d9a [Bugfix][RemoteAnimation] Fix IndexOutOfBoundsException in onAnimationFinished of
RemoteAnimationController

Sometimes mPendingAnimations.remove will be called more than once in one cycle (line 255 - 270) of 
onAnimationFinished, e.g., mPendingAnimations.remove being called again in 
adapters.mAdapter.mCapturedFinishCallback.onAnimationFinished, resulting in 
IndexOutOfBoundsException.

Bug:237989368

Change-Id: Ica771f1ae4cb4ddddb7684bd964504ca9f31ea12
Test: Monkey test
2022-07-11 06:43:43 +00:00
Chiachang Wang
09940f74cb Merge changes from topics "RefactorIR", "appExclusionPrefix", "reStartVpnProfile"
* changes:
  Update method visibility for testing
  Stop VPN profiles by exiting VpnRunner instead of prepareInternal
  Update the prefix in keystore for app exclusion
2022-07-11 01:24:28 +00:00
Bill Yi
87daf9f5cc Merge "Merge SQ3A.220705.003 to aosp-master - DO NOT MERGE" 2022-07-08 20:14:12 +00:00
Bill Yi
16c119018a Merge SQ3A.220705.003 to aosp-master - DO NOT MERGE
Merged-In: I7cffe34a393991c4ef98740f7c3a052c0b6344fb
Merged-In: Ie0b7151fabd09f58d58745a3f9e2e0252e04411a
Change-Id: Id75747f4a2519f9fa1c7850f99f0298a39dbc79e
2022-07-08 07:18:02 -07:00
Xiao Ma
8080688fce Merge "Remove SharedLog usage from NetworkStackClient" 2022-07-08 06:55:04 +00:00
Treehugger Robot
fe752fc2b4 Merge "Update doc for audio-coupled-haptic related stuff." 2022-07-07 23:02:03 +00:00
Steven Moreland
609f7a65b3 Merge "Parcel marshall - disallow RPC Parcels" 2022-07-07 20:49:22 +00:00
Treehugger Robot
ccc3f24699 Merge "Parcel marshall error explain objects" 2022-07-07 18:51:21 +00:00
Daeho Jeong
4ed3251512 Merge changes from topic "gc_sleep_time"
* changes:
  Make minimum gc sleep time tunnable
  Make smart idle maint update write amount record every period
2022-07-07 18:39:45 +00:00
Steven Moreland
aa7b525204 Parcel marshall - disallow RPC Parcels
RPC Parcels need to be interpreted in the context of an RPC session.
Otherwise, they don't make sense.

Bug: N/A
Test: N/A
Change-Id: I7a7b83341372faae357927f1b23be181b2f907af
2022-07-07 16:52:47 +00:00
Steven Moreland
7a2f642bae Parcel marshall error explain objects
A kernel binder object for libbinder can either be a binder object
or an FD.

Bug: N/A (from email thread)
Test: N/A
Change-Id: Iaa02595c5859879749f776222eccca52e782cbfb
2022-07-07 16:46:54 +00:00
linkai
45939e7eaa Fix virtual display cannot be relased.
Bug:238368970

1. IMediaProjectionCallback#onStop to release virtual display and
remove mVirtualDisplayDevices.
2. DisplayManagerService#releaseVirtualDisplayInternal cannot remove display device due to null mVirtualDisplayDevices.

Signed-off-by: linkai <linkai@xiaomi.com>
Change-Id: Idb3f4aabe894b17a9681dae9f1028bd44ac36f1e
2022-07-07 21:42:23 +08:00
Steven Moreland
bc67752894 Merge "Binder: clearCallingIdentity is kernel binder" 2022-07-06 23:58:03 +00:00