Add casts to avoid build warnings with gcc-4.7

Example:
keystore.cpp:1339:35: error: narrowing conversion of 'CommandCodes[0]'
from 'command_code_t {aka unsigned char}' to 'int8_t {aka signed char}'

Change-Id: I8cd239880821724050d1716b78851807e0246ef2
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Merge "Add casts to avoid build warnings with gcc-4.7"
am 9b0bd2b3: Merge "Add casts to avoid build warnings with gcc-4.7"

* commit '9b0bd2b32061e852c3233f6784e974b5226c5821':
  Add casts to avoid build warnings with gcc-4.7
Switch keystore to binder

Change-Id: I6dacdc43bcc1a56e47655e37e825ee6a205eb56b
Merge "Switch keystore to binder"
EINTR handling and debugging for error cases

Some interruptable syscalls were not wrapped with TEMP_FAILURE_RETRY
while others were. Add them where necessary.

Additionally, some error cases were not logging any messages so things
would mysteriously fail if there was an underlying filesystem problem.

Change-Id: I0b789376b2971fa8aaaff7eac21a90a9a94afac8
Merge "EINTR handling and debugging for error cases"
Add Android.mk as a dependency as well

Change-Id: I19e91eb766fcc55e9a610421a67a7c8706fdaa46
Merge "Add Android.mk as a dependency as well"
Actually terminate on EOF

Change-Id: I02729444a822bd2d3c9a6fd6e118079e2d8973e4
Merge "Actually terminate on EOF"
Add wrapping capability to keystore engine

Change-Id: Ie71722747b6f0c5f53a8f333e838a54057eb9ab5
Fix mtime via Binder

Change-Id: I3d5e3d4114d40902a6cf25a4c8ffabea4cc7851f
Merge "Add wrapping capability to keystore engine"
Merge "Fix mtime via Binder"
Fix for error condition in IKeystoreService

When an error condition happens, keystore might memcpy a NULL pointer
which would cause a SIGSEGV. Avoid trying to copy it in that case.

Bug: 8019596
Change-Id: Ifcfc75401c41595fc2c2f0172c718c8d3bb93020
Merge "Fix for error condition in IKeystoreService"
Remove Value and ValueString classes

This was left-over from previous changes and nothing really used it any
more.

Change-Id: Id7bb58ffbc3f5b7f337e9bdbe8d0be315105cb26
keystore: rename uid to callingUid

Change-Id: Ib056ad6b4f2149292100cda9106de19eb7b2e259
keystore: add UID to certain APIs

This will allow explicit indication of which UID to put things under for
trusted UIDs (e.g., system UID) in a future change instead of putting
things only in the calling UID.

Change-Id: Ifc321a714d874a1142890138101ce4166906f413