Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
eb0f6912
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eb0f6912
编写于
12月 09, 2016
作者:
S
Simon Fels
提交者:
GitHub
12月 09, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15 from morphis/remove-test-platform-service
Get rid of test for the Android platform service
上级
357b1a58
e419b1fb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
57 deletion
+0
-57
Android.mk
Android.mk
+0
-15
android/CMakeLists.txt
android/CMakeLists.txt
+0
-8
android/service/test_platform_service.cpp
android/service/test_platform_service.cpp
+0
-34
未找到文件。
Android.mk
浏览文件 @
eb0f6912
...
...
@@ -62,21 +62,6 @@ LOCAL_CFLAGS := \
-std
=
c++1y
include
$(BUILD_EXECUTABLE)
include
$(CLEAR_VARS)
LOCAL_MODULE_CLASS
:=
EXECUTABLES
LOCAL_MODULE
:=
anbox_test_platform_service
LOCAL_SRC_FILES
:=
\
android/service/platform_service_interface.cpp
\
android/service/test_platform_service.cpp
LOCAL_C_INCLUDES
+=
\
$(LOCAL_PATH)
/android/service
LOCAL_SHARED_LIBRARIES
:=
\
liblog
\
libbinder
\
libcutils
\
libutils
include
$(BUILD_EXECUTABLE)
include
$(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH
:=
hw
LOCAL_SHARED_LIBRARIES
:=
\
...
...
android/CMakeLists.txt
浏览文件 @
eb0f6912
...
...
@@ -24,11 +24,6 @@ target_link_libraries(anboxd
process-cpp
anbox-protobuf
)
set
(
TEST_PLATFORM_SERVICE
service/test_platform_service.cpp
)
add_executable
(
test_platform_service
${
TEST_PLATFORM_SERVICE
}
)
set
(
HWCOMPOSER_SOURCES
hwcomposer/hwcomposer.cpp
)
...
...
@@ -40,9 +35,6 @@ add_library(hwcomposer.anbox SHARED ${HWCOMPOSER_SOURCES})
set_target_properties
(
anboxd
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1
)
set_target_properties
(
test_platform_service
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1
)
set_target_properties
(
hwcomposer.anbox
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1
)
android/service/test_platform_service.cpp
已删除
100644 → 0
浏览文件 @
357b1a58
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
#include "android/service/platform_service_interface.h"
int
main
(
int
,
char
**
)
{
auto
binder
=
android
::
defaultServiceManager
()
->
getService
(
android
::
String16
(
"anbox.PlatformService"
));
if
(
not
binder
.
get
())
return
0
;
android
::
ProcessState
::
self
()
->
startThreadPool
();
android
::
sp
<
android
::
BpPlatformService
>
platform_service
=
new
android
::
BpPlatformService
(
binder
);
return
platform_service
->
boot_finished
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录