Skip to content
Snippets Groups Projects
  1. Oct 26, 2021
  2. Oct 25, 2021
    • Treehugger Robot's avatar
    • Etienne Ruffieux's avatar
      Revert "Removed BluetoothDevice#prepareToEnterProcess" · 255c70fb
      Etienne Ruffieux authored
      This reverts commit e8f2077f.
      
      Reason for revert: Introducing regression for gms core
      
      Test: None
      Change-Id: I644b10c1869c12e1622300de43bfbdb57fb583d8
      255c70fb
    • Ytai Ben-tsvi's avatar
      Merge "Avoid unnecessary dup" · c333d989
      Ytai Ben-tsvi authored
      c333d989
    • Nathan Harold's avatar
    • Treehugger Robot's avatar
    • Daniel Norman's avatar
      Fix RRO loading from inside APEXes. · 653a1c1a
      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
      653a1c1a
    • Oscar Shu's avatar
      Merge changes from topic "nearbyWifi" · 5b4121cb
      Oscar Shu authored
      * changes:
        Adding wifi nearby permission to DefaultPermissionGrantPolicy
        Add new wifi nearby devices app-ops
        New runtime permission NEARBY_WIFI_DEVICES
      5b4121cb
    • Rambo Wang's avatar
    • Ytai Ben-Tsvi's avatar
      Avoid unnecessary dup · 0b7ec941
      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
      0b7ec941
    • Treehugger Robot's avatar
    • Etienne Ruffieux's avatar
      Replaced BitUtils#maskedEquals hidden API call · b46a54d2
      Etienne Ruffieux authored
      Added maskedEquals method to BluetoothLeUtils to prevent
      hidden API usage.
      
      Tag: #feature
      bug: 200200870
      Test: Manual
      Change-Id: I7517cfef0b9e058e36d8d325f4a5ec653b1f804b
      b46a54d2
    • Treehugger Robot's avatar
    • Michael Groover's avatar
    • Rahul Sabnis's avatar
    • Aaron Huang's avatar
      Have buildTemplateMobileWithRatType take metered parameter · 4f3a4253
      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
      4f3a4253
    • Aaron Huang's avatar
      Respect metered filter in matchesMobile* · d951da22
      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
      d951da22
    • Snild Dolkow's avatar
      Update display mode when setting mAlwaysRespectAppRequest · a5f3ca1a
      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
      a5f3ca1a
  3. Oct 24, 2021
    • Jiyong Park's avatar
      Remove ndk_platform backend. Use the ndk backend. · 0c103dcd
      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)
      0c103dcd
  4. Oct 23, 2021
  5. Oct 22, 2021
  6. Oct 21, 2021
  7. Oct 20, 2021
Loading