- Jan 12, 2024
-
-
lizhigang authored
Splice can be used to speed up file copy operations by avoiding moving any memory between kernel/user space. But splice copy can not support from socket file to regular/socket file directly. So use pipe file as proxy, socket/regular --> pipe --> socket/regular. Even it needs 2 times splice syscall, it is still much faster than user space copy. Please refer to the comparison data below for the time consumption of executing FileUtils.copy in FileUtilsTest:testCopy_SocketToFile_FileToSocket file-->socket(unit ms): 32KB: user_cp:0.604, splice_cp:0.113, reduce 80% 32MB: user_cp:236, splice_cp:68, reduce 71% socket-->file(unit ms): 32KB: user_cp:0.611, splice_cp:0.240, reduce 61% 32MB: user_cp:284, splice_cp:88, reduce 69% The network environment for this test is localhost, and the data in real scenarios depends more on the actual network environment. Test: atest FrameworksCoreTests:android.os.FileUtilsTest Change-Id: I0636647934a889ce95bdf4df0db428cb370148fd Signed-off-by:
lizhigang <lizhigang.1220@bytedance.com>
-
- Jan 08, 2024
-
-
Riddle Hsu authored
Merge "Reset top activity's mWaitForEnteringPinnedMode when aborting an incomplete pip-entry" into main
-
Treehugger Robot authored
-
Nelson Li authored
The primary purpose of validate_framework_keymaps is to perform checks on all *.kl, *.kcm, and *.idc files using the "validatekeymaps -q" command. This action can be replaced by using a genrule. Bug: 318785074 Test: m validate_framework_keymaps Change-Id: I657466d7ee2cec29900beeb0610cb0d30f34f92e
-
- Jan 06, 2024
-
-
Treehugger Robot authored
-
Yifan Hong authored
Non-A/B has been deprecated for long. During non-A/B updates, compatibility.zip is checked with VintfObject.verify(), which is another deprecated function that always returns compatible if a list of package VINTF XMLs are supplied. (see below.) Hence, the private RecoverySystem.verifyPackageCompatibility was just useless code that unconditionally returns true except for invalid ZIP file. Remove it. Replace the public RecoverySystem.verifyPackageCompatibility and make it return true unconditonally. VintfObject.verify() with OTA XMLs are deprecated per http://b/139300422 [VINTF] Delete OTA vintf checking code in http://r.android.com/1194233 ("Delete VINTF compatibility checks during OTA."), in 2019. We had decided that compatibility checks during OTA should be removed, and moved to OTA generation time instead. Using an old libvintf on the device to check against new libvintf metadata required forward compatibility of libvintf, which cannot be achieved. Instead, the device should verify the signature of the OTA to verify its source. Test: TH Bug: 270169217 Bug: 139300422 Change-Id: I775d29e4cd1d165233e07cfb820d1fe343fa4757
-
- Jan 05, 2024
-
-
Rex Hoffman authored
Merge "Uptesting is moving folks to /external/robolectric from /external/robolectric-shadows" into main
-
Devin Moore authored
-
Eric Biggers authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Eric Biggers authored
This test is in neither presubmit nor postsubmit. It should be in presubmit, but add it to postsubmit as a first step. Bug: 296464083 Test: N/A Change-Id: I6453d92fea76efab6554e4315cf9f38d84e8e072
-
Eric Biggers authored
-
Eric Biggers authored
-
Paul Duffin authored
Copies the system version of the `api-versions.xml` file to a file `api-versions_system.xml` in the top level dist directory. Bug: 190665366 Test: m sdk dist # Check to make sure that the file exists. Change-Id: Ie139f81a819eb5f389363ffdefa7bc42d36804e0
-
Rex Hoffman authored
We maintain /external/robolectric (keep it in sync with github/google3) and are getting ready to delete /external/robolectric-shadows Bug: 314757990 Test: atest same failing tests before and after in services/robotests. Flag: NA Change-Id: Ie3d2e902ffcba6b9d159b78592f7d6ce31288a2f
-
Dorin Drimus authored
-
hongchao.yin authored
do not unmute when disconnect hdmi_out. Bug: 297980843 Test: play some video, mute it, then unplug hdmitx, plug hdmitx Change-Id: I1005550cbf7f8c2e586397ab7127a7fc087dde1d Signed-off-by:
hongchao.yin <hongchao.yin@amlogic.com>
-
Sooraj Sasindran authored
-
- Jan 04, 2024
-
-
Pawan Wagh authored
-
Eric Biggers authored
The userSerial parameter is being removed from the vold methods that don't use it. Update the callers accordingly. Note: later CLs will remove the serialNumber parameter from methods in StorageManagerService too. This CL simply updates the calls to vold. Bug: 316035110 Test: presubmit Flag: N/A, mechanical refactoring Change-Id: Ide5397693d594e0b1fad81c031e3c9190fd0bdde
-
Eric Biggers authored
-
Pawan Wagh authored
Test: m framework-all Test: Compiled and applied OTA using settings app using stable interface m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk Bug: 317914533 Change-Id: I393df5218c60303dbea60386c680b75b553ddac2
-
Prabir Pradhan authored
-
Alexei Nicoara authored
-
Azhara Assanova authored
-
Alexei Nicoara authored
Change-Id: Icc8a7b899ccb54196ece9cccbfe3658547f0603c
-
buwenjing authored
When aborting an incomplete pip-entry, reset top activity mWaitForEnteringPinnedMode to prevent skipping it's window frame computation later. Bug: 318553345 Test: Manual test Change-Id: I9378f54957534c2fab7d877d03bd40d2573959da Signed-off-by:
buwenjing <buwenjing@xiaomi.com>
-
- Jan 03, 2024
-
-
Treehugger Robot authored
-
Peiyong Lin authored
Toast message should have a target package that receives and resolves the intent, otherwise it will be sent to all components in all packages which could result in crashes. Bug: b/318460567 Test: manual Change-Id: I9918ae7d273aa0bda6a39294bba878d9b58cf1b5
-
Sooraj Sasindran authored
Bugs: 307559608 Change-Id: I0c600c1a8c96fef4d820e41a6188862672f535af
-
Arpit Singh authored
We don't have a way to determine if devices can actually report HID usage keys. Marking them as fallback only. Bug: 297094448 Bug: 317838112 Test: atest inputflinger_tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:45f626a154f66f4cceecaf6e32392741a00529a3) Merged-In: I45710f9e6237c86613717fab779dbd7cc5c66c86 Change-Id: I45710f9e6237c86613717fab779dbd7cc5c66c86
-
Steven Moreland authored
* changes: Change the native_transact to handle local binder txns Update HwNoService to implement IServiceManager.Stub
-
Oli Lan authored
-
Treehugger Robot authored
-
Nelson Li authored
Bug: 318325153 Test: m frameworks-base-overlays frameworks-base-overlays-debug Change-Id: I84bd21ab8a3a28250b50b5f9bdb6d7ed5a2e73f7
-
Devin Moore authored
This is only enabled for IServiceManager for the fake HwNoService class that replaces the remote hwservicemanager on devices that have HIDL disabled. Test: boot CF without hwservicemanager Bug: 218588089 Change-Id: Ibd2ad90aad7b70d61b70ec29f654f99dcf7610d1
-
- Jan 02, 2024
-
-
Mateus Azis authored
-
Steven Moreland authored
Merge changes from topics "libjnigraphics-fix-history", "validate-version-script-stub-tags" into main * changes: libjnigraphics: fix map.txt typo libjnigraphics: remove typo markers
-
Azhara Assanova authored
Bug: 293467489 Test: tested on device Change-Id: I1abb2b880a37f18c0a5e28c4e22d739703d1f20a Merged-In: I277458bb1f6d7ece1f9efc8054a8d3d9b3924000
-