Lines Matching refs:driver
80 sp<ProcessState> ProcessState::initWithDriver(const char* driver) in initWithDriver() argument
82 return init(driver, true /*requireDefault*/); in initWithDriver()
90 sp<ProcessState> ProcessState::init(const char *driver, bool requireDefault) in init() argument
95 if (driver == nullptr) { in init()
102 if (access(driver, R_OK) == -1) { in init()
103 ALOGE("Binder driver %s is unavailable. Using /dev/binder instead.", driver); in init()
104 driver = "/dev/binder"; in init()
108 gProcess = new ProcessState(driver); in init()
114 LOG_ALWAYS_FATAL_IF(gProcess->getDriverName() != driver, in init()
117 gProcess->getDriverName().c_str(), driver); in init()
363 static int open_driver(const char *driver) in open_driver() argument
365 int fd = open(driver, O_RDWR | O_CLOEXEC); in open_driver()
386 ALOGW("Opening '%s' failed: %s\n", driver, strerror(errno)); in open_driver()
391 ProcessState::ProcessState(const char *driver) in ProcessState() argument
392 : mDriverName(String8(driver)) in ProcessState()
393 , mDriverFD(open_driver(driver)) in ProcessState()
424 …OG_ALWAYS_FATAL_IF(mDriverFD < 0, "Binder driver '%s' could not be opened. Terminating.", driver); in ProcessState()