Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf88dfea authored by Fan Zhang's avatar Fan Zhang
Browse files

Remove in-app contract lib/aidl

Will move the definitions into framework as SystemAPI

Bug: 65065268
Test: builds
Change-Id: If60584066ce28bbb68a9e9a3ecb5656686cbde4a
parent 9e2df600
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@ LOCAL_PRIVILEGED_MODULE := true
LOCAL_STATIC_ANDROID_LIBRARIES := \
    android-support-v4

LOCAL_STATIC_JAVA_LIBRARIES := \
    settings-intelligence-contract

LOCAL_USE_AAPT2 := true

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
+0 −3
Original line number Diff line number Diff line
@@ -21,8 +21,5 @@
    <uses-sdk android:minSdkVersion="25" android:targetSdkVersion="25" />

    <application>
        <service
            android:name=".suggestions.SuggestionService"
            android:exported="true" />
    </application>
</manifest>

contract/Android.mk

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := settings-intelligence-contract

LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations

LOCAL_SRC_FILES := \
        $(call all-java-files-under, src) \
        $(call all-aidl-files-under, src) \
        $(call all-Iaidl-files-under, src)

LOCAL_SDK_VERSION := system_current

include $(BUILD_STATIC_JAVA_LIBRARY)
+0 −8
Original line number Diff line number Diff line
package com.android.settings.intelligence.suggestions;

interface ISuggestionService {
    /**
     * Whether the suggestion service is enabled.
     */
    boolean isEnabled() = 0;
}
 No newline at end of file
+0 −37
Original line number Diff line number Diff line
/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * 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.android.settings.intelligence.suggestions;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class SuggestionService extends Service {

    private SuggestionServiceBinder mServiceBinder;

    @Override
    public void onCreate() {
        super.onCreate();
        mServiceBinder = new SuggestionServiceBinder(this);
    }

    @Override
    public IBinder onBind(Intent intent) {
        return mServiceBinder;
    }
}
Loading