Lines Matching refs:sw_read
649 bool sw_read = (0 != (usage & GRALLOC_USAGE_SW_READ_MASK)); in gralloc_alloc() local
726 if (! ((sw_read || hw_cam_read) && (sw_write || hw_cam_write) ) ) { in gralloc_alloc()
738 if (! (sw_read) ) { in gralloc_alloc()
824 sw_read || sw_write || hw_cam_write || hw_vid_enc_read) { in gralloc_alloc()
1177 bool sw_read = (0 != (usage & GRALLOC_USAGE_SW_READ_MASK)); in gralloc_lock() local
1208 (!sw_read && !sw_write && in gralloc_lock()
1211 (sw_read && !sw_read_allowed) || in gralloc_lock()
1225 if (cb->canBePosted() || sw_read || sw_write || in gralloc_lock()
1245 sw_read); in gralloc_lock()
1249 ALOGE("gralloc_lock cacheFlush failed sw_read=%d\n", sw_read); in gralloc_lock()
1255 if (sw_read & !(usage & GRALLOC_USAGE_HW_CAMERA_MASK)) { in gralloc_lock()
1304 if (sw_read || sw_write || hw_cam_write || hw_cam_read || hw_vid_enc_read) { in gralloc_lock()