/hardware/libhardware/tests/camera2/ |
D | TestSettings.cpp | 90 std::cerr << "Unknown argument: " << arg << std::endl; in ParseArgs() 109 std::cerr << "Unknown long option: " << option_index << std::endl; in ParseArgs() 117 std::cerr << "Unknown option: " << optarg << std::endl; in ParseArgs() 122 std::cerr << std::endl; in ParseArgs() 131 std::cerr << "Forking Disabled: " in ParseArgs() 132 << (mForkingDisabled ? "yes" : "no") << std::endl; in ParseArgs() 134 std::cerr << "Device ID: " << mDeviceId << std::endl; in ParseArgs() 141 std::cerr << "Usage: " << mArgv[0] << " [OPTIONS]" << std::endl; in PrintUsage() 142 std::cerr << std::endl; in PrintUsage() 144 std::cerr << "Main modes of operation:" in PrintUsage() [all …]
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
D | adis16448.cxx | 54 std::cout << "XGYRO_OUT:" << imu->gyroScale(imu->regRead(XGYRO_OUT)) << std::endl; in main() 55 std::cout << "YGYRO_OUT:" << imu->gyroScale(imu->regRead(YGYRO_OUT)) << std::endl; in main() 56 std::cout << "ZGYRO_OUT:" << imu->gyroScale(imu->regRead(ZGYRO_OUT)) << std::endl; in main() 57 std::cout << " " << std::endl; in main() 58 std::cout << "XACCL_OUT:" << imu->accelScale(imu->regRead(XACCL_OUT)) << std::endl; in main() 59 std::cout << "YACCL_OUT:" << imu->accelScale(imu->regRead(YACCL_OUT)) << std::endl; in main() 60 std::cout << "ZACCL_OUT:" << imu->accelScale(imu->regRead(ZACCL_OUT)) << std::endl; in main() 61 std::cout << " " << std::endl; in main()
|
D | es08a.cxx | 41 std::cout << "Set angle to 180" << std::endl; in main() 44 std::cout << "Set angle to 90" << std::endl; in main() 47 std::cout << "Set angle to 0" << std::endl; in main() 50 std::cout << "Set angle to 90" << std::endl; in main() 53 std::cout << "Set angle to 180" << std::endl; in main() 56 std::cout << "exiting application" << std::endl; in main()
|
D | ldt0028.cxx | 44 std::cout << "For the next " << NUMBER_OF_SECONDS << " seconds, " in main() 46 << std::endl << std::endl; in main() 60 std::cout << sensor->name() << " exceeded the threshold value of " << in main() 61 THRESHOLD << " a total of " << count << " times," << std::endl in main() 63 << " readings." << std::endl << std::endl; in main() 67 std::cout << "Now printing a graphical representation of the average reading " in main() 68 << std::endl << "each second for the last " in main() 69 << NUMBER_OF_SECONDS << " seconds." << std::endl; in main() 78 std::cout << "(" << std::setw(4) << (int) round(average) << ") | "; in main() 80 std::cout << "*"; in main() [all …]
|
D | lsm303.cxx | 42 std::cout << "coor: rX " << (int)coor[0] in main() 45 << std::endl; in main() 46 std::cout << "coor: gX " << sensor->getCoorX() in main() 49 << std::endl; in main() 52 std::cout << "heading: " in main() 54 << std::endl; in main() 60 std::cout << "acc: rX " << (int)accel[0] in main() 63 << std::endl; in main() 64 std::cout << "acc: gX " << sensor->getAccelX() in main() 67 << std::endl; in main()
|
/hardware/bsp/intel/peripheral/libmraa/examples/c++/ |
D | Iio-dummy.cpp | 39 } catch (std::exception& e) { \ 48 std::string attr_name = attr; \ 52 } catch (std::exception& e) { \ 61 std::string attr_name = attr; \ 65 } catch (std::exception& e) { \ 75 void log_result(std::string test_name, std::string attr_name, bool expect_success, bool success) in log_result() 77 std::string result; in log_result() 114 std::string deviceName; in main() 117 std::cout << "IIO device 0 found by id." << std::endl; in main() 120 } catch (std::exception& e) { in main() [all …]
|
D | Uart-example.cpp | 41 } catch (std::exception& e) { in main() 42 std::cout << e.what() << ", likely invalid platform config" << std::endl; in main() 47 } catch (std::exception& e) { in main() 48 std::cout << "Error while setting up raw UART, do you have a uart?" << std::endl; in main() 49 std::terminate(); in main() 53 std::cout << "Error setting parity on UART" << std::endl; in main() 57 std::cout << "Error setting parity on UART" << std::endl; in main() 61 std::cout << "Error setting flow control UART" << std::endl; in main()
|
/hardware/bsp/intel/peripheral/libupm/src/h3lis331dl/ |
D | h3lis331dl.cxx | 34 using namespace std; 45 throw std::runtime_error(std::string(__FUNCTION__) + in H3LIS331DL() 88 throw std::runtime_error(std::string(__FUNCTION__) + in setDataRate() 105 throw std::runtime_error(std::string(__FUNCTION__) + in setPowerMode() 122 throw std::runtime_error(std::string(__FUNCTION__) + in enableAxis() 139 throw std::runtime_error(std::string(__FUNCTION__) + in setFullScale() 156 throw std::runtime_error(std::string(__FUNCTION__) + in setHPCF() 173 throw std::runtime_error(std::string(__FUNCTION__) + in setHPM() 189 throw std::runtime_error(std::string(__FUNCTION__) + in boot() 214 throw std::runtime_error(std::string(__FUNCTION__) + in enableHPF1() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/mpu9150/ |
D | ak8975.cxx | 33 using namespace std; 47 throw std::runtime_error(std::string(__FUNCTION__) + in AK8975() 66 throw std::runtime_error(std::string(__FUNCTION__) + in init() 73 throw std::runtime_error(std::string(__FUNCTION__) + in init() 86 throw std::runtime_error(std::string(__FUNCTION__) + in init() 99 throw std::runtime_error(std::string(__FUNCTION__) + in setMode() 135 throw std::runtime_error(std::string(__FUNCTION__) + in waitforDeviceReady() 152 throw std::runtime_error(std::string(__FUNCTION__) + in update() 184 throw std::runtime_error(std::string(__FUNCTION__) + in selfTest() 192 throw std::runtime_error(std::string(__FUNCTION__) + in selfTest() [all …]
|
/hardware/libhardware/tests/input/evdev/ |
D | InputHub_test.cpp | 39 using namespace std::literals::chrono_literals; 41 using InputCbFunc = std::function<void(const std::shared_ptr<InputDeviceNode>&, InputEvent&, nsecs_… 42 using DeviceCbFunc = std::function<void(const std::shared_ptr<InputDeviceNode>&)>; 44 static const InputCbFunc kNoopInputCb = [](const std::shared_ptr<InputDeviceNode>&, InputEvent&, ns… in __anon5f3141d90102() 45 static const DeviceCbFunc kNoopDeviceCb = [](const std::shared_ptr<InputDeviceNode>&){}; in __anon5f3141d90202() 57 virtual void onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& event, in onInputEvent() 61 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceAdded() 64 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceRemoved() 77 mCallback = std::make_shared<TestInputCallback>(); in SetUp() 78 mInputHub = std::make_shared<InputHub>(mCallback); in SetUp() [all …]
|
D | InputDevice_test.cpp | 70 auto node = std::make_shared<MockInputDeviceNode>(); in TEST_F() 71 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() 99 auto node = std::make_shared<MockInputDeviceNode>(); in TEST_F() 100 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() 115 auto node = std::make_shared<MockInputDeviceNode>(); in TEST_F() 116 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() 132 auto node = std::shared_ptr<MockInputDeviceNode>(MockNexus7v2::getElanTouchscreen()); in TEST_F() 133 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() 139 auto node = std::shared_ptr<MockInputDeviceNode>(MockNexus7v2::getButtonJack()); in TEST_F() 140 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/ |
D | upm_exception.i | 12 } catch (std::invalid_argument& e) { in catch() 13 std::string s1("UPM Invalid Argument: "), s2(e.what()); in catch() 17 } catch (std::domain_error& e) { in catch() 18 std::string s1("UPM Domain Error: "), s2(e.what()); 22 } catch (std::overflow_error& e) { in catch() 23 std::string s1("UPM Overflow Error: "), s2(e.what()); in catch() 27 } catch (std::out_of_range& e) { in catch() 28 std::string s1("UPM Out of Range: "), s2(e.what()); 32 } catch (std::length_error& e) { in catch() 33 std::string s1("UPM Length Error: "), s2(e.what()); in catch() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/mhz16/ |
D | mhz16.cxx | 32 using namespace std; 42 throw std::invalid_argument(std::string(__FUNCTION__) + in MHZ16() 52 throw std::runtime_error(std::string(__FUNCTION__) + in MHZ16() 60 throw std::runtime_error(std::string(__FUNCTION__) + in MHZ16() 112 throw std::runtime_error(std::string(__FUNCTION__) + in readData() 133 throw std::runtime_error(std::string(__FUNCTION__) + in writeData() 165 throw std::runtime_error(std::string(__FUNCTION__) + in setupTty() 178 throw std::runtime_error(std::string(__FUNCTION__) + in verifyPacket() 197 throw std::runtime_error(std::string(__FUNCTION__) + in getData() 208 throw std::runtime_error(std::string(__FUNCTION__) + in getData()
|
/hardware/bsp/intel/peripheral/libupm/src/mpr121/ |
D | mpr121.cxx | 32 using namespace std; 42 throw std::invalid_argument(std::string(__FUNCTION__) + in MPR121() 97 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 108 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 119 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 142 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 153 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 164 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 171 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944() 183 throw std::runtime_error(std::string(__FUNCTION__) + in configAN3944()
|
/hardware/bsp/intel/peripheral/libupm/src/grovescam/ |
D | grovescam.cxx | 35 using namespace std; 50 throw std::invalid_argument(std::string(__FUNCTION__) + in GROVESCAM() 60 throw std::runtime_error(std::string(__FUNCTION__) + in GROVESCAM() 68 throw std::runtime_error(std::string(__FUNCTION__) + in GROVESCAM() 123 throw std::runtime_error(std::string(__FUNCTION__) + in readData() 145 throw std::runtime_error(std::string(__FUNCTION__) + in writeData() 177 throw std::runtime_error(std::string(__FUNCTION__) + in setupTty() 206 throw std::runtime_error(std::string(__FUNCTION__) + in init() 259 throw std::runtime_error(std::string(__FUNCTION__) + in preCapture() 298 throw std::runtime_error(std::string(__FUNCTION__) + in doCapture() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/api/mraa/ |
D | iio.hpp | 75 std::ostringstream oss; in Iio() 77 throw std::invalid_argument(oss.str()); in Iio() 88 Iio(const std::string& deviceName) in Iio() 90 std::ostringstream oss; in Iio() 94 throw std::invalid_argument(oss.str()); in Iio() 99 throw std::invalid_argument(oss.str()); in Iio() 117 std::string 133 readInt(const std::string& attributeName) const in readInt() 138 std::ostringstream oss; in readInt() 140 throw std::runtime_error(oss.str()); in readInt() [all …]
|
/hardware/libhardware/modules/input/evdev/ |
D | InputHub.h | 60 virtual const std::string& getPath() const = 0; 63 virtual const std::string& getName() const = 0; 65 virtual const std::string& getLocation() const = 0; 67 virtual const std::string& getUniqueId() const = 0; 118 virtual void onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& event, 120 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) = 0; 121 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) = 0; 135 virtual status_t registerDevicePath(const std::string& path) = 0; 136 virtual status_t unregisterDevicePath(const std::string& path) = 0; 158 explicit InputHub(const std::shared_ptr<InputCallbackInterface>& cb); [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/pca9685/ |
D | pca9685.cxx | 34 using namespace std; 53 throw std::invalid_argument(std::string(__FUNCTION__) + in PCA9685() 62 throw std::runtime_error(std::string(__FUNCTION__) + in PCA9685() 86 throw std::runtime_error(std::string(__FUNCTION__) + in writeByte() 100 throw std::runtime_error(std::string(__FUNCTION__) + in writeWord() 165 throw std::out_of_range(std::string(__FUNCTION__) + in ledFullOn() 193 throw std::out_of_range(std::string(__FUNCTION__) + in ledFullOff() 221 throw std::out_of_range(std::string(__FUNCTION__) + in ledOnTime() 229 throw std::out_of_range(std::string(__FUNCTION__) + in ledOnTime() 254 throw std::out_of_range(std::string(__FUNCTION__) + in ledOffTime() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/zfm20/ |
D | zfm20.cxx | 32 using namespace std; 42 throw std::invalid_argument(std::string(__FUNCTION__) + in ZFM20() 52 throw std::runtime_error(std::string(__FUNCTION__) + in ZFM20() 60 throw std::runtime_error(std::string(__FUNCTION__) + in ZFM20() 118 throw std::runtime_error(std::string(__FUNCTION__) + in readData() 139 throw std::runtime_error(std::string(__FUNCTION__) + in writeData() 147 throw std::runtime_error(std::string(__FUNCTION__) + in writeData() 178 throw std::runtime_error(std::string(__FUNCTION__) + in setupTty() 259 throw std::runtime_error(std::string(__FUNCTION__) + in verifyPacket() 267 throw std::runtime_error(std::string(__FUNCTION__) + in verifyPacket() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/ht9170/ |
D | ht9170.cxx | 32 using namespace std; 39 throw std::invalid_argument(std::string(__FUNCTION__) + in HT9170() 47 throw std::invalid_argument(std::string(__FUNCTION__) + in HT9170() 55 throw std::invalid_argument(std::string(__FUNCTION__) + in HT9170() 63 throw std::invalid_argument(std::string(__FUNCTION__) + in HT9170() 71 throw std::invalid_argument(std::string(__FUNCTION__) + in HT9170()
|
/hardware/bsp/intel/peripheral/libupm/src/hm11/ |
D | hm11.cxx | 32 using namespace std; 42 throw std::invalid_argument(std::string(__FUNCTION__) + in HM11() 52 throw std::runtime_error(std::string(__FUNCTION__) + in HM11() 60 throw std::runtime_error(std::string(__FUNCTION__) + in HM11() 107 throw std::runtime_error(std::string(__FUNCTION__) + in readData() 129 throw std::runtime_error(std::string(__FUNCTION__) + in writeData() 161 throw std::runtime_error(std::string(__FUNCTION__) + in setupTty()
|
/hardware/qcom/audio/msm8909/audiod/ |
D | AudioDaemon.h | 73 bool getStateFDs(std::vector<std::pair<int,int> > &sndcardFdPair); 74 void putStateFDs(std::vector<std::pair<int,int> > &sndcardFdPair); 84 std::vector<std::pair<int,int> > mSndCardFd; 87 std::vector<std::pair<String8, int> > mAudioEvents; 88 std::vector<std::pair<String8, int> > mAudioEventsStatus;
|
/hardware/bsp/intel/peripheral/libupm/src/sm130/ |
D | sm130.h | 184 std::string getFirmwareVersion(); 230 bool authenticate(uint8_t block, KEY_TYPES_T keyType, std::string key=""); 239 std::string readBlock16(uint8_t block); 258 bool writeBlock16(uint8_t block, std::string contents); 280 bool writeBlock4(uint8_t block, std::string contents); 296 bool writeKey(uint8_t eepromSector, KEY_TYPES_T keyType, std::string key); 393 std::string getLastErrorString() { return m_lastErrorString; }; in getLastErrorString() 409 std::string getUID() { return m_uid; }; in getUID() 425 std::string tag2String(TAG_TYPE_T tag); 437 std::string string2HexString(std::string input); [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/micsv89/ |
D | micsv89.cxx | 35 throw std::invalid_argument(std::string(__FUNCTION__) + ": I2c.frequency(I2C_STD) failed"); in MICSV89() 46 throw std::invalid_argument(std::string(__FUNCTION__) + ": I2c.address() failed"); in update() 50 throw std::invalid_argument(std::string(__FUNCTION__) + ": I2c.write() failed"); in update() 55 throw std::invalid_argument(std::string(__FUNCTION__) + ": I2c.address() failed"); in update() 59 throw std::invalid_argument(std::string(__FUNCTION__) + ": I2c.read() failed"); in update()
|
/hardware/bsp/intel/peripheral/libupm/src/at42qt1070/ |
D | at42qt1070.cxx | 34 using namespace std; 43 throw std::invalid_argument(std::string(__FUNCTION__) + in AT42QT1070() 51 throw std::invalid_argument(std::string(__FUNCTION__) + in AT42QT1070() 57 throw std::runtime_error("Chip ID does not match the expected value (2Eh)"); in AT42QT1070() 76 throw std::runtime_error(std::string(__FUNCTION__) + in writeByte() 90 throw std::runtime_error(std::string(__FUNCTION__) + in writeWord() 164 throw std::invalid_argument("Only keys 0-6 are allowed"); in getAVE() 179 throw std::invalid_argument("Only keys 0-6 are allowed"); in setAVE() 192 throw std::invalid_argument("Invalid averaging factor"); in setAVE() 209 throw std::invalid_argument("Only keys 0-6 are allowed"); in getAKSGroup() [all …]
|