diff options
| author | Ytai Ben-Tsvi <ytai@google.com> | 2019-11-25 12:43:28 -0800 |
|---|---|---|
| committer | Ytai Ben-Tsvi <ytai@google.com> | 2019-12-16 14:15:37 -0800 |
| commit | 93c117c86fe089df0851cd024d47bba6142bd98a (patch) | |
| tree | 96be87c6febe52d8516e33f088969135b049b313 /core/java/android | |
| parent | 0b0441d16c87a5104599302c180461a13a84a457 (diff) | |
Implement the soundtrigger_middlewware service
This service is intended to replace:
frameworks/av/include/soundtrigger/ISoundTriggerHwService.h
This change only adds the replacement service, follow up
changes migrate the clients to use the new service and remove
the old one. The new service is feature-equivalent to the new
one, but offers the following advantages:
- AIDL interface (as opposed to hand-written parceling code).
- Pure Java implementation all the way to the HAL.
- Better documentation.
- Rigorous error handling.
- Unit tests.
- Reduced code complexity (less layers, better separation of
concerns).
- Permission-based security model (as opposed to some baked-in
assumptions about process affinity).
Change-Id: I79f4eff105d3e6245990be068b933d4d48c35a0d
Bug: 142070343
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/Context.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 7b580c3bde79..671b589a881a 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -4325,6 +4325,15 @@ public abstract class Context { public static final String SOUND_TRIGGER_SERVICE = "soundtrigger"; /** + * Use with {@link #getSystemService(String)} to access the + * {@link com.android.server.soundtrigger_middleware.SoundTriggerMiddlewareService}. + * + * @hide + * @see #getSystemService(String) + */ + public static final String SOUND_TRIGGER_MIDDLEWARE_SERVICE = "soundtrigger_middleware"; + + /** * Official published name of the (internal) permission service. * * @see #getSystemService(String) |
