Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 67) sorted by relevance

123

/system/core/base/
Dlogging_test.cpp108 bool flag = false; in TEST() local
112 flag = true; in TEST()
113 EXPECT_FALSE(flag) << "CHECK macro probably has a dangling if with no else"; in TEST()
115 flag = false; in TEST()
119 flag = true; in TEST()
120 EXPECT_FALSE(flag) << "CHECK_STREQ probably has a dangling if with no else"; in TEST()
225 bool flag = false; in TEST() local
229 flag = true; in TEST()
231 EXPECT_FALSE(flag) << "LOG macro probably has a dangling if with no else"; in TEST()
233 flag = false; in TEST()
[all …]
/system/core/logd/
Dmain.cpp146 static bool check_flag(const char *prop, const char *flag) { in check_flag() argument
147 const char *cp = strcasestr(prop, flag); in check_flag()
156 cp += strlen(flag); in check_flag()
160 bool property_get_bool(const char *key, int flag) { in property_get_bool() argument
164 if (flag & BOOL_DEFAULT_FLAG_PERSIST) { in property_get_bool()
186 flag |= BOOL_DEFAULT_FLAG_ENG; in property_get_bool()
190 flag |= BOOL_DEFAULT_FLAG_SVELTE; in property_get_bool()
194 if (flag & (BOOL_DEFAULT_FLAG_SVELTE | BOOL_DEFAULT_FLAG_ENG)) { in property_get_bool()
195 flag &= ~BOOL_DEFAULT_FLAG_TRUE_FALSE; in property_get_bool()
196 flag |= BOOL_DEFAULT_TRUE; in property_get_bool()
[all …]
/system/core/fs_mgr/
Dfs_mgr_fstab.c40 unsigned int flag; member
136 f |= fl[i].flag; in parse_flags()
137 if ((fl[i].flag == MF_CRYPT) && flag_vals) { in parse_flags()
142 } else if ((fl[i].flag == MF_VERIFY) && flag_vals) { in parse_flags()
150 } else if ((fl[i].flag == MF_FORCECRYPT) && flag_vals) { in parse_flags()
155 } else if ((fl[i].flag == MF_FORCEFDEORFBE) && flag_vals) { in parse_flags()
161 } else if ((fl[i].flag == MF_FILEENCRYPTION) && flag_vals) { in parse_flags()
169 flag_vals->file_encryption_mode = j->flag; in parse_flags()
175 } else if ((fl[i].flag == MF_LENGTH) && flag_vals) { in parse_flags()
180 } else if ((fl[i].flag == MF_VOLDMANAGED) && flag_vals) { in parse_flags()
[all …]
/system/core/adb/
Dadb_trace.cpp138 const auto& flag = trace_flags.find(elem); in setup_trace_mask() local
139 if (flag == trace_flags.end()) { in setup_trace_mask()
144 if (flag->second == 0) { in setup_trace_mask()
150 adb_trace_mask |= 1 << flag->second; in setup_trace_mask()
/system/update_engine/
Dtar_bunzip2.gypi28 # The .flag file is used to mark the timestamp of the file extraction
30 '<(out_dir)/<(RULE_INPUT_ROOT).flag',
35 'tar -xvf "<(RULE_INPUT_PATH)" -C "<(out_dir)" && touch <(out_dir)/<(RULE_INPUT_ROOT).flag',
/system/core/metricsd/
Dmetrics_client.cc146 int flag; in main() local
147 while ((flag = getopt(argc, argv, "abcdegstv")) != -1) { in main()
148 switch (flag) { in main()
/system/core/include/nativebridge/
Dnative_bridge.h65 void* NativeBridgeLoadLibrary(const char* libpath, int flag);
117 void* (*loadLibrary)(const char* libpath, int flag);
/system/extras/tests/timetest/
Drtc_test.cpp27 static int hwtime(int flag, int request, struct rtc_time *tm) { in hwtime() argument
30 int ret = TEMP_FAILURE_RETRY(access(rtc, flag & O_WRONLY) ? W_OK : R_OK); in hwtime()
38 if (flag & O_WRONLY) { in hwtime()
52 ret = TEMP_FAILURE_RETRY(open(rtc, flag)); in hwtime()
/system/connectivity/shill/net/
Drtnl_handler.cc222 int flag = 0; in NextRequest() local
237 flag = kRequestAddr; in NextRequest()
240 flag = kRequestRoute; in NextRequest()
243 flag = kRequestLink; in NextRequest()
246 flag = kRequestNeighbor; in NextRequest()
249 flag = kRequestBridgeNeighbor; in NextRequest()
268 request_flags_ &= ~flag; in NextRequest()
Dattribute_list.cc267 bool flag; in IsFlagAttributeTrue() local
268 if (!GetFlagAttributeValue(id, &flag)) { in IsFlagAttributeTrue()
271 return flag; in IsFlagAttributeTrue()
/system/bt/stack/smp/
Dsmp_cmac.c185 BOOLEAN flag; in cmac_prepare_last_block() local
189 flag = ((cmac_cb.len % BT_OCTET16_LEN) == 0 && cmac_cb.len != 0) ? TRUE : FALSE; in cmac_prepare_last_block()
191 SMP_TRACE_WARNING("flag = %d round = %d", flag, cmac_cb.round); in cmac_prepare_last_block()
193 if ( flag ) in cmac_prepare_last_block()
/system/vold/
Dcryptfs.h234 int cryptfs_enable(char *flag, int type, char *passwd, int no_ui);
236 int cryptfs_enable_default(char *flag, int no_ui);
/system/extras/tests/sdcard/
Dplot_sdcard.py315 for flag, val in optlist:
316 if flag in ('-i', '--iteration'):
320 elif flag in ('-t', '--time'):
324 elif flag in ('-p', '--profile'):
/system/bt/stack/btm/
Dbtm_ble_gap.c70 static void btm_ble_update_adv_flag(UINT8 flag);
1378 *p++ = p_data->flag; in btm_ble_build_adv_data()
1711 UINT8 flag = 0, old_flag = 0; in btm_ble_set_adv_flag() local
1715 flag = old_flag = *(p_adv_data->p_flags); in btm_ble_set_adv_flag()
1717 btm_ble_update_dmt_flag_bits (&flag, connect_mode, disc_mode); in btm_ble_set_adv_flag()
1723 flag &= ~BTM_BLE_GEN_DISC_FLAG; in btm_ble_set_adv_flag()
1724 flag |= BTM_BLE_LIMIT_DISC_FLAG; in btm_ble_set_adv_flag()
1728 flag |= BTM_BLE_GEN_DISC_FLAG; in btm_ble_set_adv_flag()
1729 flag &= ~BTM_BLE_LIMIT_DISC_FLAG; in btm_ble_set_adv_flag()
1733 flag &= ~(BTM_BLE_LIMIT_DISC_FLAG|BTM_BLE_GEN_DISC_FLAG); in btm_ble_set_adv_flag()
[all …]
/system/bt/bta/hh/
Dbta_hh_utils.c157 UINT16 version, UINT8 flag) in bta_hh_update_di_info() argument
167 p_cb->dscp_info.flag = flag; in bta_hh_update_di_info()
169 UNUSED(flag); in bta_hh_update_di_info()
/system/core/fastboot/
Dudp.cpp73 void Set(uint8_t id, uint16_t sequence, Flag flag);
86 void Header::Set(uint8_t id, uint16_t sequence, Flag flag) { in Set() argument
88 bytes_[kIndexFlags] = flag; in Set()
/system/bt/btif/src/
Dbtif_gatt_multi_adv_util.c270 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_GENERAL; in btif_gattc_copy_datacb()
272 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_LIMITED; in btif_gattc_copy_datacb()
274 p_multi_adv_data_cb->inst_cb[cbindex].data.flag &= in btif_gattc_copy_datacb()
276 if (p_multi_adv_data_cb->inst_cb[cbindex].data.flag == 0) in btif_gattc_copy_datacb()
/system/bt/stack/gatt/
Datt_protocol.c72 BT_HDR *attp_build_exec_write_cmd (UINT8 op_code, UINT8 flag) in attp_build_exec_write_cmd() argument
85 flag &= GATT_PREP_WRITE_EXEC; in attp_build_exec_write_cmd()
86 UINT8_TO_STREAM (p, flag); in attp_build_exec_write_cmd()
/system/sepolicy/
Dfsck.te25 # swap device before setting the EXT2_MF_SWAP mount flag.
/system/tpm/attestation/common/
Dtpm_utility_v1.h102 TSS_FLAG flag,
/system/core/libnativebridge/
Dnative_bridge.cc487 void* NativeBridgeLoadLibrary(const char* libpath, int flag) { in NativeBridgeLoadLibrary() argument
489 return callbacks->loadLibrary(libpath, flag); in NativeBridgeLoadLibrary()
/system/core/adf/libadf/
Dadf.c321 __u32 flag) in adf_interface_flags_filter() argument
323 return !!(data->flags & flag); in adf_interface_flags_filter()
326 ssize_t adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag, in adf_interfaces_filter_by_flag() argument
330 flag); in adf_interfaces_filter_by_flag()
/system/netd/server/
DCommandListener.cpp366 char *flag = argv[i]; in runCommand() local
367 if (!strcmp(flag, "up")) { in runCommand()
375 } else if (!strcmp(flag, "down")) { in runCommand()
383 } else if (!strcmp(flag, "broadcast")) { in runCommand()
385 } else if (!strcmp(flag, "multicast")) { in runCommand()
387 } else if (!strcmp(flag, "running")) { in runCommand()
389 } else if (!strcmp(flag, "loopback")) { in runCommand()
391 } else if (!strcmp(flag, "point-to-point")) { in runCommand()
/system/core/adf/libadf/include/adf/
Dadf.h119 ssize_t adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag,
/system/connectivity/shill/vpn/
Dopenvpn_driver_unittest.cc244 void ExpectInFlags(const vector<vector<string>>& options, const string& flag);
245 void ExpectInFlags(const vector<vector<string>>& options, const string& flag,
250 const string& flag);
299 const string& flag) { in ExpectInFlags() argument
300 ExpectInFlags(options, vector<string> { flag }); in ExpectInFlags()
304 const string& flag, in ExpectInFlags() argument
306 ExpectInFlags(options, vector<string> { flag, value }); in ExpectInFlags()
316 const string& flag) { in ExpectNotInFlags() argument
318 EXPECT_NE(flag, option[0]); in ExpectNotInFlags()

123