-
Notifications
You must be signed in to change notification settings - Fork 27
/
AndroidNative.xml
48 lines (48 loc) · 2.84 KB
/
AndroidNative.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<templateSet group="AndroidNative">
<template name="logf" value="ALOGF("$END$")" description="Log Fatal" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="logv" value="ALOGV("$END$")" description="Log Verbose" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="loge" value="ALOGE("$END$")" description="Log Error" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="logw" value="ALOGW("$END$")" description="Log Warn" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="logi" value="ALOGI("$END$")" description="Log Info" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="logd" value="ALOGD("$END$");" description="Log debug" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
<template name="logger" value="#include <android/log.h> #define LOG_TAG "$FILE_BASE_NAME$" #define ALOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) #define ALOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) #define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) #define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) #define ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__) #define ALOGF(...) __android_log_print(ANDROID_LOG_FATAL, LOG_TAG, __VA_ARGS__) $END$" description="Define log macro for android" toReformat="true" toShortenFQNames="true">
<variable name="FILE_BASE_NAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="OC_DECLARATION_C" value="true" />
</context>
</template>
<template name="ifcpp" value="#ifdef __cplusplus extern "C" { #endif $END$ #ifdef __cplusplus } // extern "C" #endif" description="If defined cplusplus extern c" toReformat="true" toShortenFQNames="true">
<context>
<option name="OC_DECLARATION_C" value="true" />
</context>
</template>
<template name="logm" value="ALOGD("%d: %s", __LINE__, __FUNCTION__);" description="Log function name" toReformat="false" toShortenFQNames="true">
<context>
<option name="OC_STATEMENT_C" value="true" />
</context>
</template>
</templateSet>