system/core Replace cutils/log.h with android/log.h am: 66ce3e08c5 am: eb189f147b
am: 16f7786032
Change-Id: I26939d55686b6182c9fae5fc74f3e7ed92132cdb
This commit is contained in:
commit
0abff8fc61
60 changed files with 412 additions and 370 deletions
|
|
@ -20,12 +20,12 @@
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <utils/Vector.h>
|
||||||
|
|
||||||
#include <adf/adf.h>
|
#include <adf/adf.h>
|
||||||
#include <adfhwc/adfhwc.h>
|
#include <adfhwc/adfhwc.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <utils/Vector.h>
|
|
||||||
|
|
||||||
struct adf_hwc_helper {
|
struct adf_hwc_helper {
|
||||||
adf_hwc_event_callbacks const *event_cb;
|
adf_hwc_event_callbacks const *event_cb;
|
||||||
void *event_cb_data;
|
void *event_cb_data;
|
||||||
|
|
|
||||||
|
|
@ -14,20 +14,22 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <linux/input.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
#include <sys/limits.h>
|
#include <sys/limits.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include <linux/input.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
static struct pollfd* ufds;
|
static struct pollfd* ufds;
|
||||||
static char** device_names;
|
static char** device_names;
|
||||||
|
|
|
||||||
|
|
@ -16,20 +16,17 @@
|
||||||
|
|
||||||
#define LOG_TAG "fingerprintd"
|
#define LOG_TAG "fingerprintd"
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#include <utils/Log.h>
|
|
||||||
|
|
||||||
#include <binder/IPCThreadState.h>
|
#include <binder/IPCThreadState.h>
|
||||||
#include <binder/IServiceManager.h>
|
#include <binder/IServiceManager.h>
|
||||||
#include <binder/PermissionCache.h>
|
#include <binder/PermissionCache.h>
|
||||||
#include <utils/String16.h>
|
|
||||||
|
|
||||||
#include <keystore/IKeystoreService.h>
|
|
||||||
#include <keystore/keystore.h> // for error codes
|
|
||||||
|
|
||||||
#include <hardware/hardware.h>
|
#include <hardware/hardware.h>
|
||||||
#include <hardware/fingerprint.h>
|
#include <hardware/fingerprint.h>
|
||||||
#include <hardware/hw_auth_token.h>
|
#include <hardware/hw_auth_token.h>
|
||||||
|
#include <keystore/IKeystoreService.h>
|
||||||
|
#include <keystore/keystore.h> // for error codes
|
||||||
|
#include <utils/Log.h>
|
||||||
|
#include <utils/String16.h>
|
||||||
|
|
||||||
#include "FingerprintDaemonProxy.h"
|
#include "FingerprintDaemonProxy.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,25 +19,22 @@
|
||||||
#include "IGateKeeperService.h"
|
#include "IGateKeeperService.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#include <utils/Log.h>
|
|
||||||
|
|
||||||
#include <binder/IPCThreadState.h>
|
#include <binder/IPCThreadState.h>
|
||||||
#include <binder/IServiceManager.h>
|
#include <binder/IServiceManager.h>
|
||||||
#include <binder/PermissionCache.h>
|
#include <binder/PermissionCache.h>
|
||||||
#include <utils/String16.h>
|
|
||||||
#include <utils/Log.h>
|
|
||||||
|
|
||||||
#include <keystore/IKeystoreService.h>
|
|
||||||
#include <keystore/keystore.h> // For error code
|
|
||||||
#include <gatekeeper/password_handle.h> // for password_handle_t
|
#include <gatekeeper/password_handle.h> // for password_handle_t
|
||||||
#include <hardware/gatekeeper.h>
|
#include <hardware/gatekeeper.h>
|
||||||
#include <hardware/hw_auth_token.h>
|
#include <hardware/hw_auth_token.h>
|
||||||
|
#include <keystore/IKeystoreService.h>
|
||||||
|
#include <keystore/keystore.h> // For error code
|
||||||
|
#include <utils/Log.h>
|
||||||
|
#include <utils/String16.h>
|
||||||
|
|
||||||
#include "SoftGateKeeperDevice.h"
|
#include "SoftGateKeeperDevice.h"
|
||||||
#include "IUserManager.h"
|
#include "IUserManager.h"
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,10 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
#include <utils/Errors.h>
|
||||||
#include <utils/SortedVector.h>
|
#include <utils/SortedVector.h>
|
||||||
#include <utils/TypeHelpers.h>
|
#include <utils/TypeHelpers.h>
|
||||||
#include <utils/Errors.h>
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,10 @@
|
||||||
#ifndef _LIBS_UTILS_LOG_H
|
#ifndef _LIBS_UTILS_LOG_H
|
||||||
#define _LIBS_UTILS_LOG_H
|
#define _LIBS_UTILS_LOG_H
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,10 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
#include <utils/TypeHelpers.h>
|
||||||
#include <utils/Vector.h>
|
#include <utils/Vector.h>
|
||||||
#include <utils/VectorImpl.h>
|
#include <utils/VectorImpl.h>
|
||||||
#include <utils/TypeHelpers.h>
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@
|
||||||
#ifndef ANDROID_VECTOR_H
|
#ifndef ANDROID_VECTOR_H
|
||||||
#define ANDROID_VECTOR_H
|
#define ANDROID_VECTOR_H
|
||||||
|
|
||||||
#include <new>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <new>
|
||||||
|
|
||||||
#include <utils/VectorImpl.h>
|
#include <android/log.h>
|
||||||
#include <utils/TypeHelpers.h>
|
#include <utils/TypeHelpers.h>
|
||||||
|
#include <utils/VectorImpl.h>
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,16 +16,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "config_mbr"
|
#define LOG_TAG "config_mbr"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <diskconfig/diskconfig.h>
|
#include <diskconfig/diskconfig.h>
|
||||||
|
|
||||||
|
|
||||||
/* start and len are in LBA units */
|
/* start and len are in LBA units */
|
||||||
static void
|
static void
|
||||||
cfg_pentry(struct pc_partition *pentry, uint8_t status, uint8_t type,
|
cfg_pentry(struct pc_partition *pentry, uint8_t status, uint8_t type,
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "dump_diskconfig"
|
#define LOG_TAG "dump_diskconfig"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "diskconfig.h"
|
#include "diskconfig.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "write_lst"
|
#define LOG_TAG "write_lst"
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include <diskconfig/diskconfig.h>
|
#include <diskconfig/diskconfig.h>
|
||||||
|
|
||||||
struct write_list *
|
struct write_list *
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,16 @@
|
||||||
*/
|
*/
|
||||||
#define LOG_TAG "ion"
|
#define LOG_TAG "ion"
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <linux/ion.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <linux/ion.h>
|
#include <android/log.h>
|
||||||
#include <ion/ion.h>
|
#include <ion/ion.h>
|
||||||
|
|
||||||
int ion_open()
|
int ion_open()
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
#include "nativebridge/native_bridge.h"
|
#include "nativebridge/native_bridge.h"
|
||||||
|
|
||||||
#include <cstring>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
@ -25,6 +23,9 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,6 @@
|
||||||
|
|
||||||
#include "NativeBridgeTest.h"
|
#include "NativeBridgeTest.h"
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
@ -26,6 +23,11 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
TEST_F(NativeBridgeTest, PreInitializeNativeBridgeFail1) {
|
TEST_F(NativeBridgeTest, PreInitializeNativeBridgeFail1) {
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "NativeBridgeTest.h"
|
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
@ -26,6 +21,13 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
|
#include "NativeBridgeTest.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
TEST_F(NativeBridgeTest, PreInitializeNativeBridgeFail2) {
|
TEST_F(NativeBridgeTest, PreInitializeNativeBridgeFail2) {
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "NativeBridgeTest.h"
|
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
@ -26,6 +21,13 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
|
#include "NativeBridgeTest.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
static constexpr const char* kTestData = "PreInitializeNativeBridge test.";
|
static constexpr const char* kTestData = "PreInitializeNativeBridge test.";
|
||||||
|
|
|
||||||
|
|
@ -14,27 +14,25 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <poll.h>
|
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/select.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
|
|
||||||
#include <cutils/properties.h>
|
|
||||||
#define LOG_TAG "DHCP"
|
#define LOG_TAG "DHCP"
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <poll.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/select.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/properties.h>
|
||||||
|
|
||||||
#include <netutils/ifc.h>
|
#include <netutils/ifc.h>
|
||||||
#include "dhcpmsg.h"
|
#include "dhcpmsg.h"
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,21 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2008, The Android Open Source Project
|
* Copyright 2008, The Android Open Source Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/select.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <net/if.h>
|
#include <errno.h>
|
||||||
#include <netdb.h>
|
|
||||||
|
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <linux/if_arp.h>
|
#include <linux/if_arp.h>
|
||||||
|
|
@ -37,20 +24,29 @@
|
||||||
#include <linux/ipv6_route.h>
|
#include <linux/ipv6_route.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <linux/sockios.h>
|
#include <linux/sockios.h>
|
||||||
|
#include <net/if.h>
|
||||||
#include "netutils/ifc.h"
|
#include <netdb.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/select.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#define LOG_TAG "NetUtils"
|
#define LOG_TAG "NetUtils"
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#define ALOGD printf
|
#define ALOGD printf
|
||||||
#define ALOGW printf
|
#define ALOGW printf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "netutils/ifc.h"
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
/* SIOCKILLADDR is an Android extension. */
|
/* SIOCKILLADDR is an Android extension. */
|
||||||
#define SIOCKILLADDR 0x8939
|
#define SIOCKILLADDR 0x8939
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,36 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2008, The Android Open Source Project
|
* Copyright 2008, The Android Open Source Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/uio.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/uio.h>
|
||||||
|
#include <linux/if_ether.h>
|
||||||
|
#include <linux/if_packet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
#include <netinet/udp.h>
|
#include <netinet/udp.h>
|
||||||
#include <linux/if_packet.h>
|
#include <unistd.h>
|
||||||
#include <linux/if_ether.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#define LOG_TAG "DHCP"
|
#define LOG_TAG "DHCP"
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
|
||||||
#define ALOGD printf
|
#define ALOGD printf
|
||||||
#define ALOGW printf
|
#define ALOGW printf
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,16 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "packagelistparser"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <sys/limits.h>
|
#include <sys/limits.h>
|
||||||
|
|
||||||
#define LOG_TAG "packagelistparser"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <packagelistparser/packagelistparser.h>
|
#include <packagelistparser/packagelistparser.h>
|
||||||
|
|
||||||
#define CLOGE(fmt, ...) \
|
#define CLOGE(fmt, ...) \
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/properties.h>
|
||||||
#include <private/pixelflinger/ggl_context.h>
|
#include <private/pixelflinger/ggl_context.h>
|
||||||
|
|
||||||
#include "ARMAssembler.h"
|
#include "ARMAssembler.h"
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,26 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "ARMAssemblerInterface.h"
|
#include "ARMAssemblerInterface.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
|
||||||
|
|
@ -32,14 +32,13 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
#include <private/pixelflinger/ggl_context.h>
|
#include <private/pixelflinger/ggl_context.h>
|
||||||
|
|
||||||
#include "codeflinger/Arm64Assembler.h"
|
#include "codeflinger/Arm64Assembler.h"
|
||||||
#include "codeflinger/CodeCache.h"
|
|
||||||
#include "codeflinger/Arm64Disassembler.h"
|
#include "codeflinger/Arm64Disassembler.h"
|
||||||
|
#include "codeflinger/CodeCache.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** --------------------------------------------
|
** --------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -15,17 +15,16 @@
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "CodeCache"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <cutils/ashmem.h>
|
#include <cutils/ashmem.h>
|
||||||
#define LOG_TAG "CodeCache"
|
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include "CodeCache.h"
|
#include "CodeCache.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -19,10 +19,11 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "GGLAssembler.h"
|
#include "GGLAssembler.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,24 +25,21 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#define LOG_TAG "MIPS64Assembler"
|
#define LOG_TAG "MIPS64Assembler"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/properties.h>
|
||||||
#include <private/pixelflinger/ggl_context.h>
|
#include <private/pixelflinger/ggl_context.h>
|
||||||
|
|
||||||
#include "MIPS64Assembler.h"
|
#include "MIPS64Assembler.h"
|
||||||
#include "CodeCache.h"
|
#include "CodeCache.h"
|
||||||
#include "mips64_disassem.h"
|
#include "mips64_disassem.h"
|
||||||
|
|
||||||
|
|
||||||
#define NOT_IMPLEMENTED() LOG_ALWAYS_FATAL("Arm instruction %s not yet implemented\n", __func__)
|
#define NOT_IMPLEMENTED() LOG_ALWAYS_FATAL("Arm instruction %s not yet implemented\n", __func__)
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,13 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/properties.h>
|
||||||
#include <private/pixelflinger/ggl_context.h>
|
#include <private/pixelflinger/ggl_context.h>
|
||||||
|
|
||||||
#include "MIPSAssembler.h"
|
|
||||||
#include "CodeCache.h"
|
#include "CodeCache.h"
|
||||||
|
#include "MIPSAssembler.h"
|
||||||
#include "mips_disassem.h"
|
#include "mips_disassem.h"
|
||||||
|
|
||||||
// Choose MIPS arch variant following gcc flags
|
// Choose MIPS arch variant following gcc flags
|
||||||
|
|
|
||||||
|
|
@ -2,30 +2,29 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "GGLAssembler.h"
|
#include "GGLAssembler.h"
|
||||||
|
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
void GGLAssembler::build_fog(
|
void GGLAssembler::build_fog(
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,24 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "GGLAssembler.h"
|
#include "GGLAssembler.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
@ -25,7 +27,7 @@ namespace android {
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
||||||
{
|
{
|
||||||
const int bits = addr.size;
|
const int bits = addr.size;
|
||||||
const int inc = (flags & WRITE_BACK)?1:0;
|
const int inc = (flags & WRITE_BACK)?1:0;
|
||||||
switch (bits) {
|
switch (bits) {
|
||||||
|
|
@ -59,8 +61,8 @@ void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags
|
||||||
}
|
}
|
||||||
|
|
||||||
void GGLAssembler::load(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
void GGLAssembler::load(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
||||||
{
|
{
|
||||||
Scratch scratches(registerFile());
|
Scratch scratches(registerFile());
|
||||||
int s0;
|
int s0;
|
||||||
|
|
||||||
const int bits = addr.size;
|
const int bits = addr.size;
|
||||||
|
|
@ -72,7 +74,7 @@ void GGLAssembler::load(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
// 24 bits formats are a little special and used only for RGB
|
// 24 bits formats are a little special and used only for RGB
|
||||||
// R,G,B is packed as 0x00BBGGRR
|
// R,G,B is packed as 0x00BBGGRR
|
||||||
s0 = scratches.obtain();
|
s0 = scratches.obtain();
|
||||||
if (s.reg != addr.reg) {
|
if (s.reg != addr.reg) {
|
||||||
LDRB(AL, s.reg, addr.reg, immed12_pre(0)); // R
|
LDRB(AL, s.reg, addr.reg, immed12_pre(0)); // R
|
||||||
|
|
@ -90,7 +92,7 @@ void GGLAssembler::load(const pointer_t& addr, const pixel_t& s, uint32_t flags)
|
||||||
}
|
}
|
||||||
if (inc)
|
if (inc)
|
||||||
ADD(AL, 0, addr.reg, addr.reg, imm(3));
|
ADD(AL, 0, addr.reg, addr.reg, imm(3));
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
if (inc) LDRH(AL, s.reg, addr.reg, immed8_post(2));
|
if (inc) LDRH(AL, s.reg, addr.reg, immed8_post(2));
|
||||||
else LDRH(AL, s.reg, addr.reg);
|
else LDRH(AL, s.reg, addr.reg);
|
||||||
|
|
@ -112,7 +114,7 @@ void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits)
|
||||||
assert(maskLen<=8);
|
assert(maskLen<=8);
|
||||||
#endif
|
#endif
|
||||||
assert(h);
|
assert(h);
|
||||||
|
|
||||||
if (h != bits) {
|
if (h != bits) {
|
||||||
const int mask = ((1<<maskLen)-1) << l;
|
const int mask = ((1<<maskLen)-1) << l;
|
||||||
if (isValidImmediate(mask)) {
|
if (isValidImmediate(mask)) {
|
||||||
|
|
@ -126,12 +128,12 @@ void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits)
|
||||||
}
|
}
|
||||||
s = d.reg;
|
s = d.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l) {
|
if (l) {
|
||||||
MOV(AL, 0, d.reg, reg_imm(s, LSR, l)); // component = packed >> l;
|
MOV(AL, 0, d.reg, reg_imm(s, LSR, l)); // component = packed >> l;
|
||||||
s = d.reg;
|
s = d.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s != d.reg) {
|
if (s != d.reg) {
|
||||||
MOV(AL, 0, d.reg, s);
|
MOV(AL, 0, d.reg, s);
|
||||||
}
|
}
|
||||||
|
|
@ -212,12 +214,12 @@ void GGLAssembler::expand(integer_t& dst, const integer_t& src, int dbits)
|
||||||
} while(dbits>0);
|
} while(dbits>0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dbits -= sbits;
|
dbits -= sbits;
|
||||||
do {
|
do {
|
||||||
ORR(AL, 0, d, s, reg_imm(s, LSL, sbits));
|
ORR(AL, 0, d, s, reg_imm(s, LSL, sbits));
|
||||||
// d |= d<<sbits;
|
// d |= d<<sbits;
|
||||||
s = d;
|
s = d;
|
||||||
dbits -= sbits;
|
dbits -= sbits;
|
||||||
if (sbits*2 < dbits) {
|
if (sbits*2 < dbits) {
|
||||||
sbits *= 2;
|
sbits *= 2;
|
||||||
|
|
@ -241,14 +243,14 @@ void GGLAssembler::downshift(
|
||||||
int dl = d.format.c[component].l;
|
int dl = d.format.c[component].l;
|
||||||
int dbits = dh - dl;
|
int dbits = dh - dl;
|
||||||
int dithering = 0;
|
int dithering = 0;
|
||||||
|
|
||||||
ALOGE_IF(sbits<dbits, "sbits (%d) < dbits (%d) in downshift", sbits, dbits);
|
ALOGE_IF(sbits<dbits, "sbits (%d) < dbits (%d) in downshift", sbits, dbits);
|
||||||
|
|
||||||
if (sbits>dbits) {
|
if (sbits>dbits) {
|
||||||
// see if we need to dither
|
// see if we need to dither
|
||||||
dithering = mDithering;
|
dithering = mDithering;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ireg = d.reg;
|
int ireg = d.reg;
|
||||||
if (!(d.flags & FIRST)) {
|
if (!(d.flags & FIRST)) {
|
||||||
if (s.flags & CORRUPTIBLE) {
|
if (s.flags & CORRUPTIBLE) {
|
||||||
|
|
@ -271,7 +273,7 @@ void GGLAssembler::downshift(
|
||||||
if (isValidImmediate(mask) || isValidImmediate(~mask)) {
|
if (isValidImmediate(mask) || isValidImmediate(~mask)) {
|
||||||
build_and_immediate(ireg, s.reg, mask, 32);
|
build_and_immediate(ireg, s.reg, mask, 32);
|
||||||
sl = offset;
|
sl = offset;
|
||||||
s.reg = ireg;
|
s.reg = ireg;
|
||||||
sbits = dbits;
|
sbits = dbits;
|
||||||
maskLoBits = maskHiBits = 0;
|
maskLoBits = maskHiBits = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -281,7 +283,7 @@ void GGLAssembler::downshift(
|
||||||
const uint32_t mask = ((1<<sbits)-1) << sl;
|
const uint32_t mask = ((1<<sbits)-1) << sl;
|
||||||
if (isValidImmediate(mask) || isValidImmediate(~mask)) {
|
if (isValidImmediate(mask) || isValidImmediate(~mask)) {
|
||||||
build_and_immediate(ireg, s.reg, mask, 32);
|
build_and_immediate(ireg, s.reg, mask, 32);
|
||||||
s.reg = ireg;
|
s.reg = ireg;
|
||||||
maskLoBits = maskHiBits = 0;
|
maskLoBits = maskHiBits = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -325,7 +327,7 @@ void GGLAssembler::downshift(
|
||||||
MOV(AL, 0, ireg, reg_imm(s.reg, LSR, sl));
|
MOV(AL, 0, ireg, reg_imm(s.reg, LSR, sl));
|
||||||
sh -= sl;
|
sh -= sl;
|
||||||
sl = 0;
|
sl = 0;
|
||||||
s.reg = ireg;
|
s.reg = ireg;
|
||||||
}
|
}
|
||||||
// scaling (V-V>>dbits)
|
// scaling (V-V>>dbits)
|
||||||
SUB(AL, 0, ireg, s.reg, reg_imm(s.reg, LSR, dbits));
|
SUB(AL, 0, ireg, s.reg, reg_imm(s.reg, LSR, dbits));
|
||||||
|
|
@ -333,7 +335,7 @@ void GGLAssembler::downshift(
|
||||||
if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift));
|
if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift));
|
||||||
else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift));
|
else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift));
|
||||||
else ADD(AL, 0, ireg, ireg, dither.reg);
|
else ADD(AL, 0, ireg, ireg, dither.reg);
|
||||||
s.reg = ireg;
|
s.reg = ireg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((maskLoBits|dithering) && (sh > dbits)) {
|
if ((maskLoBits|dithering) && (sh > dbits)) {
|
||||||
|
|
|
||||||
|
|
@ -34,21 +34,20 @@
|
||||||
* from: @(#)kadb.c 8.1 (Berkeley) 6/10/93
|
* from: @(#)kadb.c 8.1 (Berkeley) 6/10/93
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "mips_opcode.h"
|
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
|
#include "mips_opcode.h"
|
||||||
|
|
||||||
static char *sprintf_buffer;
|
static char *sprintf_buffer;
|
||||||
static int sprintf_buf_len;
|
static int sprintf_buf_len;
|
||||||
|
|
||||||
|
|
||||||
typedef uint64_t db_addr_t;
|
typedef uint64_t db_addr_t;
|
||||||
static void db_printf(const char* fmt, ...);
|
static void db_printf(const char* fmt, ...);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,26 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "GGLAssembler.h"
|
#include "GGLAssembler.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,29 +2,28 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006-2011, The Android Open Source Project
|
** Copyright 2006-2011, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#define LOG_TAG "pixelflinger"
|
#define LOG_TAG "pixelflinger"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <cutils/memory.h>
|
#include <cutils/memory.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "scanline.h"
|
#include "scanline.h"
|
||||||
|
|
|
||||||
|
|
@ -26,21 +26,21 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#define __STDC_FORMAT_MACROS
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <cutils/ashmem.h>
|
#include <unistd.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#define __STDC_FORMAT_MACROS
|
#include <android/log.h>
|
||||||
#include <inttypes.h>
|
#include <cutils/ashmem.h>
|
||||||
|
|
||||||
#include "codeflinger/ARMAssemblerInterface.h"
|
#include "codeflinger/ARMAssemblerInterface.h"
|
||||||
#include "codeflinger/MIPS64Assembler.h"
|
#include "codeflinger/MIPS64Assembler.h"
|
||||||
|
|
||||||
using namespace android;
|
using namespace android;
|
||||||
|
|
||||||
#define TESTS_DATAOP_ENABLE 1
|
#define TESTS_DATAOP_ENABLE 1
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
**
|
**
|
||||||
** Copyright 2006, The Android Open Source Project
|
** Copyright 2006, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
** you may not use this file except in compliance with the License.
|
** you may not use this file except in compliance with the License.
|
||||||
** You may obtain a copy of the License at
|
** You may obtain a copy of the License at
|
||||||
**
|
**
|
||||||
** http://www.apache.org/licenses/LICENSE-2.0
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
**
|
**
|
||||||
** Unless required by applicable law or agreed to in writing, software
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
** See the License for the specific language governing permissions and
|
** See the License for the specific language governing permissions and
|
||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -19,12 +19,12 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/memory.h>
|
||||||
|
|
||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
#include "picker.h"
|
#include "picker.h"
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/memory.h>
|
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "libsuspend"
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define LOG_TAG "libsuspend"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <suspend/autosuspend.h>
|
#include <suspend/autosuspend.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "libsuspend"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
@ -22,8 +24,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define LOG_TAG "libsuspend"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include "autosuspend_ops.h"
|
#include "autosuspend_ops.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,19 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "libsuspend"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define LOG_TAG "libsuspend"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include "autosuspend_ops.h"
|
#include "autosuspend_ops.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "libsuspend"
|
||||||
|
//#define LOG_NDEBUG 0
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
@ -25,9 +28,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define LOG_TAG "libsuspend"
|
#include <android/log.h>
|
||||||
//#define LOG_NDEBUG 0
|
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include "autosuspend_ops.h"
|
#include "autosuspend_ops.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,27 @@
|
||||||
#include <alloca.h>
|
/*
|
||||||
#include <errno.h>
|
* Copyright (C) 2009-2016 The Android Open Source Project
|
||||||
#include <sys/types.h>
|
*
|
||||||
#include <pthread.h>
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "FrameworkClient"
|
#define LOG_TAG "FrameworkClient"
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
|
#include <alloca.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <sysutils/FrameworkClient.h>
|
#include <sysutils/FrameworkClient.h>
|
||||||
|
|
||||||
FrameworkClient::FrameworkClient(int socket) {
|
FrameworkClient::FrameworkClient(int socket) {
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,12 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#define LOG_TAG "FrameworkCommand"
|
#define LOG_TAG "FrameworkCommand"
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <sysutils/FrameworkCommand.h>
|
#include <sysutils/FrameworkCommand.h>
|
||||||
|
|
||||||
#define UNUSED __attribute__((unused))
|
#define UNUSED __attribute__((unused))
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,16 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#define LOG_TAG "FrameworkListener"
|
#define LOG_TAG "FrameworkListener"
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <sysutils/FrameworkListener.h>
|
#include <android/log.h>
|
||||||
#include <sysutils/FrameworkCommand.h>
|
#include <sysutils/FrameworkCommand.h>
|
||||||
|
#include <sysutils/FrameworkListener.h>
|
||||||
#include <sysutils/SocketClient.h>
|
#include <sysutils/SocketClient.h>
|
||||||
|
|
||||||
static const int CMD_BUF_SIZE = 1024;
|
static const int CMD_BUF_SIZE = 1024;
|
||||||
|
|
|
||||||
|
|
@ -13,39 +13,36 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#define LOG_TAG "NetlinkEvent"
|
#define LOG_TAG "NetlinkEvent"
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <sysutils/NetlinkEvent.h>
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netinet/icmp6.h>
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <net/if.h>
|
|
||||||
|
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if_addr.h>
|
||||||
#include <linux/if_link.h>
|
#include <linux/if_link.h>
|
||||||
#include <linux/netfilter/nfnetlink.h>
|
#include <linux/netfilter/nfnetlink.h>
|
||||||
#include <linux/netfilter/nfnetlink_log.h>
|
#include <linux/netfilter/nfnetlink_log.h>
|
||||||
#include <linux/netfilter_ipv4/ipt_ULOG.h>
|
#include <linux/netfilter_ipv4/ipt_ULOG.h>
|
||||||
|
#include <linux/netlink.h>
|
||||||
|
#include <linux/rtnetlink.h>
|
||||||
|
#include <net/if.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/icmp6.h>
|
||||||
|
#include <netlink/attr.h>
|
||||||
|
#include <netlink/genl/genl.h>
|
||||||
|
#include <netlink/handlers.h>
|
||||||
|
#include <netlink/msg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* From kernel's net/netfilter/xt_quota2.c */
|
/* From kernel's net/netfilter/xt_quota2.c */
|
||||||
const int LOCAL_QLOG_NL_EVENT = 112;
|
const int LOCAL_QLOG_NL_EVENT = 112;
|
||||||
const int LOCAL_NFLOG_PACKET = NFNL_SUBSYS_ULOG << 8 | NFULNL_MSG_PACKET;
|
const int LOCAL_NFLOG_PACKET = NFNL_SUBSYS_ULOG << 8 | NFULNL_MSG_PACKET;
|
||||||
|
|
||||||
#include <linux/netlink.h>
|
#include <android/log.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <sysutils/NetlinkEvent.h>
|
||||||
|
|
||||||
#include <netlink/attr.h>
|
|
||||||
#include <netlink/genl/genl.h>
|
|
||||||
#include <netlink/handlers.h>
|
|
||||||
#include <netlink/msg.h>
|
|
||||||
|
|
||||||
NetlinkEvent::NetlinkEvent() {
|
NetlinkEvent::NetlinkEvent() {
|
||||||
mAction = Action::kUnknown;
|
mAction = Action::kUnknown;
|
||||||
|
|
|
||||||
|
|
@ -13,17 +13,18 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <linux/netlink.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#define LOG_TAG "NetlinkListener"
|
#define LOG_TAG "NetlinkListener"
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/uevent.h>
|
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <linux/netlink.h> /* out of order because must follow sys/socket.h */
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <cutils/uevent.h>
|
||||||
#include <sysutils/NetlinkEvent.h>
|
#include <sysutils/NetlinkEvent.h>
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2009-2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "Service"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <sysutils/ServiceManager.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#define LOG_TAG "Service"
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
|
#include <sysutils/ServiceManager.h>
|
||||||
|
|
||||||
ServiceManager::ServiceManager() {
|
ServiceManager::ServiceManager() {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,32 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2009-2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "SocketClient"
|
||||||
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <arpa/inet.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define LOG_TAG "SocketClient"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <sysutils/SocketClient.h>
|
#include <sysutils/SocketClient.h>
|
||||||
|
|
||||||
SocketClient::SocketClient(int socket, bool owned) {
|
SocketClient::SocketClient(int socket, bool owned) {
|
||||||
|
|
|
||||||
|
|
@ -13,19 +13,20 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
|
||||||
|
#define LOG_TAG "SocketListener"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
||||||
#define LOG_TAG "SocketListener"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/sockets.h>
|
#include <cutils/sockets.h>
|
||||||
|
|
||||||
#include <sysutils/SocketListener.h>
|
#include <sysutils/SocketListener.h>
|
||||||
#include <sysutils/SocketClient.h>
|
#include <sysutils/SocketClient.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,17 @@
|
||||||
// Debugs callback registration and invocation.
|
// Debugs callback registration and invocation.
|
||||||
#define DEBUG_CALLBACKS 0
|
#define DEBUG_CALLBACKS 0
|
||||||
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <utils/Looper.h>
|
|
||||||
#include <utils/Timers.h>
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/eventfd.h>
|
#include <sys/eventfd.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <utils/Looper.h>
|
||||||
|
#include <utils/Timers.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,16 +16,16 @@
|
||||||
|
|
||||||
#define LOG_TAG "Vector"
|
#define LOG_TAG "Vector"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
#include <safe_iop.h>
|
|
||||||
|
|
||||||
#include <utils/Errors.h>
|
#include <utils/Errors.h>
|
||||||
#include <utils/VectorImpl.h>
|
#include <utils/VectorImpl.h>
|
||||||
|
|
||||||
|
#include <safe_iop.h>
|
||||||
|
|
||||||
#include "SharedBuffer.h"
|
#include "SharedBuffer.h"
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,12 @@
|
||||||
|
|
||||||
#define LOG_TAG "BitSet_test"
|
#define LOG_TAG "BitSet_test"
|
||||||
|
|
||||||
#include <utils/BitSet.h>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
#include <utils/BitSet.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
class BitSet32Test : public testing::Test {
|
class BitSet32Test : public testing::Test {
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
#include <utils/JenkinsHash.h>
|
#include <utils/JenkinsHash.h>
|
||||||
#include <utils/LruCache.h>
|
#include <utils/LruCache.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,12 @@
|
||||||
|
|
||||||
#define __STDC_LIMIT_MACROS
|
#define __STDC_LIMIT_MACROS
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <utils/Vector.h>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
#include <utils/Vector.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
class VectorTest : public testing::Test {
|
class VectorTest : public testing::Test {
|
||||||
|
|
|
||||||
|
|
@ -14,24 +14,24 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <poll.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <stdbool.h>
|
#include <poll.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <logwrap/logwrap.h>
|
#include <android/log.h>
|
||||||
#include "private/android_filesystem_config.h"
|
|
||||||
#include "cutils/log.h"
|
|
||||||
#include <cutils/klog.h>
|
#include <cutils/klog.h>
|
||||||
|
#include <logwrap/logwrap.h>
|
||||||
|
#include <private/android_filesystem_config.h>
|
||||||
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
||||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,9 @@
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <logwrap/logwrap.h>
|
#include <android/log.h>
|
||||||
#include <cutils/klog.h>
|
#include <cutils/klog.h>
|
||||||
|
#include <logwrap/logwrap.h>
|
||||||
#include "cutils/log.h"
|
|
||||||
|
|
||||||
void fatal(const char *msg) {
|
void fatal(const char *msg) {
|
||||||
fprintf(stderr, "%s", msg);
|
fprintf(stderr, "%s", msg);
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,19 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "TrustyGateKeeper"
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "trusty_gatekeeper.h"
|
#include "trusty_gatekeeper.h"
|
||||||
#include "trusty_gatekeeper_ipc.h"
|
#include "trusty_gatekeeper_ipc.h"
|
||||||
#include "gatekeeper_ipc.h"
|
#include "gatekeeper_ipc.h"
|
||||||
|
|
||||||
#define LOG_TAG "TrustyGateKeeper"
|
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
namespace gatekeeper {
|
namespace gatekeeper {
|
||||||
|
|
||||||
const uint32_t SEND_BUF_SIZE = 8192;
|
const uint32_t SEND_BUF_SIZE = 8192;
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "TrustyGateKeeper"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define LOG_TAG "TrustyGateKeeper"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <trusty/tipc.h>
|
#include <trusty/tipc.h>
|
||||||
|
|
||||||
#include "trusty_gatekeeper_ipc.h"
|
#include "trusty_gatekeeper_ipc.h"
|
||||||
|
|
|
||||||
|
|
@ -14,26 +14,24 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "trusty_keymaster_device.h"
|
#define LOG_TAG "TrustyKeymaster"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <openssl/evp.h>
|
||||||
|
#include <openssl/x509.h>
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <android/log.h>
|
||||||
#include <openssl/x509.h>
|
|
||||||
|
|
||||||
#define LOG_TAG "TrustyKeymaster"
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <hardware/keymaster0.h>
|
#include <hardware/keymaster0.h>
|
||||||
|
|
||||||
#include <keymaster/authorization_set.h>
|
#include <keymaster/authorization_set.h>
|
||||||
|
|
||||||
|
#include "trusty_keymaster_device.h"
|
||||||
#include "trusty_keymaster_ipc.h"
|
#include "trusty_keymaster_ipc.h"
|
||||||
#include "keymaster_ipc.h"
|
#include "keymaster_ipc.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,15 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "TrustyKeymaster"
|
||||||
|
|
||||||
// TODO: make this generic in libtrusty
|
// TODO: make this generic in libtrusty
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define LOG_TAG "TrustyKeymaster"
|
#include <android/log.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#include <trusty/tipc.h>
|
#include <trusty/tipc.h>
|
||||||
|
|
||||||
#include "trusty_keymaster_ipc.h"
|
#include "trusty_keymaster_ipc.h"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <cutils/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "tipc_ioctl.h"
|
#include "tipc_ioctl.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "trusty_storage_client"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
@ -21,12 +23,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
#include <trusty/tipc.h>
|
#include <trusty/tipc.h>
|
||||||
#include <trusty/lib/storage.h>
|
#include <trusty/lib/storage.h>
|
||||||
|
|
||||||
#define LOG_TAG "trusty_storage_client"
|
|
||||||
#include <cutils/log.h>
|
|
||||||
|
|
||||||
#define MAX_CHUNK_SIZE 4040
|
#define MAX_CHUNK_SIZE 4040
|
||||||
|
|
||||||
static inline file_handle_t make_file_handle(storage_session_t s, uint32_t fid)
|
static inline file_handle_t make_file_handle(storage_session_t s, uint32_t fid)
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "storageproxyd"
|
#define LOG_TAG "storageproxyd"
|
||||||
#include <cutils/log.h>
|
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue