Merge "Revert "Revert "Remove incorrect android_atomic_...64 use."""
Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup

Bug: 15927194
Change-Id: Id8bc188de68d62fd5f91a99aaaa6c8f2dea06abd
Merge "Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup"
Merge "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
Revert "Revert "Remove incorrect android_atomic_...64 use.""

This reverts commit 9dc5c269f74ac76f62515e3d9558e67c6e63067d.
Adds a stdint.h include in case stdatomic.h stops including that.

Change-Id: If3dd1db1f1132c0f2dc1efb0a44617d3f36d7cfb
Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""

This reverts commit 66629e0de532376fa3ef43175ad05eccd21114da.

Change-Id: Ic298b345d0e500d18e4297b00e755ce3340f13fb
Change an accidental ALOGE to an ALOGV

Change-Id: If07bcef597dd9e531ce6d92c7780ba6ad5090f9a
Merge "Change an accidental ALOGE to an ALOGV"
Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

After fixing b/16874785.

This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e.

Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d
Merge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""""
Disable verification based on vold.decrypt. [frameworks/native]

Bug: 15165413

(cherry picked from commit e18987efb5e39ca1bed15527b7b82bde55c99669)

Change-Id: Ie55ef400c9d1f231b3be64248c756ac798a11ffe
Merge "Disable verification based on vold.decrypt. [frameworks/native]"
Use gettid directly in binder.

Bug: 17048545
Change-Id: I1df378135961e085a52f6cc5694ad74cd73aac19
Merge "Use gettid directly in binder."
Fix CAS argument type.

Gcc apparently doesn't check; clang does.

Bug:17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
Merge "Fix CAS argument type."
Allow apk path to contain one subdirectory.

In the current directory layout this prevented rm_dex and move_dex
commands to validate the apk path and thus cleaning up resources.

Bug: 16888084

(cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3)

Change-Id: I1002529b0c35852c67540d3165d1444523460592
Merge "Allow apk path to contain one subdirectory."
Fix validation of system paths in installd.

System apps are now installed under their own directory
(system_app_dir/app_dir/app.apk). The new path doesn't pass installd
validation because of obsolete checks which verify that the path does
not contain subdirectories past the system_app_dir.

The CL fixes the validation to accept at most on subdirectory.

Bug: 17109858

(cherry picked from commit c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c)

Change-Id: Ic5f15d1864c6af9f4c4b07dc27244ebbb521ad5e
Merge "Fix validation of system paths in installd."