Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/system/bt/stack/acl/
Dbtm_pm.cc202 tBTM_PM_MODE mode = p_mode->mode; in BTM_SetPowerMode() local
203 if (!is_legal_power_mode(mode)) { in BTM_SetPowerMode()
204 LOG_ERROR("Unable to set illegal power mode value:0x%02x", mode); in BTM_SetPowerMode()
208 if (p_mode->mode & BTM_PM_MD_FORCE) { in BTM_SetPowerMode()
211 mode &= (~BTM_PM_MD_FORCE); in BTM_SetPowerMode()
216 power_mode_request.mode &= (~BTM_PM_MD_FORCE); in BTM_SetPowerMode()
220 if (mode != BTM_PM_MD_ACTIVE) { in BTM_SetPowerMode()
222 if ((mode == BTM_PM_MD_HOLD && !controller->supports_hold_mode()) || in BTM_SetPowerMode()
223 (mode == BTM_PM_MD_SNIFF && !controller->supports_sniff_mode()) || in BTM_SetPowerMode()
224 (mode == BTM_PM_MD_PARK && !controller->supports_park_mode()) || in BTM_SetPowerMode()
[all …]
/system/logging/liblog/
Dlogger_read.cpp40 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/tools/aidl/
Daidl-format.sh116 local mode="$1"
126 if [ $mode = "diff" ]; then
133 elif [ $mode = "write" ]; then
139 elif [ $mode = "print" ]; then
154 local mode=print
157 -d) mode=diff; shift;;
158 -w) mode=write; shift;;
165 if [ $mode = "write" ]; then
172 format-one $mode "$input" "$style"
182 format-one $mode "$file" "$style"
Daidl_to_rust.cpp90 StorageMode mode) { in GetRustName() argument
114 } else if (element_type_name == "String" && mode == StorageMode::UNSIZED_ARGUMENT) { in GetRustName()
117 if (type.IsArray() && mode == StorageMode::DEFAULT_VALUE) { in GetRustName()
154 StorageMode mode) { in RustNameOf() argument
158 if (mode == StorageMode::OUT_ARGUMENT || mode == StorageMode::DEFAULT_VALUE) { in RustNameOf()
171 if (mode == StorageMode::UNSIZED_ARGUMENT) { in RustNameOf()
177 rust_name = GetRustName(type, typenames, mode); in RustNameOf()
180 if (mode == StorageMode::IN_ARGUMENT || mode == StorageMode::UNSIZED_ARGUMENT) { in RustNameOf()
190 (mode == StorageMode::DEFAULT_VALUE || mode == StorageMode::OUT_ARGUMENT || in RustNameOf()
191 mode == StorageMode::PARCELABLE_FIELD))) { in RustNameOf()
[all …]
/system/core/libcutils/
Dfs.cpp42 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 …]
Dcanned_fs_config.cpp32 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/
DFmqType.cpp46 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()
DStringType.cpp39 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()
DHandleType.cpp36 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()
DMemoryType.cpp28 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()
DVectorType.cpp89 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 …]
DPointerType.cpp53 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/
Dscan_settings.h116 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/bt/main/shim/
Dlink_policy.cc42 tHCI_MODE mode, uint16_t interval);
73 bool controller_supports_link_policy_mode(const tBTM_PM_MODE& mode, in controller_supports_link_policy_mode() argument
75 switch (mode) { in controller_supports_link_policy_mode()
89 LOG_ERROR("Unknown mode:%u", mode); in controller_supports_link_policy_mode()
127 new_mode.mode, in BTM_SetPowerMode()
132 if (p_acl->policy.Mode() == new_mode.mode) { in BTM_SetPowerMode()
138 if (p_acl->policy.mode.IsPending()) { in BTM_SetPowerMode()
144 p_acl->policy.Mode(), power_mode_state_text(new_mode.mode).c_str(), in BTM_SetPowerMode()
145 new_mode.mode); in BTM_SetPowerMode()
147 p_acl->policy.mode.pending_ = new_mode.mode; in BTM_SetPowerMode()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_ee.cc74 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/core/libcutils/include_outside_system/cutils/
Dfs.h46 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/
Dfs.h46 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/extras/verity/fec/
Dmain.cpp143 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/bt/gd/l2cap/internal/
Dsender.cc41 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()
96 auto mode = config.retransmission_and_flow_control_mode_; in UpdateClassicConfiguration() local
97 if (mode == mode_) { in UpdateClassicConfiguration()
100 if (mode == RetransmissionAndFlowControlModeOption::L2CAP_BASIC) { in UpdateClassicConfiguration()
105 if (mode == RetransmissionAndFlowControlModeOption::ENHANCED_RETRANSMISSION) { in UpdateClassicConfiguration()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp88 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/update_engine/update_manager/
Dvariable.h106 BaseVariable(const std::string& name, VariableMode mode) in BaseVariable() argument
108 name, mode, base::TimeDelta::FromMinutes(kDefaultPollMinutes)) {} in BaseVariable()
144 VariableMode mode, in BaseVariable() argument
147 mode_(mode), in BaseVariable()
148 poll_interval_(mode == kVariableModePoll ? poll_interval in BaseVariable()
207 Variable(const std::string& name, VariableMode mode) in Variable() argument
208 : BaseVariable(name, mode) {} in Variable()
/system/libziparchive/
Dziptool.cpp334 char mode[] = "??? "; in InfoOne() local
339 mode[0] = (attrs & 0x10) ? 'd' : '-'; in InfoOne()
340 mode[1] = 'r'; in InfoOne()
341 mode[2] = (attrs & 0x01) ? '-' : 'w'; in InfoOne()
343 mode[3] = EndsWith(name, ".exe") || EndsWith(name, ".com") || EndsWith(name, ".bat") || in InfoOne()
347 mode[4] = (attrs & 0x20) ? 'a' : '-'; in InfoOne()
348 mode[5] = (attrs & 0x02) ? 'h' : '-'; in InfoOne()
349 mode[6] = (attrs & 0x04) ? 's' : '-'; in InfoOne()
352 mode[0] = S_ISDIR(entry.unix_mode) ? 'd' : (S_ISREG(entry.unix_mode) ? '-' : '?'); in InfoOne()
353 mode[1] = entry.unix_mode & S_IRUSR ? 'r' : '-'; in InfoOne()
[all …]
/system/extras/tests/cpueater/
Ddaemonize.c33 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/tools/hidl/hidl2aidl/test/
Drun_build_file_test.sh10 $ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode hidl2aidl
15 $ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode hidl2aidl.test3-update-api
17 $ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode \
/system/extras/toolchain-extras/
Dprofile-clang-openat.cpp48 mode_t mode = static_cast<mode_t>(va_arg(args, int)); in __wrap_open() local
51 int ret = __real_open(pathname, flags, mode); in __wrap_open()
52 if (ret != -1 && is_coverage_trace(pathname)) fchmod(ret, mode); in __wrap_open()

12345678910>>...20