From 2e28699a6665c7437542527368697ea06a5bafba Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Wed, 1 Jul 2015 12:29:40 -0700 Subject: [PATCH] Add a sky media service to make it possible to play a sound. I didn't exactly follow the android API, but pretty close. Also started a java/common implementation for things like DataPipeUtils. I only needed the ability to copy from a data pipe to a file, so that's the only function we have so far. Fixes https://github.com/domokit/mojo/issues/270 R=abarth@chromium.org, abarth@google.com Review URL: https://codereview.chromium.org/1211913005. --- .../android/org/domokit/sky/shell/ServiceRegistry.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/flutter/shell/android/org/domokit/sky/shell/ServiceRegistry.java b/engine/src/flutter/shell/android/org/domokit/sky/shell/ServiceRegistry.java index 49affd1435..73c87d77a5 100644 --- a/engine/src/flutter/shell/android/org/domokit/sky/shell/ServiceRegistry.java +++ b/engine/src/flutter/shell/android/org/domokit/sky/shell/ServiceRegistry.java @@ -4,6 +4,8 @@ package org.domokit.sky.shell; +import android.util.Log; + import java.util.Map; import java.util.TreeMap; @@ -11,6 +13,7 @@ import java.util.TreeMap; * An registry for services. **/ public class ServiceRegistry { + private static final String TAG = "ServiceRegistry"; private Map mRegistrations; public static final ServiceRegistry SHARED = new ServiceRegistry(); @@ -26,6 +29,9 @@ public class ServiceRegistry { } public ServiceFactory get(String interfaceName) { + if (!mRegistrations.containsKey(interfaceName)) { + Log.e(TAG, "Unknown service " + interfaceName); + } return mRegistrations.get(interfaceName); } }