Merge "Move CompanionDeviceManagerService to a place of its own" into oc-dev

am: 992541027b

Change-Id: Ie45e68269e37bb65a9eca4bda3a38019f8e12162
This commit is contained in:
Eugene Susla
2017-04-19 21:28:03 +00:00
committed by android-build-merger
4 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ services := \
appwidget \
autofill \
backup \
companion \
coverage\
devicepolicy \
midi \

View File

@@ -0,0 +1,12 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := services.companion
LOCAL_SRC_FILES += \
$(call all-java-files-under,java)
LOCAL_JAVA_LIBRARIES := services.core
include $(BUILD_STATIC_JAVA_LIBRARY)

View File

@@ -15,7 +15,7 @@
*/
package com.android.server.print;
package com.android.server.companion;
import static com.android.internal.util.CollectionUtils.size;
import static com.android.internal.util.Preconditions.checkArgument;
@@ -81,7 +81,6 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Function;
//TODO move to own package!
//TODO onStop schedule unbind in 5 seconds
//TODO make sure APIs are only callable from currently focused app
//TODO schedule stopScan on activity destroy(except if configuration change)

View File

@@ -159,7 +159,7 @@ public final class SystemServer {
private static final String PRINT_MANAGER_SERVICE_CLASS =
"com.android.server.print.PrintManagerService";
private static final String COMPANION_DEVICE_MANAGER_SERVICE_CLASS =
"com.android.server.print.CompanionDeviceManagerService";
"com.android.server.companion.CompanionDeviceManagerService";
private static final String USB_SERVICE_CLASS =
"com.android.server.usb.UsbService$Lifecycle";
private static final String MIDI_SERVICE_CLASS =