/system/core/metricsd/ |
D | metrics_client.cc | 90 enum Mode mode, in SendStats() argument 102 if (mode == kModeSendSparseSample) { in SendStats() 104 } else if (mode == kModeSendEnumSample) { in SendStats() 142 enum Mode mode = kModeSendSample; in main() local 150 mode = kModeHasConsent; in main() 153 mode = kModeDumpHistograms; in main() 156 mode = kModeSendEnumSample; in main() 159 mode = kModeIsGuestMode; in main() 162 mode = kModeSendSparseSample; in main() 168 mode = kModeSendCrosEvent; in main() [all …]
|
/system/bt/stack/btm/ |
D | btm_pm.c | 83 static const char *mode_to_string(tBTM_PM_MODE mode); 184 tBTM_PM_MODE mode; in BTM_SetPowerMode() local 194 … (remote_bda[2]<<24)+(remote_bda[3]<<16)+(remote_bda[4]<<8)+remote_bda[5], p_mode->mode); in BTM_SetPowerMode() 197 mode = p_mode->mode & ~BTM_PM_MD_FORCE; in BTM_SetPowerMode() 205 if(mode != BTM_PM_MD_ACTIVE) in BTM_SetPowerMode() 208 ind = mode - BTM_PM_MD_HOLD; /* make it base 0 */ in BTM_SetPowerMode() 214 if(mode == p_cb->state) /* the requested mode is current mode */ in BTM_SetPowerMode() 217 if( (mode == BTM_PM_MD_ACTIVE) || in BTM_SetPowerMode() 218 …((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->inte… in BTM_SetPowerMode() 219 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) in BTM_SetPowerMode() [all …]
|
D | btm_inq.c | 377 tBTM_STATUS BTM_SetInquiryMode (UINT8 mode) in BTM_SetInquiryMode() argument 381 if (mode == BTM_INQ_RESULT_STANDARD) in BTM_SetInquiryMode() 385 else if (mode == BTM_INQ_RESULT_WITH_RSSI) in BTM_SetInquiryMode() 390 else if (mode == BTM_INQ_RESULT_EXTENDED) in BTM_SetInquiryMode() 401 if (!btsnd_hcic_write_inquiry_mode (mode)) in BTM_SetInquiryMode() 470 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_SetPeriodicInquiryMode() 483 if (p_inqparms->mode != BTM_GENERAL_INQUIRY && in BTM_SetPeriodicInquiryMode() 484 p_inqparms->mode != BTM_LIMITED_INQUIRY) in BTM_SetPeriodicInquiryMode() 508 p_inq->inq_active = (UINT8)((p_inqparms->mode == BTM_LIMITED_INQUIRY) ? in BTM_SetPeriodicInquiryMode() 764 if (((p_inq->inqparms.mode & BTM_BR_INQUIRY_MASK) != 0) in BTM_CancelInquiry() [all …]
|
/system/connectivity/shill/net/ |
D | io_ready_handler.cc | 26 ReadyMode mode, in IOReadyHandler() argument 29 ready_mode_(mode), in IOReadyHandler() 38 base::MessageLoopForIO::Mode mode; in Start() local 40 mode = base::MessageLoopForIO::WATCH_WRITE; in Start() 42 mode = base::MessageLoopForIO::WATCH_READ; in Start() 46 fd_, true, mode, &fd_watcher_, this)) { in Start()
|
D | rtnl_message.cc | 55 Mode mode, in RTNLMessage() argument 62 mode_(mode), in RTNLMessage() 85 Mode mode = kModeUnknown; in DecodeInternal() local 92 mode = kModeAdd; in DecodeInternal() 99 mode = kModeDelete; in DecodeInternal() 112 if (!DecodeLink(hdr, mode, &attr_data, &attr_length)) in DecodeInternal() 118 if (!DecodeAddress(hdr, mode, &attr_data, &attr_length)) in DecodeInternal() 124 if (!DecodeRoute(hdr, mode, &attr_data, &attr_length)) in DecodeInternal() 129 if (!DecodeNdUserOption(hdr, mode, &attr_data, &attr_length)) in DecodeInternal() 135 if (!DecodeNeighbor(hdr, mode, &attr_data, &attr_length)) in DecodeInternal() [all …]
|
D | rtnl_message.h | 151 Mode mode, 167 Mode mode() const { return mode_; } in mode() function 212 Mode mode, 216 Mode mode, 220 Mode mode, 224 Mode mode, 231 Mode mode,
|
/system/core/libcutils/ |
D | fs.c | 40 static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t gid, in fs_prepare_path_impl() argument 62 int mode_match = ((sb.st_mode & ALL_PERMS) == mode); in fs_prepare_path_impl() 74 path, mode, (sb.st_mode & ALL_PERMS)); in fs_prepare_path_impl() 81 ? TEMP_FAILURE_RETRY(mkdir(path, mode)) in fs_prepare_path_impl() 96 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { in fs_prepare_path_impl() 97 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno)); in fs_prepare_path_impl() 108 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir() argument 109 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 1, /*prepare_as_dir*/ 1); in fs_prepare_dir() 112 int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir_strict() argument 113 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 0, /*prepare_as_dir*/ 1); in fs_prepare_dir_strict() [all …]
|
D | canned_fs_config.c | 31 unsigned mode; member 60 p->mode = strtol(strtok(NULL, " "), NULL, 8); // mode is in octal in load_canned_fs_config() 86 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) { in canned_fs_config() argument 98 *mode = p->mode; in canned_fs_config() 110 if (c_mode != *mode) printf("%s mode 0%o 0%o\n", path, *mode, c_mode); in canned_fs_config()
|
D | fs_config.c | 47 uint16_t mode; member 212 unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) in fs_config() argument 256 *mode = (*mode & (~07777)) | get2LE((const uint8_t *)&(header.mode)); in fs_config() 273 *mode = (*mode & (~07777)) | pc->mode; in fs_config() 288 p->mode = get2LE((const uint8_t *)&(pc->mode)); in fs_config_generate()
|
/system/extras/verity/fec/ |
D | main.cpp | 144 static int get_start(int mode, const std::string& filename) in get_start() argument 152 if (mode == MODE_GETECCSTART) { in get_start() 275 int mode = MODE_ENCODE; in main() local 309 if (mode != MODE_ENCODE) { in main() 314 if (mode != MODE_ENCODE) { in main() 317 mode = MODE_DECODE; in main() 329 if (mode != MODE_ENCODE) { in main() 332 mode = MODE_PRINTSIZE; in main() 336 if (mode != MODE_ENCODE) { in main() 339 mode = MODE_GETECCSTART; in main() [all …]
|
/system/bt/service/common/bluetooth/ |
D | scan_settings.h | 116 ScanSettings(Mode mode, 125 Mode mode() const { return mode_; } in mode() function 126 void set_mode(Mode mode) { mode_ = mode; } in set_mode() argument 144 void set_match_mode(MatchMode mode) { match_mode_ = mode; } in set_match_mode() argument
|
/system/core/adb/ |
D | file_sync_service.cpp | 53 unsigned int mode = 0775; in secure_mkdirs() local 65 fs_config(partial_path.c_str(), 1, nullptr, &uid, &gid, &mode, &cap); in secure_mkdirs() 67 if (adb_mkdir(partial_path.c_str(), mode) == -1) { in secure_mkdirs() 90 msg.stat.mode = st.st_mode; in do_stat() 112 msg.dent.mode = st.st_mode; in do_list() 126 msg.dent.mode = 0; in do_list() 150 gid_t gid, mode_t mode, std::vector<char>& buffer, bool do_unlink) { in handle_send_file() argument 156 int fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() 162 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() 165 fd = adb_open_mode(path, O_WRONLY | O_CLOEXEC, mode); in handle_send_file() [all …]
|
D | file_sync_client.cpp | 63 static bool should_pull_file(mode_t mode) { in should_pull_file() argument 64 return mode & (S_IFREG | S_IFBLK | S_IFCHR); in should_pull_file() 67 static bool should_push_file(mode_t mode) { in should_push_file() argument 72 return mode & mask; in should_push_file() 79 unsigned int mode; member 86 unsigned int mode) in copyinfo() 87 : lpath(local_path), rpath(remote_path), mode(mode) { in copyinfo() 91 if (S_ISDIR(mode)) { in copyinfo() 433 typedef void (sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char* name); 453 func(msg.dent.mode, msg.dent.size, msg.dent.time, buf); in sync_ls() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 84 int32_t mode; member 246 int mode; member 260 if (params->mode == VERITY_MODE_RESTART) { in format_verity_table() 262 } else if (params->mode == VERITY_MODE_LOGGING) { in format_verity_table() 298 if (params->mode == VERITY_MODE_EIO) { in format_legacy_verity_table() 301 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table() 553 static int write_verity_state(const char *fname, off64_t offset, int32_t mode) in write_verity_state() argument 557 struct verity_state s = { VERITY_STATE_HEADER, VERITY_STATE_VERSION, mode }; in write_verity_state() 582 static int read_verity_state(const char *fname, off64_t offset, int *mode) in read_verity_state() argument 603 *mode = VERITY_MODE_DEFAULT; in read_verity_state() [all …]
|
/system/vold/ |
D | AutoCloseFD.h | 30 AutoCloseFD(const char *path, int flags = O_RDONLY, int mode = 0): 31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {} 32 AutoCloseFD(const std::string &path, int flags = O_RDONLY, int mode = 0): 33 AutoCloseFD(path.c_str(), flags, mode) {}
|
/system/core/include/cutils/ |
D | fs.h | 46 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 52 extern int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid); 58 extern int fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid); 79 extern int fs_mkdirs(const char* path, mode_t mode);
|
/system/update_engine/update_manager/ |
D | variable.h | 108 BaseVariable(const std::string& name, VariableMode mode) in BaseVariable() argument 109 : BaseVariable(name, mode, in BaseVariable() 136 BaseVariable(const std::string& name, VariableMode mode, in BaseVariable() argument 138 : name_(name), mode_(mode), in BaseVariable() 139 poll_interval_(mode == kVariableModePoll ? in BaseVariable() 194 Variable(const std::string& name, VariableMode mode) in Variable() argument 195 : BaseVariable(name, mode) {} in Variable()
|
/system/tpm/trunks/ftdi/ |
D | mpsse.c | 58 struct mpsse_context* MPSSE(enum modes mode, int freq, int endianess) { in MPSSE() argument 63 mpsse = Open(supported_devices[i].vid, supported_devices[i].pid, mode, in MPSSE() 90 enum modes mode, in Open() argument 96 return OpenIndex(vid, pid, mode, freq, endianess, interface, description, in Open() 119 enum modes mode, in OpenIndex() argument 150 mpsse->mode = mode; in OpenIndex() 157 if (mpsse->mode == I2C) in OpenIndex() 172 if (mpsse->mode != BITBANG) { in OpenIndex() 289 switch (mpsse->mode) { in SetMode() 605 if (mpsse->mode == I2C && mpsse->status == STARTED) { in Start() [all …]
|
D | support.c | 35 if (mpsse->mode) { 48 if (mpsse->mode) { in raw_read() 73 if (mpsse->mode) { in set_timeouts() 105 if (mpsse->mode == I2C || (cmd & MPSSE_BITMODE)) { in build_block_buffer() 120 if (mpsse->mode == I2C) { in build_block_buffer() 139 if (mpsse->mode == I2C) { in build_block_buffer() 170 if (mpsse->mode == I2C) { in build_block_buffer() 230 if (mpsse->mode == BITBANG) { in gpio_write()
|
/system/extras/tests/cpueater/ |
D | daemonize.c | 33 int pid, fd, mode; in main() local 46 mode = O_TRUNC; in main() 64 mode = O_APPEND; in main() 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { in main()
|
/system/connectivity/shill/wifi/ |
D | wifi_provider.cc | 180 string mode; in FindSimilarService() local 185 args, &ssid, &mode, &security, &hidden_ssid, error)) { in FindSimilarService() 189 WiFiServiceRefPtr service(FindService(ssid, mode, security)); in FindSimilarService() 200 string mode; in CreateTemporaryService() local 205 args, &ssid, &mode, &security, &hidden_ssid, error)) { in CreateTemporaryService() 215 mode, in CreateTemporaryService() 223 string mode; in CreateTemporaryServiceFromProfile() local 229 &mode, in CreateTemporaryServiceFromProfile() 241 mode, in CreateTemporaryServiceFromProfile() 254 string mode; in GetWiFiService() local [all …]
|
/system/extras/libfec/include/fec/ |
D | io.h | 56 int mode; member 89 extern int fec_open(struct fec_handle **f, const char *path, int mode, 125 io(const std::string& fn, int mode = O_RDONLY, int flags = 0, 127 open(fn, mode, flags, roots); in handle_() 134 bool open(const std::string& fn, int mode = O_RDONLY, int flags = 0, 138 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
|
/system/sepolicy/tools/ |
D | checkfc.c | 49 static const char * const *filemode_to_assert_attrs(filemode mode) in filemode_to_assert_attrs() argument 51 switch (mode) { in filemode_to_assert_attrs() 60 fprintf(stderr, "Error: Invalid mode of operation: %d\n", mode); in filemode_to_assert_attrs() 250 …c void do_fc_check_and_die_on_error(struct selinux_opt opts[], unsigned int backend, filemode mode, in do_fc_check_and_die_on_error() argument 299 global_state.assert.attrs = filemode_to_assert_attrs(mode); in do_fc_check_and_die_on_error() 333 filemode mode = filemode_file_contexts; in main() local 344 mode = filemode_property_contexts; in main() 348 mode = filemode_service_contexts; in main() 376 do_fc_check_and_die_on_error(opts, backend, mode, sepolicy_file, context_file, allow_empty); in main()
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | decoder-oina.c | 42 OI_UINT8 mode, in OI_CODEC_SBC_DecoderConfigureRaw() argument 62 if (mode > SBC_JOINT_STEREO) { in OI_CODEC_SBC_DecoderConfigureRaw() 84 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
|
/system/core/liblog/ |
D | logger_read.c | 84 node = (logger_list->mode & ANDROID_LOG_PSTORE) ? in init_transport_context() 233 int mode, in android_logger_list_alloc() argument 246 logger_list->mode = mode; in android_logger_list_alloc() 254 int mode, in android_logger_list_alloc_time() argument 267 logger_list->mode = mode; in android_logger_list_alloc_time() 325 int mode, in android_logger_list_open() argument 330 android_logger_list_alloc(mode, tail, pid); in android_logger_list_open() 378 } else if ((logger_list_internal->mode & in android_logger_list_read() 428 (logger_list_internal->mode & ANDROID_LOG_NONBLOCK)) { in android_logger_list_read()
|