Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4655f856 authored by The Android Open Source Project's avatar The Android Open Source Project
Browse files

android-2.1_r1 snapshot

parent cc8c35ce
Loading
Loading
Loading
Loading
+16 −4
Original line number Diff line number Diff line
@@ -669,9 +669,15 @@ status_t CameraService::Client::startRecording()
    LOGD("startRecording (pid %d)", getCallingPid());

    if (mMediaPlayerBeep.get() != NULL) {
        // do not play record jingle if stream volume is 0
        // (typically because ringer mode is silent).
        int index;
        AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index);
        if (index != 0) {
            mMediaPlayerBeep->seekTo(0);
            mMediaPlayerBeep->start();
        }
    }

    mHardware->enableMsgType(CAMERA_MSG_VIDEO_FRAME);

@@ -888,9 +894,15 @@ void CameraService::Client::handleShutter(
{
    // Play shutter sound.
    if (mMediaPlayerClick.get() != NULL) {
        // do not play shutter sound if stream volume is 0
        // (typically because ringer mode is silent).
        int index;
        AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index);
        if (index != 0) {
            mMediaPlayerClick->seekTo(0);
            mMediaPlayerClick->start();
        }
    }

    // Screen goes black after the buffer is unregistered.
    if (mSurface != 0 && !mUseOverlay) {
+2 −2
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ private:

    ~SurfaceControl();

    status_t validate(SharedClient const* cblk) const;
    status_t validate() const;
    void destroy();
    
    sp<SurfaceComposerClient>   mClient;
@@ -190,7 +190,7 @@ private:

    status_t getBufferLocked(int index, int usage);
   
           status_t validate(SharedClient const* cblk) const;
           status_t validate() const;

    inline const GraphicBufferMapper& getBufferMapper() const { return mBufferMapper; }
    inline GraphicBufferMapper& getBufferMapper() { return mBufferMapper; }
Loading