/system/bt/stack/btm/ |
D | btm_pm.cc | 74 static const char* mode_to_string(const tBTM_PM_MODE mode); 146 tBTM_PM_MODE mode; in BTM_SetPowerMode() local 160 << " mode:" << std::to_string(p_mode->mode); in BTM_SetPowerMode() 163 mode = p_mode->mode & ~BTM_PM_MD_FORCE; in BTM_SetPowerMode() 170 if (mode != BTM_PM_MD_ACTIVE) { in BTM_SetPowerMode() 172 if ((mode == BTM_PM_MD_HOLD && !controller->supports_hold_mode()) || in BTM_SetPowerMode() 173 (mode == BTM_PM_MD_SNIFF && !controller->supports_sniff_mode()) || in BTM_SetPowerMode() 174 (mode == BTM_PM_MD_PARK && !controller->supports_park_mode())) { in BTM_SetPowerMode() 176 << unsigned(mode) << " is not supported for " << remote_bda; in BTM_SetPowerMode() 181 if (mode == p_cb->state) { in BTM_SetPowerMode() [all …]
|
/system/core/liblog/ |
D | logger_read.cpp | 40 static struct logger_list* android_logger_list_alloc_internal(int mode, unsigned int tail, in android_logger_list_alloc_internal() argument 47 logger_list->mode = mode; in android_logger_list_alloc_internal() 55 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail, pid_t pid) { in android_logger_list_alloc() argument 56 return android_logger_list_alloc_internal(mode, tail, log_time(0, 0), pid); in android_logger_list_alloc() 59 struct logger_list* android_logger_list_alloc_time(int mode, log_time start, pid_t pid) { in android_logger_list_alloc_time() argument 60 return android_logger_list_alloc_internal(mode, 0, start, pid); in android_logger_list_alloc_time() 72 logger |= (logger_list->mode & ANDROID_LOG_PSTORE) ? LOGGER_PMSG : LOGGER_LOGD; in android_logger_open() 77 struct logger_list* android_logger_list_open(log_id_t logId, int mode, unsigned int tail, in android_logger_list_open() argument 79 struct logger_list* logger_list = android_logger_list_alloc(mode, tail, pid); in android_logger_list_open() 101 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_list_read() [all …]
|
/system/core/libcutils/ |
D | fs.cpp | 42 static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t gid, in fs_prepare_path_impl() argument 69 mode_match = ((sb.st_mode & ALL_PERMS) == mode); in fs_prepare_path_impl() 81 path, mode, (sb.st_mode & ALL_PERMS)); in fs_prepare_path_impl() 88 ? TEMP_FAILURE_RETRY(mkdir(path, mode)) in fs_prepare_path_impl() 103 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { in fs_prepare_path_impl() 104 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno)); in fs_prepare_path_impl() 115 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir() argument 116 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 1, /*prepare_as_dir*/ 1); in fs_prepare_dir() 119 int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir_strict() argument 120 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.cpp | 32 unsigned mode; member 70 p->mode = strtol(strtok(NULL, " "), NULL, 8); // mode is in octal in load_canned_fs_config() 95 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) { in canned_fs_config() argument 107 *mode = p->mode; in canned_fs_config() 120 if (c_mode != *mode) printf("%s mode 0%o 0%o\n", path, *mode, c_mode); in canned_fs_config()
|
/system/tools/hidl/ |
D | FmqType.cpp | 46 StorageMode mode, in getCppType() argument 51 switch (mode) { in getCppType() 69 ErrorMode mode) const { in emitReaderWriter() 90 handleError(out, mode); in emitReaderWriter() 102 handleError(out, mode); in emitReaderWriter() 114 mode, in emitReaderWriter() 128 ErrorMode mode, in emitReaderWriterEmbedded() argument 138 mode, in emitReaderWriterEmbedded()
|
D | StringType.cpp | 39 std::string StringType::getCppType(StorageMode mode, in getCppType() argument 45 switch (mode) { in getCppType() 75 ErrorMode mode) const { in emitReaderWriter() 95 handleError(out, mode); in emitReaderWriter() 107 handleError(out, mode); in emitReaderWriter() 119 mode, in emitReaderWriter() 133 ErrorMode mode, in emitReaderWriterEmbedded() argument 143 mode, in emitReaderWriterEmbedded()
|
D | HandleType.cpp | 36 std::string HandleType::getCppType(StorageMode mode, in getCppType() argument 42 switch (mode) { in getCppType() 72 ErrorMode mode) const { in emitReaderWriter() 86 handleError(out, mode); in emitReaderWriter() 96 handleError(out, mode); in emitReaderWriter() 109 ErrorMode mode, in emitReaderWriterEmbedded() argument 119 mode, in emitReaderWriterEmbedded()
|
D | MemoryType.cpp | 28 std::string MemoryType::getCppType(StorageMode mode, in getCppType() argument 34 switch (mode) { in getCppType() 146 ErrorMode mode) const { in emitReaderWriter() 166 handleError(out, mode); in emitReaderWriter() 178 handleError(out, mode); in emitReaderWriter() 190 mode, in emitReaderWriter() 204 ErrorMode mode, in emitReaderWriterEmbedded() argument 214 mode, in emitReaderWriterEmbedded()
|
D | VectorType.cpp | 89 std::string VectorType::getCppType(StorageMode mode, in getCppType() argument 97 switch (mode) { in getCppType() 140 ErrorMode mode) const { in emitReaderWriter() 143 out, name, parcelObj, parcelObjIsPointer, isReader, mode); in emitReaderWriter() 170 handleError(out, mode); in emitReaderWriter() 182 handleError(out, mode); in emitReaderWriter() 194 mode, in emitReaderWriter() 205 ErrorMode mode) const { in emitReaderWriterForVectorOfBinders() 225 handleError(out, mode); in emitReaderWriterForVectorOfBinders() 246 mode); in emitReaderWriterForVectorOfBinders() [all …]
|
D | PointerType.cpp | 53 ErrorMode mode) const { in emitReaderWriter() 58 handleError(out, mode); in emitReaderWriter() 70 ErrorMode mode, in emitReaderWriterEmbedded() argument 78 emitReaderWriter(out, name, parcelObj, parcelObjIsPointer, isReader, mode); in emitReaderWriterEmbedded()
|
/system/bt/service/common/bluetooth/ |
D | scan_settings.h | 116 ScanSettings(Mode mode, CallbackTypeBitField callback_type, 122 Mode mode() const { return mode_; } in mode() function 123 void set_mode(Mode mode) { mode_ = mode; } in set_mode() argument 141 void set_match_mode(MatchMode mode) { match_mode_ = mode; } in set_match_mode() argument
|
/system/core/adb/sysdeps/ |
D | stat.h | 48 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) argument 54 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) argument
|
/system/nfc/src/nfc/nfc/ |
D | nfc_ee.cc | 74 tNFC_STATUS NFC_NfceeModeSet(uint8_t nfcee_id, tNFC_NFCEE_MODE mode) { in NFC_NfceeModeSet() argument 76 if (mode >= NCI_NUM_NFCEE_MODE || nfcee_id == NCI_DH_ID) { in NFC_NfceeModeSet() 77 LOG(ERROR) << StringPrintf("%s invalid parameter:%d", __func__, mode); in NFC_NfceeModeSet() 81 status = nci_snd_nfcee_mode_set(nfcee_id, mode); in NFC_NfceeModeSet() 86 status = nci_snd_nfcee_mode_set(nfcee_id, mode); in NFC_NfceeModeSet()
|
/system/extras/verity/fec/ |
D | main.cpp | 143 static int get_start(int mode, const std::string& filename) in get_start() argument 151 if (mode == MODE_GETECCSTART) { in get_start() 274 int mode = MODE_ENCODE; in main() local 308 if (mode != MODE_ENCODE) { in main() 313 if (mode != MODE_ENCODE) { in main() 316 mode = MODE_DECODE; in main() 328 if (mode != MODE_ENCODE) { in main() 331 mode = MODE_PRINTSIZE; in main() 335 if (mode != MODE_ENCODE) { in main() 338 mode = MODE_GETECCSTART; in main() [all …]
|
/system/core/libcutils/include_vndk/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/core/libcutils/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/bt/gd/l2cap/internal/ |
D | sender.cc | 41 ChannelMode mode) in Sender() argument 44 if (mode == ChannelMode::BASIC) { in Sender() 47 } else if (mode == ChannelMode::ERTM) { in Sender() 50 } else if (mode == ChannelMode::LE_CREDIT_BASED) { in Sender() 94 auto mode = config.retransmission_and_flow_control_mode_; in UpdateClassicConfiguration() local 95 if (mode == mode_) { in UpdateClassicConfiguration() 98 if (mode == RetransmissionAndFlowControlModeOption::L2CAP_BASIC) { in UpdateClassicConfiguration() 103 if (mode == RetransmissionAndFlowControlModeOption::ENHANCED_RETRANSMISSION) { in UpdateClassicConfiguration()
|
/system/libziparchive/ |
D | ziptool.cpp | 291 char mode[] = "??? "; in InfoOne() local 296 mode[0] = (attrs & 0x10) ? 'd' : '-'; in InfoOne() 297 mode[1] = 'r'; in InfoOne() 298 mode[2] = (attrs & 0x01) ? '-' : 'w'; in InfoOne() 300 mode[3] = EndsWith(name, ".exe") || EndsWith(name, ".com") || EndsWith(name, ".bat") || in InfoOne() 304 mode[4] = (attrs & 0x20) ? 'a' : '-'; in InfoOne() 305 mode[5] = (attrs & 0x02) ? 'h' : '-'; in InfoOne() 306 mode[6] = (attrs & 0x04) ? 's' : '-'; in InfoOne() 309 mode[0] = S_ISDIR(entry.unix_mode) ? 'd' : (S_ISREG(entry.unix_mode) ? '-' : '?'); in InfoOne() 310 mode[1] = entry.unix_mode & S_IRUSR ? 'r' : '-'; in InfoOne() [all …]
|
/system/core/deprecated-adf/libadfhwc/ |
D | adfhwc.cpp | 119 const drm_mode_modeinfo &mode, const uint32_t attribute) in adf_display_attribute() argument 123 if (mode.vrefresh) in adf_display_attribute() 124 return 1000000000 / mode.vrefresh; in adf_display_attribute() 128 return mode.hdisplay; in adf_display_attribute() 131 return mode.vdisplay; in adf_display_attribute() 134 return dpi(mode.hdisplay, data.width_mm); in adf_display_attribute() 137 return dpi(mode.vdisplay, data.height_mm); in adf_display_attribute() 170 const drm_mode_modeinfo &mode, const uint32_t attribute) in adf_display_attribute_hwc2() argument 174 if (mode.vrefresh) in adf_display_attribute_hwc2() 175 return 1000000000 / mode.vrefresh; in adf_display_attribute_hwc2() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 88 int32_t mode; member 189 int mode; member 203 if (params->mode == VERITY_MODE_RESTART) { in format_verity_table() 205 } else if (params->mode == VERITY_MODE_LOGGING) { in format_verity_table() 241 if (params->mode == VERITY_MODE_EIO) { in format_legacy_verity_table() 244 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table() 302 bool fs_mgr_load_verity_state(int* mode) { in fs_mgr_load_verity_state() argument 304 *mode = VERITY_MODE_EIO; in fs_mgr_load_verity_state() 313 *mode = VERITY_MODE_DEFAULT; in fs_mgr_load_verity_state() 315 *mode = VERITY_MODE_LOGGING; in fs_mgr_load_verity_state() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_main.cc | 208 p_activate_params->protocol, p_activate_params->rf_tech_param.mode, in RW_SetActivatedTagType() 229 if (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) { in RW_SetActivatedTagType() 235 if (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) { in RW_SetActivatedTagType() 242 if (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_F) { in RW_SetActivatedTagType() 250 if ((p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in RW_SetActivatedTagType() 251 (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A)) { in RW_SetActivatedTagType() 256 if (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_V) { in RW_SetActivatedTagType() 261 if (p_activate_params->rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) { in RW_SetActivatedTagType()
|
/system/update_engine/update_manager/ |
D | variable.h | 102 BaseVariable(const std::string& name, VariableMode mode) in BaseVariable() argument 104 name, mode, base::TimeDelta::FromMinutes(kDefaultPollMinutes)) {} in BaseVariable() 138 VariableMode mode, in BaseVariable() argument 141 mode_(mode), in BaseVariable() 142 poll_interval_(mode == kVariableModePoll ? poll_interval in BaseVariable() 197 Variable(const std::string& name, VariableMode mode) in Variable() argument 198 : BaseVariable(name, mode) {} in Variable()
|
/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/sepolicy/tools/ |
D | checkfc.c | 53 static const char * const *filemode_to_assert_attrs(filemode mode) in filemode_to_assert_attrs() argument 55 switch (mode) { in filemode_to_assert_attrs() 68 fprintf(stderr, "Error: Invalid mode of operation: %d\n", mode); in filemode_to_assert_attrs() 261 …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 310 global_state.assert.attrs = filemode_to_assert_attrs(mode); in do_fc_check_and_die_on_error() 344 filemode mode = filemode_file_contexts; in main() local 355 mode = filemode_property_contexts; in main() 359 mode = filemode_service_contexts; in main() 363 mode = filemode_hw_service_contexts; in main() 367 mode = filemode_vendor_service_contexts; in main() [all …]
|
/system/chre/chre_api/legacy/v1_2/chre/ |
D | sensor.h | 629 enum chreSensorConfigureMode mode, 639 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument 641 mode, in chreSensorConfigureModeOnly() 681 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument 694 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
|