History log of /system/core/libcutils/tests/multiuser_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bd2ecd8e6dbcc03c7664a3f07d3297509fc0b162 17-Apr-2017 Jeff Sharkey <jsharkey@android.com> Allocate a GID range for external cache files.

We can't reuse the GID range for internal cache files, otherwise
we don't have a way to tease apart the difference when deciding if
it's safe to move apps.

Test: builds, boots
Bug: 37193650
Change-Id: I22c4e575cd557636e74c5c73035adb1d4dcbb7f7
/system/core/libcutils/tests/multiuser_test.cpp
6d90fdc5e5c69a5f16802364c489d51398e856d6 22-Feb-2017 Greg Hackmann <ghackmann@google.com> libcutils: fix Wsign-compare warnings in multiuser_test

gid_t and uid_t are unsigned ints, so we need to compare against unsigned
constants.

Bug: 26936282
Test: mmm system/core/libcutils/tests
Test: adb shell /data/nativetest/libcutils_test/libcutils_test32 \
--gtest_filter=MultiuserTest.* (on hikey)
Test: adb shell /data/nativetest64/libcutils_test/libcutils_test64 \
--gtest_filter=MultiuserTest.* (on hikey)

Change-Id: Ic4c8a137e3f37cb5e95ba925814f201cfd5a06b0
Signed-off-by: Greg Hackmann <ghackmann@google.com>
/system/core/libcutils/tests/multiuser_test.cpp
7e5d0b1fae241ba5fe7a6f909ad99346167cb2ed 19-Jan-2017 Jeff Sharkey <jsharkey@android.com> Define GID range for external data and OBBs.

To quickly answer the question of "how much data is a UID using?" we
need a GID range to label files on external storage, similar to
the GID ranges already defined for cached and shared data.

Also define a new GID that will be used to label the OBB files shared
between all users under /data/media/obb.

Test: builds, newly added tests pass
Bug: 34263266
Change-Id: I16fb7d166c3dcdeafbf477162d191d3b73ae8ac2
/system/core/libcutils/tests/multiuser_test.cpp
dff44709cf462a3af7eb5770c90e3ada492295b7 13-Dec-2016 Jeff Sharkey <jsharkey@android.com> Define range of GIDs for cached app data.

To support upcoming disk usage calculation optimizations, this change
creates a new GID for each app that will be used to mark its cached
data. We're allocating these unique GIDs so that we can use
quotactl() to track cached data on a per-app basis.

This change also tightens up the implementation of both the cache
and shared GID calculation to ensure that they stay inside the valid
ranges, and includes tests to verify.

Test: builds, boots, tests pass
Bug: 27948817
Change-Id: Ie4377e5aae267f2da39a165888139228995987cb
/system/core/libcutils/tests/multiuser_test.cpp