From 6020cd818a17d1d38a85157b0d44e3505fe791ee Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Sun, 1 Mar 2015 14:53:06 +0100 Subject: [PATCH] Add Lightweight Icing service API --- .../android/gms/appdatasearch/UsageInfo.aidl | 3 +++ .../android/gms/appdatasearch/UsageInfo.java | 24 +++++++++++++++++++ .../internal/ILightweightAppDataSearch.aidl | 8 +++++++ .../ILightweightAppDataSearchCallbacks.aidl | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 src/com/google/android/gms/appdatasearch/UsageInfo.aidl create mode 100644 src/com/google/android/gms/appdatasearch/UsageInfo.java create mode 100644 src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearch.aidl create mode 100644 src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearchCallbacks.aidl diff --git a/src/com/google/android/gms/appdatasearch/UsageInfo.aidl b/src/com/google/android/gms/appdatasearch/UsageInfo.aidl new file mode 100644 index 0000000..b52e3d4 --- /dev/null +++ b/src/com/google/android/gms/appdatasearch/UsageInfo.aidl @@ -0,0 +1,3 @@ +package com.google.android.gms.appdatasearch; + +parcelable UsageInfo; \ No newline at end of file diff --git a/src/com/google/android/gms/appdatasearch/UsageInfo.java b/src/com/google/android/gms/appdatasearch/UsageInfo.java new file mode 100644 index 0000000..47e1239 --- /dev/null +++ b/src/com/google/android/gms/appdatasearch/UsageInfo.java @@ -0,0 +1,24 @@ +/* + * Copyright 2013-2015 µg Project Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.android.gms.appdatasearch; + +import org.microg.safeparcel.AutoSafeParcelable; + +public class UsageInfo extends AutoSafeParcelable { + + public static Creator CREATOR = new AutoCreator<>(UsageInfo.class); +} diff --git a/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearch.aidl b/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearch.aidl new file mode 100644 index 0000000..77e618a --- /dev/null +++ b/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearch.aidl @@ -0,0 +1,8 @@ +package com.google.android.gms.appdatasearch.internal; + +import com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearchCallbacks; +import com.google.android.gms.appdatasearch.UsageInfo; + +interface ILightweightAppDataSearch { + void view(ILightweightAppDataSearchCallbacks callbacks, String packageName, in UsageInfo[] usageInfos); +} diff --git a/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearchCallbacks.aidl b/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearchCallbacks.aidl new file mode 100644 index 0000000..338a142 --- /dev/null +++ b/src/com/google/android/gms/appdatasearch/internal/ILightweightAppDataSearchCallbacks.aidl @@ -0,0 +1,4 @@ +package com.google.android.gms.appdatasearch.internal; + +interface ILightweightAppDataSearchCallbacks { +}