android_system_core/libcutils
Greg Hackmann 4a9531d326 AshmemTest: expand ProtTest cases
ashmem buffers start with PROT_EXEC | PROT_READ | PROT_WRITE and can
have bits individually removed (but not added) through the
ASHMEM_SET_PROT_MASK ioctl.  Test that removing prot bits more than once
works, and that the kernel blocks adding prot bits.

Also test that the complementary ASHMEM_GET_PROT_MASK ioctl returns the
expected prot mask.

Test:  /data/nativetest64/libcutils_test/libcutils_test64 \
       --gtest_filter=AshmemTest.* (on hikey)
Test:  /data/nativetest/libcutils_test/libcutils_test32 \
       --gtest_filter=AshmemTest.* (on hikey)

Change-Id: If7b13672547ec4cf6dfd1886197f40f12b2f1c85
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2017-05-05 20:04:12 +00:00
..
arch-arm
arch-arm64
arch-mips
arch-x86
arch-x86_64
include Remove unused cruft from <cutils/bitops.h>. 2017-04-29 10:22:40 -07:00
include_vndk Remove VNDK warning. 2017-04-19 10:32:49 -07:00
tests AshmemTest: expand ProtTest cases 2017-05-05 20:04:12 +00:00
Android.bp libcutils: convert fs_config.cpp 2017-05-03 08:04:35 -07:00
MODULE_LICENSE_APACHE2
NOTICE
android_get_control_env.h libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
android_get_control_file.cpp libcutils: sdk(mac) build error 2016-11-17 08:05:16 -08:00
android_reboot.c remove emergency shutdown and improve init's reboot logic 2017-03-22 11:23:31 -07:00
ashmem-dev.c liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
ashmem-host.c
canned_fs_config.c libcutils: handle root directory empty path 2017-03-28 14:57:22 +00:00
config_utils.c
dlmalloc_stubs.c liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
fs.c Add mode bits to a call to open with O_CREAT 2017-01-25 17:31:43 -08:00
fs_config.cpp libcutils: fs_config internal table alias test 2017-05-04 11:41:17 -07:00
hashmap.c
iosched_policy.c
klog.cpp Remove unused klog_get_level. 2017-01-13 18:14:12 -08:00
load_file.c
multiuser.c Allocate a GID range for external cache files. 2017-04-17 14:50:27 -06:00
native_handle.c Preserve errno better in native_handle functions. 2017-05-01 21:34:15 -07:00
open_memstream.c
partition_utils.c
properties.cpp Implement android::base::WaitForProperty. 2017-02-13 11:29:02 -08:00
qtaguid.c liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
record_stream.c
sched_policy.cpp Change set_sched_policy to set slack for current thread. 2017-04-26 15:39:26 -07:00
socket_inaddr_any_server_unix.c
socket_inaddr_any_server_windows.c
socket_local_client_unix.c
socket_local_server_unix.c
socket_local_unix.h
socket_network_client_unix.c
socket_network_client_windows.c
sockets.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
sockets_unix.cpp liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
sockets_windows.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
str_parms.c liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
strdup8to16.c
strdup16to8.c
strlcpy.c
threads.c
trace-dev.c libcutils: compile with BOARD_VNDK_VERSION current 2017-04-17 14:44:17 -07:00
trace-host.c
uevent.c socket: uevent: use SO_RCVBUF instead of SO_RCVBUFFORCE 2016-12-09 15:16:28 -08:00