Loading include/audiomanager/AudioManager.h +5 −1 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ enum { PLAYER_MUTE_PLAYBACK_RESTRICTED = (1 << 3), PLAYER_MUTE_CLIENT_VOLUME = (1 << 4), PLAYER_MUTE_VOLUME_SHAPER = (1 << 5), PLAYER_MUTE_PORT_VOLUME = (1 << 6), }; struct mute_state_t { Loading @@ -74,6 +75,8 @@ struct mute_state_t { bool muteFromClientVolume = false; /** Flag used when volume is muted by volume shaper. */ bool muteFromVolumeShaper = false; /** Flag used when volume is muted by port volume. */ bool muteFromPortVolume = false; explicit operator int() const { Loading @@ -83,6 +86,7 @@ struct mute_state_t { result |= muteFromPlaybackRestricted * PLAYER_MUTE_PLAYBACK_RESTRICTED; result |= muteFromClientVolume * PLAYER_MUTE_CLIENT_VOLUME; result |= muteFromVolumeShaper * PLAYER_MUTE_VOLUME_SHAPER; result |= muteFromPortVolume * PLAYER_MUTE_PORT_VOLUME; return result; } Loading libs/binder/BpBinder.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,9 @@ sp<BpBinder> BpBinder::create(int32_t handle, std::function<void()>* postTask) { && currentValue < sBinderProxyCountHighWatermark && ((trackedValue & WARNING_REACHED_MASK) == 0)) [[unlikely]] { sTrackingMap[trackedUid] |= WARNING_REACHED_MASK; if (sWarningCallback) sWarningCallback(trackedUid); if (sWarningCallback) { *postTask = [=]() { sWarningCallback(trackedUid); }; } } else if (currentValue >= sBinderProxyCountHighWatermark) { ALOGE("Too many binder proxy objects sent to uid %d from uid %d (%d proxies held)", getuid(), trackedUid, trackedValue); Loading libs/binder/TEST_MAPPING +3 −3 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ }, { "name": "libbinder_rpc_unstable_bindgen_test" }, { "name": "binderCacheUnitTest" } ], "presubmit-large": [ Loading Loading @@ -133,9 +136,6 @@ { "name": "binder_sdk_test", "host": true }, { "name": "binderCacheUnitTest" } ], "imports": [ Loading libs/binder/aidl/android/content/pm/ApexStagedEvent.aidl +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package android.content.pm; import android.content.pm.StagedApexInfo; /** * This event is designed for notification to native code listener about * any changes to set of apex packages staged for installation on next boot. Loading @@ -23,5 +25,5 @@ package android.content.pm; * @hide */ parcelable ApexStagedEvent { @utf8InCpp String[] stagedApexModuleNames; StagedApexInfo[] stagedApexInfos; } libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +2 −8 Original line number Diff line number Diff line Loading @@ -135,13 +135,7 @@ interface IPackageManagerNative { void unregisterStagedApexObserver(in IStagedApexObserver observer); /** * Get APEX module names of all APEX that are staged ready for installation * Get information of staged APEXes. */ @utf8InCpp String[] getStagedApexModuleNames(); /** * Get information of APEX which is staged ready for installation. * Returns null if no such APEX is found. */ @nullable StagedApexInfo getStagedApexInfo(in @utf8InCpp String moduleName); StagedApexInfo[] getStagedApexInfos(); } Loading
include/audiomanager/AudioManager.h +5 −1 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ enum { PLAYER_MUTE_PLAYBACK_RESTRICTED = (1 << 3), PLAYER_MUTE_CLIENT_VOLUME = (1 << 4), PLAYER_MUTE_VOLUME_SHAPER = (1 << 5), PLAYER_MUTE_PORT_VOLUME = (1 << 6), }; struct mute_state_t { Loading @@ -74,6 +75,8 @@ struct mute_state_t { bool muteFromClientVolume = false; /** Flag used when volume is muted by volume shaper. */ bool muteFromVolumeShaper = false; /** Flag used when volume is muted by port volume. */ bool muteFromPortVolume = false; explicit operator int() const { Loading @@ -83,6 +86,7 @@ struct mute_state_t { result |= muteFromPlaybackRestricted * PLAYER_MUTE_PLAYBACK_RESTRICTED; result |= muteFromClientVolume * PLAYER_MUTE_CLIENT_VOLUME; result |= muteFromVolumeShaper * PLAYER_MUTE_VOLUME_SHAPER; result |= muteFromPortVolume * PLAYER_MUTE_PORT_VOLUME; return result; } Loading
libs/binder/BpBinder.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,9 @@ sp<BpBinder> BpBinder::create(int32_t handle, std::function<void()>* postTask) { && currentValue < sBinderProxyCountHighWatermark && ((trackedValue & WARNING_REACHED_MASK) == 0)) [[unlikely]] { sTrackingMap[trackedUid] |= WARNING_REACHED_MASK; if (sWarningCallback) sWarningCallback(trackedUid); if (sWarningCallback) { *postTask = [=]() { sWarningCallback(trackedUid); }; } } else if (currentValue >= sBinderProxyCountHighWatermark) { ALOGE("Too many binder proxy objects sent to uid %d from uid %d (%d proxies held)", getuid(), trackedUid, trackedValue); Loading
libs/binder/TEST_MAPPING +3 −3 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ }, { "name": "libbinder_rpc_unstable_bindgen_test" }, { "name": "binderCacheUnitTest" } ], "presubmit-large": [ Loading Loading @@ -133,9 +136,6 @@ { "name": "binder_sdk_test", "host": true }, { "name": "binderCacheUnitTest" } ], "imports": [ Loading
libs/binder/aidl/android/content/pm/ApexStagedEvent.aidl +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package android.content.pm; import android.content.pm.StagedApexInfo; /** * This event is designed for notification to native code listener about * any changes to set of apex packages staged for installation on next boot. Loading @@ -23,5 +25,5 @@ package android.content.pm; * @hide */ parcelable ApexStagedEvent { @utf8InCpp String[] stagedApexModuleNames; StagedApexInfo[] stagedApexInfos; }
libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +2 −8 Original line number Diff line number Diff line Loading @@ -135,13 +135,7 @@ interface IPackageManagerNative { void unregisterStagedApexObserver(in IStagedApexObserver observer); /** * Get APEX module names of all APEX that are staged ready for installation * Get information of staged APEXes. */ @utf8InCpp String[] getStagedApexModuleNames(); /** * Get information of APEX which is staged ready for installation. * Returns null if no such APEX is found. */ @nullable StagedApexInfo getStagedApexInfo(in @utf8InCpp String moduleName); StagedApexInfo[] getStagedApexInfos(); }