diff options
author | Glenn Kasten <gkasten@google.com> | 2013-07-15 14:45:07 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-07-19 09:30:37 -0700 |
commit | 4182c4e2a07e2441fcd5c22eaff0ddfe7f826f61 (patch) | |
tree | c7ed5d9b71f919bf664dd0cb6cbdd1c3de2f9241 /include | |
parent | 0d61251648b5110bfc33ef5b3d19bbf65db0a7b5 (diff) | |
download | frameworks_av-4182c4e2a07e2441fcd5c22eaff0ddfe7f826f61.zip frameworks_av-4182c4e2a07e2441fcd5c22eaff0ddfe7f826f61.tar.gz frameworks_av-4182c4e2a07e2441fcd5c22eaff0ddfe7f826f61.tar.bz2 |
Use AudioSystem::setLowRamDevice() to configure memory
Bug: 9798886
Change-Id: I9321e3f369f1ed9429ae222e3926ebdeb012b8b0
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioSystem.h | 2 | ||||
-rw-r--r-- | include/media/IAudioFlinger.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index fb1d631..e7b85c0 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -246,6 +246,8 @@ public: static uint32_t getPrimaryOutputSamplingRate(); static size_t getPrimaryOutputFrameCount(); + static status_t setLowRamDevice(bool isLowRamDevice); + // Check if hw offload is possible for given format, stream type, sample rate, // bit rate, duration, video and streaming or offload property is enabled static bool isOffloadSupported(const audio_offload_info_t& info); diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 0aa5870..de45aa8 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -197,6 +197,10 @@ public: virtual uint32_t getPrimaryOutputSamplingRate() = 0; virtual size_t getPrimaryOutputFrameCount() = 0; + // Intended for AudioService to inform AudioFlinger of device's low RAM attribute, + // and should be called at most once. For a definition of what "low RAM" means, see + // android.app.ActivityManager.isLowRamDevice(). + virtual status_t setLowRamDevice(bool isLowRamDevice) = 0; }; |