/cts/tests/tests/permission/jni/ |
android_permission_cts_FileUtils.cpp | 100 struct vfs_cap_data capData; 101 memset(&capData, 0, sizeof(capData)); 103 ssize_t result = getxattr(pathStr, XATTR_NAME_CAPS, &capData, 104 sizeof(capData)); 106 ret = (capData.data[CAP_TO_INDEX(capId)].permitted &
|
/frameworks/native/cmds/installd/ |
installd.c | 501 struct __user_cap_data_struct capdata[2]; local 503 memset(&capdata, 0, sizeof(capdata)); 507 capdata[CAP_TO_INDEX(CAP_DAC_OVERRIDE)].permitted |= CAP_TO_MASK(CAP_DAC_OVERRIDE); 508 capdata[CAP_TO_INDEX(CAP_CHOWN)].permitted |= CAP_TO_MASK(CAP_CHOWN); 509 capdata[CAP_TO_INDEX(CAP_SETUID)].permitted |= CAP_TO_MASK(CAP_SETUID); 510 capdata[CAP_TO_INDEX(CAP_SETGID)].permitted |= CAP_TO_MASK(CAP_SETGID); 512 capdata[0].effective = capdata[0].permitted; 513 capdata[1].effective = capdata[1].permitted [all...] |
commands.c | 728 struct __user_cap_data_struct capdata[2]; local 730 memset(&capdata, 0, sizeof(capdata)); 732 if (capset(&capheader, &capdata[0]) < 0) { [all...] |
/frameworks/base/core/jni/ |
com_android_internal_os_ZygoteInit.cpp | 166 struct __user_cap_data_struct capdata; local 170 memset (&capdata, 0, sizeof(capdata)); 175 err = capget (&capheader, &capdata); 182 return (jlong) capdata.permitted;
|
/art/runtime/native/ |
dalvik_system_Zygote.cc | 233 __user_cap_data_struct capdata; local 236 memset(&capdata, 0, sizeof(capdata)); 241 capdata.effective = effective; 242 capdata.permitted = permitted; 244 if (capset(&capheader, &capdata) != 0) {
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.c | 425 struct __user_cap_data_struct capdata[2]; local 427 memset(&capdata, 0, sizeof(capdata)); 431 capdata[CAP_TO_INDEX(CAP_SYSLOG)].permitted = CAP_TO_MASK(CAP_SYSLOG); 432 capdata[CAP_TO_INDEX(CAP_SYSLOG)].effective = CAP_TO_MASK(CAP_SYSLOG); 433 capdata[0].inheritable = 0; 434 capdata[1].inheritable = 0; 436 if (capset(&capheader, &capdata[0]) < 0) {
|
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMXExif.cpp | 241 OMXCameraPortParameters * capData = NULL; 249 capData = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex]; 368 exifTags->ulImageWidth = capData->mWidth; 374 exifTags->ulImageHeight = capData->mHeight; 519 OMXCameraPortParameters * capData = NULL; 523 capData = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex]; 565 snprintf(temp_value, sizeof(temp_value)/sizeof(char), "%lu", capData->mWidth); 571 snprintf(temp_value, sizeof(temp_value)/sizeof(char), "%lu", capData->mHeight);
|
OMXCapture.cpp | 722 OMXCameraPortParameters * capData = NULL; 800 capData = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex]; 803 for ( int index = 0 ; index < capData->mNumBufs ; index++ ) { 805 ( unsigned int ) capData->mBufferHeader[index]->pBuffer); 807 (OMX_BUFFERHEADERTYPE*)capData->mBufferHeader[index]); [all...] |
/dalvik/vm/native/ |
dalvik_system_Zygote.cpp | 431 struct __user_cap_data_struct capdata; local 434 memset(&capdata, 0, sizeof(capdata)); 439 capdata.effective = effective; 440 capdata.permitted = permitted; 443 if (capset(&capheader, &capdata) != 0)
|