Home
last modified time | relevance | path

Searched refs:WriteStringToFile (Results 1 – 25 of 36) sorted by relevance

12

/hardware/interfaces/audio/common/all-versions/test/utility/tests/
Dutility_tests.cpp84 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/
DUsbGadgetUtils.cpp82 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()
DUsbOverheatEvent.cpp108 if (!WriteStringToFile(kOverheatLock, kWakeLockPath)) { in wakeLockAcquire()
120 if (!WriteStringToFile(kOverheatLock, kWakeUnlockPath)) { in wakeLockRelease()
DMonitorFfs.cpp133 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/
DUsbGadgetUtils.cpp78 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()
DMonitorFfs.cpp112 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/
DUsbGadgetUtils.cpp78 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()
DMonitorFfs.cpp112 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
163 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
/hardware/google/pixel/health/test/
DTestBatteryDefender.cpp37 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/
Dimpl_common.cpp28 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/
Dapex_update_listener_test.cc36 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/
DPcaChargeStats.cpp33 using android::base::WriteStringToFile;
49 if (!WriteStringToFile(std::to_string(0), kPcaChargeMetricsPath.c_str())) { in CheckPcaContentsAndAck()
DWirelessChargeStats.cpp33 using android::base::WriteStringToFile;
69 if (!WriteStringToFile(std::to_string(0), kWirelessChargeMetricsPath.c_str())) { in CheckWirelessContentsAndAck()
/hardware/interfaces/atrace/1.0/default/
DAtraceDevice.cpp88 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/
DIioEnergyMeterDataSelector.cpp82 bool success = ::android::base::WriteStringToFile(railConfig, nodePath); in applyConfigToDevices()
118 bool success = ::android::base::WriteStringToFile(kSelectionComplete, nodePath); in sendConfigurationComplete()
/hardware/google/pixel/health/
DCycleCountBackupRestore.cpp65 if (!android::base::WriteStringToFile(device_battery_serial, kPersistSerial)) { in CheckSerial()
123 if (!android::base::WriteStringToFile(str_data, path)) in Write()
DBatteryThermalControl.cpp36 if (android::base::WriteStringToFile(action, mThermalSocMode)) { in setThermalMode()
/hardware/google/interfaces/light/1.0/default/
DLightExt.cpp35 if (!android::base::WriteStringToFile((on ? "1" : "0"), in applyHBM()
/hardware/interfaces/usb/gadget/1.2/default/
DUsbGadget.cpp113 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/
Dthermal_files.cpp67 if (!android::base::WriteStringToFile(data.data(), file_path)) { in writeCdevFile()
/hardware/interfaces/power/1.0/vts/functional/
DVtsHalPowerV1_0TargetTest.cpp87 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/
Drebalance_interrupts.cpp63 using android::base::WriteStringToFile;
219 WriteStringToFile(affinity_masks[mask_index], affinity_path); in RebalanceIrqs()
/hardware/google/interfaces/light/1.1/default/
DLightExt.cpp68 if (!android::base::WriteStringToFile(action, kHighBrightnessModeNode)) { in applyHBM()
/hardware/interfaces/usb/gadget/1.1/default/
DUsbGadget.cpp69 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/
DphNxpNciHal_IoctlOperations.cc33 using android::base::WriteStringToFile;
643 if (!WriteStringToFile(transitConfValue, transitConfFileName)) { in phNxpNciHal_setNxpTransitConfig()
648 if (!WriteStringToFile("", transitConfFileName)) { in phNxpNciHal_setNxpTransitConfig()

12