mirror of
https://github.com/ioacademy-jikim/android_framwork.git
synced 2026-08-11 16:32:55 +00:00
12
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SHARED_LIBRARIES = liblog libutils libhidlbase android.hardware.samples@1.0
|
||||
LOCAL_SRC_FILES := client.cpp
|
||||
LOCAL_MODULE := my_client
|
||||
include $(BUILD_EXECUTABLE)
|
||||
@@ -0,0 +1,20 @@
|
||||
#include <android-base/logging.h>
|
||||
#include <android/hardware/samples/1.0/IFoo.h>
|
||||
#include <set>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
using ::android::hardware::samples::V1_0::IFoo;
|
||||
using ::android::hardware::Return;
|
||||
using ::android::hardware::Void;
|
||||
using ::android::sp;
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
sp<IFoo> foo;
|
||||
foo = IFoo::getService();
|
||||
foo->foo();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user