- Oct 26, 2021
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Etienne Ruffieux authored
Tag: #feature Test: Manual Bug: 204179568 Change-Id: Ibea9f98eb25447e7ca3a07310615d14caf2c8aa1
-
Treehugger Robot authored
-
Anton Hansson authored
-
Anton Hansson authored
This reverts commit 48639319. Reason for revert: broke the build due to missing wifi change Change-Id: I9610a92c1b19aeb0ddab68d10f2abf2f9ed3a205
-
Anton Hansson authored
-
Aaron Huang authored
-
Treehugger Robot authored
-
Aaron Huang authored
NET_CAPABILITY_TEMPORARILY_NOT_METERED is a capability indicates networks are generally metered, but are currently unmetered. NetworkIdentity currently did not consider it which will cause Settings shows high data usage. To exclude unmetered 5g from the metered usage, NetworkIdentity should consider a network with NET_CAPABILITY_TEMPORARILY_NOT_METERED capabilities as not metered. Bug: 183776809 Test: FrameworksNetTests:NetworkIdentityTest Change-Id: Iadbc082b52f16708207e8aecf0904356bc0898ab
-
Aaron Huang authored
-
Aaron Huang authored
-
- Oct 25, 2021
-
-
Treehugger Robot authored
-
Etienne Ruffieux authored
This reverts commit e8f2077f. Reason for revert: Introducing regression for gms core Test: None Change-Id: I644b10c1869c12e1622300de43bfbdb57fb583d8
-
Ytai Ben-tsvi authored
-
Nathan Harold authored
-
Treehugger Robot authored
-
Daniel Norman authored
APEXes can already contain RRO APKs by using the 'rro' apex Soong module field. However, these RROs were not being loaded properly by Zygote or PackageManagerService. For all RROs inside APEXes, the RRO uses the same overlay config that is used for other RROs on the APEX's preinstalled partition. For RROs targeting 'android', which are installed by Zygote using AssetManager: 1. OverlayConfig looks for active APEXes in the apex-info-list file, which is already accessible to Zygote. 2. OverlayConfig passes the APEX module names to OverlayConfigParser, for each preinstalled-partition. 3. OverlayConfigParser uses OverlayScanner to scan the each /apex/<APEX>/overlay directory. For other RROs: 1. PackageManagerService already parses and provides RROs inside APEXes to OverlayConfig. 2. RROs inside APEXes used to have no config rule applied because their path prefix (/apex/) did not match any partition rule. Now, their preinstalled path is used instead. Bug: 199200417 Test: Define a static RRO targeting 'android' inside a /vendor APEX. Define a static RRO for settings provider inside a /vendor APEX. Observe APEXes are enabled by default. Test: Make a change to an RRO inside a /vendor APEX. m <apex>; adb install <apex artifact>; adb reboot; Observe change has taken effect. Change-Id: I2bce9bc704789329b8c6aac6d476f17ff6718e0f Merged-In: I2bce9bc704789329b8c6aac6d476f17ff6718e0f
-
Oscar Shu authored
* changes: Adding wifi nearby permission to DefaultPermissionGrantPolicy Add new wifi nearby devices app-ops New runtime permission NEARBY_WIFI_DEVICES
-
Rambo Wang authored
-
Ytai Ben-Tsvi authored
fileDescriptorToHidlMemory() does not take ownership of the FileDescriptor, so no need to dup it. Test: Manual verification of soundtrigger use-cases Bug: 202424221 Change-Id: I43ab5c25f5b3abdec236c0a78a03a197ad2d0da2 Merged-In: I43ab5c25f5b3abdec236c0a78a03a197ad2d0da2
-
Treehugger Robot authored
-
Etienne Ruffieux authored
Added maskedEquals method to BluetoothLeUtils to prevent hidden API usage. Tag: #feature bug: 200200870 Test: Manual Change-Id: I7517cfef0b9e058e36d8d325f4a5ec653b1f804b
-
Treehugger Robot authored
-
Michael Groover authored
-
Rahul Sabnis authored
-
Aaron Huang authored
To support unmetered 5g, have buildTemplateMobileWithRatType take metered parameter to build a template which could be used to filter an unmetered network. Bug: 183776809 Test: atest FrameworksNetTests:NetworkStatsServiceTest Change-Id: Ia310d90eceeb572a35ce9518de02b198cae16705 Merged-In: Ia310d90eceeb572a35ce9518de02b198cae16705
-
Aaron Huang authored
In old design, only metered mobile network would be matched, which means that only metered stats could be read if callers query the mobile stats. Currently, the caller in NetworkPolicyManagerService was updated to use the NetworkTemplate constructor with metered parameter in aosp/1563312 which means that the template will be created by a given meteredness. Thus, the hardcode metered can be removed. Remove the metered check from matches method will cause a different behavior. Therefore, to keep the original behavior, if the match rule is MATCH_MOBILE or MATCH_MOBILE_WILDCARD, it should pass METERED_YES to the constructor to build a metered template. Also, if a caller creates a template by calling the constructor with metered as a parameter, the behavior will also be changed. Therefore, if the caller expects to get metered stats then it should change to pass METERED_YES. If the caller expects to get both metered and unmetered stats then it should remain METERED_ALL and it would be a bug that been fixed by this patch. Bug: 183776809 Bug: 202092687 Test: atest FrameworksNetTests:NetworkStatsServiceTest manually test by generating traffic and check the data counts from "adb shell dumpsys netstats --uid" almost equal to the result from "adb shell cmd stats pull-source 10082" Change-Id: I66dd51b020f6d895cd002acc05bef6b6315cd447 Merged-In: I66dd51b020f6d895cd002acc05bef6b6315cd447
-
Snild Dolkow authored
setShouldAlwaysRespectAppRequestedMode() is called from tests to make DisplayModeDirector.getDesiredDisplayModeSpecs() to ignore non-app votes. However, the set boolean will have no effect until something triggers a call to that getter. This caused MatchContentFrameRateTest#testMatchContentFramerate_Auto to fail on devices with a lower-than-max peak_refresh_rate setting (or the fallback resource config_defaultPeakRefreshRate): its setFrameRate() call doesn't trigger a call to updateRefreshRateSettingLocked() or any other vote update, so the lower peak value is still in effect in parts of the system. Notify the 'desired specs' listener when changing the bool will allow the new mAlwaysRespectAppRequest value to properly take effect. Any multi-refresh-rate device should be able to reproduce like so: $ adb shell 'settings put system peak_refresh_rate 60' On userdebug, you can overlay config_defaultPeakRefreshRate instead: $ adb root $ adb shell 'settings put system peak_refresh_rate ""' # remove setting $ adb shell cmd overlay fabricate --target android \ --name DefaultPeak60 \ android:integer/config_defaultPeakRefreshRate 0x10 60 $ adb shell cmd overlay enable com.android.shell:DefaultPeak60 $ adb shell stop $ adb shell start # so system_server loads the new resource value $ adb shell cmd overlay lookup android \ android:integer/config_defaultPeakRefreshRate # should output "60" Bug: 204048977 Test: run cts -m CtsGraphicsTestCases -t android.graphics.cts.MatchContentFrameRateTest#testMatchContentFramerate_Auto Change-Id: Ic6c2024ab1067ad7ba821190fe05009dac79b929
-
- Oct 24, 2021
-
-
Jiyong Park authored
The ndk_platform backend will soon be deprecated because the ndk backend can serve the same purpose. This is to eliminate the confusion about having two variants (ndk and ndk_platform) for the same ndk backend. Bug: 161456198 Test: m Merged-In: I674244ff9b873d3779d3d649822389ad441fa0af Change-Id: I674244ff9b873d3779d3d649822389ad441fa0af (cherry picked from commit 672b1349)
-
- Oct 23, 2021
-
-
Chris Li authored
Merge "Unregister configuration listener after the WindowProcessController was disallowed to be overridden."
-
- Oct 22, 2021
-
-
Lucas Dupin authored
-
Yifan Hong authored
-
- Oct 21, 2021
-
-
bkchoi authored
Bug: 202314754 Test: No need Change-Id: If0042d64c55484ae361fc08e785e74c026247553
-
Etienne Ruffieux authored
Added @SystemApi annotation to BluetoothActivityEnergyInfo and UidTraffic getters for mainline compatibility. Replaced raw array by List. Deleted unused constructors. Tag: #feature Bug: 200201373 Test: Manual Change-Id: Id93215f48bf08d31ac269af9e064cf598f50b6d3
-
xshu authored
Grant this by default with the other nearby permission. Bug: 197776854 Test: compiles Change-Id: Iff1894a545889230c08578d8ae163116152ab28a Merged-In: Iff1894a545889230c08578d8ae163116152ab28a
-
Bernardo Rufino authored
-
Lucas Lin authored
-
- Oct 20, 2021
-
-
Jing Ji authored
-