Searched defs:mode (Results 26 - 50 of 145) sorted by relevance

123456

/system/connectivity/wificond/
H A Dlooper_backed_event_loop.cpp94 ReadyMode mode,
98 if (mode == kModeInput) {
100 } else if (mode == kModeOutput) {
103 LOG(ERROR) << "Invalid mode for WatchFileDescriptor().";
92 WatchFileDescriptor( int fd, ReadyMode mode, const std::function<void(int)>& callback) argument
/system/core/adb/
H A Dfile_sync_service.h47 uint32_t mode; member in struct:syncmsg::__anon1401
56 uint32_t mode; member in struct:syncmsg::__anon1402
67 uint32_t mode; member in struct:syncmsg::__anon1403
H A Dfile_sync_service.cpp76 unsigned int mode = 0775; local
88 fs_config(partial_path.c_str(), 1, nullptr, &uid, &gid, &mode, &capabilities);
90 if (adb_mkdir(partial_path.c_str(), mode) == -1) {
112 msg.stat_v1.mode = st.st_mode;
136 msg.stat_v2.mode = st.st_mode;
164 msg.dent.mode = st.st_mode;
178 msg.dent.mode = 0;
202 mode_t mode, std::vector<char>& buffer, bool do_unlink) {
208 int fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode);
214 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode);
201 handle_send_file(int s, const char* path, uid_t uid, gid_t gid, uint64_t capabilities, mode_t mode, std::vector<char>& buffer, bool do_unlink) argument
374 mode_t mode = strtoul(spec.substr(comma + 1).c_str(), nullptr, 0); local
[all...]
/system/core/init/
H A Dbootchart.cpp59 const char* mode) {
60 std::unique_ptr<FILE, decltype(&fclose)> result(fopen(filename, mode), fclose);
58 fopen_unique(const char* filename, const char* mode) argument
/system/core/libappfuse/
H A DFuseAppLoop.cc161 response.entry_out.attr.mode = S_IFREG | 0777;
166 bool FuseAppLoop::ReplyGetAttr(uint64_t unique, uint64_t inode, int64_t size, int mode) { argument
167 CHECK(mode == (S_IFREG | 0777) || mode == (S_IFDIR | 0777));
172 response.attr_out.attr.mode = mode;
/system/core/libcutils/
H A Dfs.c41 static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t gid, argument
63 int mode_match = ((sb.st_mode & ALL_PERMS) == mode);
74 ALOGW("Expected path %s with mode %o but found %o",
75 path, mode, (sb.st_mode & ALL_PERMS));
82 ? TEMP_FAILURE_RETRY(mkdir(path, mode))
97 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) {
98 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno));
109 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
110 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 1, /*prepare_as_dir*/ 1);
113 int fs_prepare_dir_strict(const char* path, mode_t mode, uid_ argument
117 fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) argument
190 fs_mkdirs(const char* path, mode_t mode) argument
[all...]
/system/extras/simpleperf/
H A Dread_apk.cpp147 std::string mode = std::string("rb") + CLOSE_ON_EXEC_MODE; local
148 FILE* fp = fopen(apk_path.c_str(), mode.c_str());
/system/extras/verity/fec/
H A Dmain.cpp97 "usage: fec <mode> [ <options> ] [ <data> <fec> [ <output> ] ]\n"
98 "mode:\n"
144 static int get_start(int mode, const std::string& filename) argument
152 if (mode == MODE_GETECCSTART) {
275 int mode = MODE_ENCODE; local
309 if (mode != MODE_ENCODE) {
314 if (mode != MODE_ENCODE) {
317 mode = MODE_DECODE;
329 if (mode != MODE_ENCODE) {
332 mode
[all...]
/system/tools/hidl/
H A DRefType.cpp73 std::string RefType::getCppType(StorageMode /*mode*/, bool specifyNamespaces) const {
100 ErrorMode mode) const {
111 mode,
125 ErrorMode mode,
189 handleError(out, mode);
207 mode,
223 mode,
116 emitResolveReferencesEmbedded( Formatter &out, size_t , const std::string &name, const std::string &sanitizedName, bool , const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument
H A DScalarType.cpp156 ErrorMode mode) const {
163 mode,
173 ErrorMode mode,
211 handleError(out, mode);
167 emitReaderWriterWithCast( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, bool needsCast) const argument
H A DStringType.cpp39 std::string StringType::getCppType(StorageMode mode, argument
45 switch (mode) {
75 ErrorMode mode) const {
95 handleError(out, mode);
107 handleError(out, mode);
119 mode,
133 ErrorMode mode,
143 mode,
124 emitReaderWriterEmbedded( Formatter &out, size_t , const std::string &name, const std::string & , bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument
/system/update_engine/payload_consumer/
H A Dmtd_file_descriptor.cc104 bool MtdFileDescriptor::Open(const char* path, int flags, mode_t mode) { argument
107 // But we need to open the underlying file descriptor in O_RDWR mode because
115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode));
156 // Ignore seek in write mode.
177 bool UbiFileDescriptor::Open(const char* path, int flags, mode_t mode) { argument
186 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode));
233 // Ignore seek in write mode.
/system/update_engine/update_manager/
H A Dvariable.h81 // Returns the variable mode.
108 BaseVariable(const std::string& name, VariableMode mode) argument
109 : BaseVariable(name, mode,
112 // Creates a BaseVariable with mode kVariableModePoll and the provided
143 BaseVariable(const std::string& name, VariableMode mode, argument
145 : name_(name), mode_(mode),
146 poll_interval_(mode == kVariableModePoll ?
171 // The variable's mode.
201 Variable(const std::string& name, VariableMode mode) argument
202 : BaseVariable(name, mode) {}
[all...]
/system/vold/
H A DLoop.cpp153 mode_t mode = 0660 | S_IFBLK; local
162 if (mknod(filename, mode, dev) < 0) {
/system/bt/bta/hh/
H A Dbta_hh_api.cc120 * protocol mode and security level.
125 void BTA_HhOpen(BD_ADDR dev_bda, tBTA_HH_PROTO_MODE mode, tBTA_SEC sec_mask) { argument
132 p_buf->mode = mode;
196 * Description This function set the protocol mode at specified HID handle
209 * Description This function get protocol mode information.
374 * Description This utility function parse a boot mode report.
/system/bt/btif/co/
H A Dbta_hh_co.cc398 * mode - Hid host Protocol Mode
405 tBTA_HH_PROTO_MODE mode, uint8_t sub_class,
411 "%s: dev_handle = %d, subclass = 0x%02X, mode = %d, "
413 __func__, dev_handle, sub_class, mode, ctry_code, app_id);
404 bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len, tBTA_HH_PROTO_MODE mode, uint8_t sub_class, uint8_t ctry_code, UNUSED_ATTR BD_ADDR peer_addr, uint8_t app_id) argument
/system/bt/btif/src/
H A Dbtif_util.cc440 const char* dump_adapter_scan_mode(bt_scan_mode_t mode) { argument
441 switch (mode) {
447 return "unknown scan mode";
461 return "unknown scan mode";
/system/bt/embdrv/sbc/decoder/srce/
H A Ddecoder-sbc.c133 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) {
384 uint8_t mode; local
401 subbands = mode = blocks = frameData[1];
403 mode = (mode & (BIT3 | BIT2)) >> 2;
409 switch (mode) {
419 if (mode == SBC_MONO) {
/system/bt/hci/src/
H A Dhci_packet_factory.cc80 static BT_HDR* make_write_simple_pairing_mode(uint8_t mode) { argument
86 UINT8_TO_STREAM(stream, mode);
90 static BT_HDR* make_write_secure_connections_host_support(uint8_t mode) { argument
96 UINT8_TO_STREAM(stream, mode);
/system/bt/service/common/bluetooth/
H A Dscan_settings.h28 // A scan mode describes the power consumption involved in LE scans.
30 // A special Bluetooth LE scan mode. Applications using this scan mode will
35 // Perform Bluetooth LE scan in low power mode. This is the default scan
36 // mode as it consumes the least power.
39 // Perform Bluetooth LE scan in balanced power mode. Scan results are
44 // Scan using the highest duty cycle. It's recommended to only use this mode
84 // Hardware filter match mode.
86 // In aggressive mode the hardware will determine a match sooner even with
90 // In sticky mode
122 Mode mode() const { return mode_; } function in class:bluetooth::ScanSettings
123 set_mode(Mode mode) argument
141 set_match_mode(MatchMode mode) argument
[all...]
/system/bt/service/
H A Dlow_energy_advertiser.cc46 int GetAdvertisingIntervalUnit(AdvertiseSettings::Mode mode) { argument
49 switch (mode) {
94 out_params->min_interval = GetAdvertisingIntervalUnit(settings.mode());
/system/connectivity/wificond/net/
H A Dnetlink_utils.cpp142 // driver always reports that interface is in STATION mode. Even when we
144 // because hostapd is supposed to set interface to AP mode later.
165 InterfaceMode mode) {
167 if (mode == STATION_MODE) {
170 LOG(ERROR) << "Unexpected mode for interface with index: "
164 SetInterfaceMode(uint32_t interface_index, InterfaceMode mode) argument
/system/core/adf/libadfhwc/
H A Dadfhwc.cpp119 const drm_mode_modeinfo &mode, const uint32_t attribute)
123 if (mode.vrefresh)
124 return 1000000000 / mode.vrefresh;
128 return mode.hdisplay;
131 return mode.vdisplay;
134 return dpi(mode.hdisplay, data.width_mm);
137 return dpi(mode.vdisplay, data.height_mm);
170 const drm_mode_modeinfo &mode, const uint32_t attribute)
174 if (mode.vrefresh)
175 return 1000000000 / mode
118 adf_display_attribute(const adf_interface_data &data, const drm_mode_modeinfo &mode, const uint32_t attribute) argument
169 adf_display_attribute_hwc2(const adf_interface_data &data, const drm_mode_modeinfo &mode, const uint32_t attribute) argument
229 struct drm_mode_modeinfo mode = dev->display_configs[config]; local
[all...]
/system/core/base/
H A Dfile.cpp105 mode_t mode, uid_t owner, gid_t group,
109 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
116 // meant what they said and doesn't want the umask-influenced mode.
117 if (fchmod(fd, mode) == -1) {
104 WriteStringToFile(const std::string& content, const std::string& path, mode_t mode, uid_t owner, gid_t group, bool follow_symlinks) argument
/system/core/cpio/
H A Dmkbootfs.c40 int uid, gid, mode; member in struct:fs_config_entry
47 * gid, mode). */
75 s->st_mode = p->mode | (s->st_mode & ~07777);
81 s->st_mode = empty_path_config->mode | (s->st_mode & ~07777);
104 // fprintf(stderr, "_eject %s: mode=0%o\n", out, s->st_mode);
271 die("Unknown '%s' (mode %d)?\n", in, s.st_mode);
317 cc->mode = strtol(strtok(NULL, " \n"), NULL, 8);

Completed in 1947 milliseconds

123456