Merge "Use the PersistableBundle instead of the Bundle" into sc-dev am: 20e5c931b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13917726 Change-Id: I20c50141818d4b32d001ba4fe16c209927eec542
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.media.permission.Identity;
|
||||
import android.os.Bundle;
|
||||
import android.os.PersistableBundle;
|
||||
import android.os.RemoteCallback;
|
||||
import android.os.SharedMemory;
|
||||
|
||||
@@ -229,13 +230,14 @@ interface IVoiceInteractionManagerService {
|
||||
* Set configuration and pass read-only data to hotword detection service.
|
||||
*
|
||||
* @param options Application configuration data provided by the
|
||||
* {@link VoiceInteractionService}. The system strips out any remotable objects or other
|
||||
* contents that can be used to communicate with other processes.
|
||||
* {@link VoiceInteractionService}. PersistableBundle does not allow any remotable objects or
|
||||
* other contents that can be used to communicate with other processes.
|
||||
* @param sharedMemory The unrestricted data blob provided by the
|
||||
* {@link VoiceInteractionService}. Use this to provide the hotword models data or other
|
||||
* such data to the trusted process.
|
||||
*/
|
||||
void setHotwordDetectionServiceConfig(in Bundle options, in SharedMemory sharedMemory);
|
||||
void setHotwordDetectionServiceConfig(
|
||||
in PersistableBundle options, in SharedMemory sharedMemory);
|
||||
|
||||
/**
|
||||
* Requests to shutdown hotword detection service.
|
||||
|
||||
Reference in New Issue
Block a user