|
|
|
@ -57,6 +57,7 @@ enum {
|
|
|
|
|
RELEASE_RECORDING_FRAME_HANDLE,
|
|
|
|
|
RELEASE_RECORDING_FRAME_HANDLE_BATCH,
|
|
|
|
|
SET_AUDIO_RESTRICTION,
|
|
|
|
|
GET_GLOBAL_AUDIO_RESTRICTION,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class BpCamera: public BpInterface<ICamera>
|
|
|
|
@ -192,7 +193,7 @@ public:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t setAudioRestriction(int32_t mode) {
|
|
|
|
|
status_t setAudioRestriction(int32_t mode) {
|
|
|
|
|
Parcel data, reply;
|
|
|
|
|
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
|
|
|
|
|
data.writeInt32(mode);
|
|
|
|
@ -200,6 +201,13 @@ public:
|
|
|
|
|
return reply.readInt32();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32_t getGlobalAudioRestriction() {
|
|
|
|
|
Parcel data, reply;
|
|
|
|
|
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
|
|
|
|
|
remote()->transact(GET_GLOBAL_AUDIO_RESTRICTION, data, &reply);
|
|
|
|
|
return reply.readInt32();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status_t setVideoBufferMode(int32_t videoBufferMode)
|
|
|
|
|
{
|
|
|
|
|
ALOGV("setVideoBufferMode: %d", videoBufferMode);
|
|
|
|
@ -509,6 +517,11 @@ status_t BnCamera::onTransact(
|
|
|
|
|
reply->writeInt32(setAudioRestriction(mode));
|
|
|
|
|
return NO_ERROR;
|
|
|
|
|
} break;
|
|
|
|
|
case GET_GLOBAL_AUDIO_RESTRICTION: {
|
|
|
|
|
CHECK_INTERFACE(ICamera, data, reply);
|
|
|
|
|
reply->writeInt32(getGlobalAudioRestriction());
|
|
|
|
|
return NO_ERROR;
|
|
|
|
|
} break;
|
|
|
|
|
default:
|
|
|
|
|
return BBinder::onTransact(code, data, reply, flags);
|
|
|
|
|
}
|
|
|
|
|