/hardware/interfaces/audio/common/all-versions/test/utility/tests/ |
D | utility_tests.cpp | 84 ASSERT_TRUE(android::base::WriteStringToFile(INVALID_XML_SOURCE, xml.path)) << strerror(errno); in TEST() 86 ASSERT_TRUE(android::base::WriteStringToFile(XSD_SOURCE, xsd.path)) << strerror(errno); in TEST() 93 android::base::WriteStringToFile(substitute(VALID_XML_SOURCE, MODULE_SOURCE), xml.path)) in TEST() 96 ASSERT_TRUE(android::base::WriteStringToFile(XSD_SOURCE, xsd.path)) << strerror(errno); in TEST() 102 ASSERT_TRUE(android::base::WriteStringToFile(substitute(XML_INCLUDED_SOURCE, MODULE_SOURCE), in TEST() 106 ASSERT_TRUE(android::base::WriteStringToFile( in TEST() 110 ASSERT_TRUE(android::base::WriteStringToFile(XSD_SOURCE, xsd.path)) << strerror(errno); in TEST() 116 ASSERT_TRUE(android::base::WriteStringToFile(substitute(XML_INCLUDED_SOURCE, MODULE_SOURCE), in TEST() 121 ASSERT_TRUE(android::base::WriteStringToFile( in TEST() 127 ASSERT_TRUE(android::base::WriteStringToFile(XSD_SOURCE, xsd.path)) << strerror(errno); in TEST() [all …]
|
/hardware/google/pixel/usb/ |
D | UsbGadgetUtils.cpp | 82 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) in setVidPid() 85 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) in setVidPid() 118 if (!WriteStringToFile("none", PULLUP_PATH)) in resetGadget() 121 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) in resetGadget() 124 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) in resetGadget() 127 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) in resetGadget() 130 if (!WriteStringToFile("0", DESC_USE_PATH)) in resetGadget() 144 if (!WriteStringToFile("1", DESC_USE_PATH)) in addGenericAndroidFunctions() 160 if (!WriteStringToFile("1", DESC_USE_PATH)) in addGenericAndroidFunctions() 211 if (!WriteStringToFile("1", DESC_USE_PATH)) in addAdb()
|
D | UsbOverheatEvent.cpp | 108 if (!WriteStringToFile(kOverheatLock, kWakeLockPath)) { in wakeLockAcquire() 120 if (!WriteStringToFile(kOverheatLock, kWakeUnlockPath)) { in wakeLockRelease()
|
D | MonitorFfs.cpp | 133 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd() 187 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
|
/hardware/interfaces/usb/gadget/1.2/default/lib/ |
D | UsbGadgetUtils.cpp | 78 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid() 80 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid() 111 if (!WriteStringToFile("none", PULLUP_PATH)) ALOGI("Gadget cannot be pulled down"); in resetGadget() 113 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in resetGadget() 115 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in resetGadget() 117 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in resetGadget() 119 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in resetGadget() 131 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions() 144 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions()
|
D | MonitorFfs.cpp | 112 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd() 163 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
|
/hardware/interfaces/usb/gadget/1.1/default/lib/ |
D | UsbGadgetUtils.cpp | 78 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid() 80 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid() 111 if (!WriteStringToFile("none", PULLUP_PATH)) ALOGI("Gadget cannot be pulled down"); in resetGadget() 113 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in resetGadget() 115 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in resetGadget() 117 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in resetGadget() 119 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in resetGadget() 131 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions() 144 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions()
|
D | MonitorFfs.cpp | 112 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd() 163 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
|
/hardware/google/pixel/health/test/ |
D | TestBatteryDefender.cpp | 37 virtual bool WriteStringToFile(const std::string &content, const std::string &path, 50 MOCK_METHOD3(WriteStringToFile, 63 bool WriteStringToFile(const std::string &content, const std::string &path, bool follow_symlinks) { in WriteStringToFile() function 64 return mock->WriteStringToFile(content, path, follow_symlinks); in WriteStringToFile() 144 EXPECT_CALL(*mock, WriteStringToFile(_, _, _)).Times(AnyNumber()); in SetUp() 149 ON_CALL(*mock, WriteStringToFile(_, _, _)).WillByDefault(Return(true)); in SetUp() 282 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(time_expected), in TEST_F() 328 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS), in TEST_F() 334 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS + in TEST_F() 355 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStartLevel, _)); in TEST_F() [all …]
|
/hardware/interfaces/health/storage/impl_common/ |
D | impl_common.cpp | 28 using ::android::base::WriteStringToFile; 99 if (!WriteStringToFile("1", gc_path)) { in GarbageCollect() 112 if (!WriteStringToFile("0", gc_path)) { in GarbageCollect() 133 if (WriteStringToFile("0", path)) { in DebugDump()
|
/hardware/google/camera/common/apex_update_listener/ |
D | apex_update_listener_test.cc | 36 void WriteStringToFile(const char* filename, const std::string& data) { in WriteStringToFile() function 77 WriteStringToFile(tmp_xml_file.path, kApexInfoStateJustPreinstalled); in TEST() 81 WriteStringToFile(tmp_xml_file.path, kApexInfoStateOneOnData); in TEST() 108 WriteStringToFile(tmp_xml_file.path, kApexInfoStateJustPreinstalled); in TEST()
|
/hardware/google/pixel/pixelstats/ |
D | PcaChargeStats.cpp | 33 using android::base::WriteStringToFile; 49 if (!WriteStringToFile(std::to_string(0), kPcaChargeMetricsPath.c_str())) { in CheckPcaContentsAndAck()
|
D | WirelessChargeStats.cpp | 33 using android::base::WriteStringToFile; 69 if (!WriteStringToFile(std::to_string(0), kWirelessChargeMetricsPath.c_str())) { in CheckWirelessContentsAndAck()
|
/hardware/interfaces/atrace/1.0/default/ |
D | AtraceDevice.cpp | 88 if (!android::base::WriteStringToFile("1", tracefs_event_enable_path)) { in enableCategories() 111 if (!android::base::WriteStringToFile("0", tracefs_event_enable_path)) { in disableAllCategories()
|
/hardware/google/pixel/powerstats/dataproviders/ |
D | IioEnergyMeterDataSelector.cpp | 82 bool success = ::android::base::WriteStringToFile(railConfig, nodePath); in applyConfigToDevices() 118 bool success = ::android::base::WriteStringToFile(kSelectionComplete, nodePath); in sendConfigurationComplete()
|
/hardware/google/pixel/health/ |
D | CycleCountBackupRestore.cpp | 65 if (!android::base::WriteStringToFile(device_battery_serial, kPersistSerial)) { in CheckSerial() 123 if (!android::base::WriteStringToFile(str_data, path)) in Write()
|
D | BatteryThermalControl.cpp | 36 if (android::base::WriteStringToFile(action, mThermalSocMode)) { in setThermalMode()
|
/hardware/google/interfaces/light/1.0/default/ |
D | LightExt.cpp | 35 if (!android::base::WriteStringToFile((on ? "1" : "0"), in applyHBM()
|
/hardware/interfaces/usb/gadget/1.2/default/ |
D | UsbGadget.cpp | 113 if (!WriteStringToFile("none", PULLUP_PATH)) { in reset() 120 if (!WriteStringToFile(kGadgetName, PULLUP_PATH)) { in reset() 208 if (!WriteStringToFile(kGadgetName, PULLUP_PATH)) return V1_0::Status::ERROR; in setupFunctions()
|
/hardware/google/pixel/thermal/utils/ |
D | thermal_files.cpp | 67 if (!android::base::WriteStringToFile(data.data(), file_path)) { in writeCdevFile()
|
/hardware/interfaces/power/1.0/vts/functional/ |
D | VtsHalPowerV1_0TargetTest.cpp | 87 ASSERT_TRUE(android::base::WriteStringToFile(governor, CPU_GOVERNOR_PATH)); in TEST_P() 101 ASSERT_TRUE(android::base::WriteStringToFile(old_governor, CPU_GOVERNOR_PATH)); in TEST_P()
|
/hardware/google/pixel/rebalance_interrupts/ |
D | rebalance_interrupts.cpp | 63 using android::base::WriteStringToFile; 219 WriteStringToFile(affinity_masks[mask_index], affinity_path); in RebalanceIrqs()
|
/hardware/google/interfaces/light/1.1/default/ |
D | LightExt.cpp | 68 if (!android::base::WriteStringToFile(action, kHighBrightnessModeNode)) { in applyHBM()
|
/hardware/interfaces/usb/gadget/1.1/default/ |
D | UsbGadget.cpp | 69 if (!WriteStringToFile("none", PULLUP_PATH)) { in reset() 151 if (!WriteStringToFile(kGadgetName, PULLUP_PATH)) return V1_0::Status::ERROR; in setupFunctions()
|
/hardware/nxp/nfc/snxxx/halimpl/hal/ |
D | phNxpNciHal_IoctlOperations.cc | 33 using android::base::WriteStringToFile; 643 if (!WriteStringToFile(transitConfValue, transitConfFileName)) { in phNxpNciHal_setNxpTransitConfig() 648 if (!WriteStringToFile("", transitConfFileName)) { in phNxpNciHal_setNxpTransitConfig()
|