/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 195 … (remote_bda[2]<<24)+(remote_bda[3]<<16)+(remote_bda[4]<<8)+remote_bda[5], p_mode->mode); in BTM_SetPowerMode() 198 mode = p_mode->mode & ~BTM_PM_MD_FORCE; in BTM_SetPowerMode() 206 if(mode != BTM_PM_MD_ACTIVE) in BTM_SetPowerMode() 209 ind = mode - BTM_PM_MD_HOLD; /* make it base 0 */ in BTM_SetPowerMode() 215 if(mode == p_cb->state) /* the requested mode is current mode */ in BTM_SetPowerMode() 218 if( (mode == BTM_PM_MD_ACTIVE) || in BTM_SetPowerMode() 219 …((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->inte… in BTM_SetPowerMode() 220 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) in BTM_SetPowerMode() [all …]
|
D | btm_inq.c | 371 tBTM_STATUS BTM_SetInquiryMode (UINT8 mode) in BTM_SetInquiryMode() argument 375 if (mode == BTM_INQ_RESULT_STANDARD) in BTM_SetInquiryMode() 379 else if (mode == BTM_INQ_RESULT_WITH_RSSI) in BTM_SetInquiryMode() 384 else if (mode == BTM_INQ_RESULT_EXTENDED) in BTM_SetInquiryMode() 395 if (!btsnd_hcic_write_inquiry_mode (mode)) in BTM_SetInquiryMode() 464 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_SetPeriodicInquiryMode() 477 if (p_inqparms->mode != BTM_GENERAL_INQUIRY && in BTM_SetPeriodicInquiryMode() 478 p_inqparms->mode != BTM_LIMITED_INQUIRY) in BTM_SetPeriodicInquiryMode() 502 p_inq->inq_active = (UINT8)((p_inqparms->mode == BTM_LIMITED_INQUIRY) ? in BTM_SetPeriodicInquiryMode() 758 if (((p_inq->inqparms.mode & BTM_BR_INQUIRY_MASK) != 0) in BTM_CancelInquiry() [all …]
|
/system/core/toolbox/ |
D | ls.c | 132 static char mode2kind(mode_t mode) in mode2kind() argument 134 switch(mode & S_IFMT){ in mode2kind() 146 void strmode(mode_t mode, char *out) in strmode() argument 148 *out++ = mode2kind(mode); in strmode() 150 *out++ = (mode & 0400) ? 'r' : '-'; in strmode() 151 *out++ = (mode & 0200) ? 'w' : '-'; in strmode() 152 if(mode & 04000) { in strmode() 153 *out++ = (mode & 0100) ? 's' : 'S'; in strmode() 155 *out++ = (mode & 0100) ? 'x' : '-'; in strmode() 157 *out++ = (mode & 040) ? 'r' : '-'; in strmode() [all …]
|
/system/core/adb/ |
D | file_sync_client.cpp | 92 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *coo… 122 func(ltohl(msg.dent.mode), in sync_ls() 142 unsigned int *mode) in sync_readtime() argument 164 *mode = ltohl(msg.stat.mode); in sync_readtime() 185 unsigned int *mode, unsigned int *size) in sync_finish_readtime() argument 196 *mode = ltohl(msg.stat.mode); in sync_finish_readtime() 202 int sync_readmode(int fd, const char *path, unsigned *mode) in sync_readmode() argument 223 *mode = ltohl(msg.stat.mode); in sync_readmode() 338 unsigned mtime, mode_t mode, int show_progress) in sync_send() argument 350 snprintf(tmp, sizeof(tmp), ",%d", mode); in sync_send() [all …]
|
D | file_sync_service.cpp | 50 unsigned int mode = 0775; in mkdirs() local 60 fs_config(name, 1, NULL, &uid, &gid, &mode, &cap); in mkdirs() 62 ret = adb_mkdir(name, mode); in mkdirs() 88 msg.stat.mode = 0; in do_stat() 92 msg.stat.mode = htoll(st.st_mode); in do_stat() 130 msg.dent.mode = htoll(st.st_mode); in do_list() 147 msg.dent.mode = 0; in do_list() 177 gid_t gid, mode_t mode, char *buffer, bool do_unlink) in handle_send_file() argument 183 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() 190 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() [all …]
|
D | sysdeps.h | 127 static __inline__ int adb_mkdir(const char* path, int mode) in adb_mkdir() argument 135 extern int adb_creat(const char* path, int mode); 161 static __inline__ int adb_open_mode(const char* path, int options, int mode) in adb_open_mode() argument 174 int mode; in unix_open() local 177 mode = va_arg( args, int ); in unix_open() 179 return open(path, options, mode); in unix_open() 331 int mode; in unix_open() local 334 mode = va_arg( args, int ); in unix_open() 336 return TEMP_FAILURE_RETRY( open( path, options, mode ) ); in unix_open() 340 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) in adb_open_mode() argument [all …]
|
D | SYNC.TXT | 10 SERVICES.TXT sets the connection in sync mode. This mode is a binary mode that 11 differ from the regular adb protocol. The connection stays in sync mode until 17 In sync mode both the server and the client will frequently use eight-byte 22 all binary integers are Little-Endian in the sync mode. Sync mode is 44 2. A four-byte integer representing file mode. 56 encoded file mode containing the permissions of the file on device.
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.c | 70 int32_t mode; member 359 int mode) in load_verity_table() argument 380 if (mode == VERITY_MODE_EIO) { in load_verity_table() 386 } else if (snprintf(verity_params, bufsize, "%s %d", table, mode) < 0) { in load_verity_table() 602 static int write_verity_state(const char *fname, off64_t offset, int32_t mode) in write_verity_state() argument 606 struct verity_state s = { VERITY_STATE_HEADER, VERITY_STATE_VERSION, mode }; in write_verity_state() 631 static int read_verity_state(const char *fname, off64_t offset, int *mode) in read_verity_state() argument 652 *mode = VERITY_MODE_DEFAULT; in read_verity_state() 653 rc = write_verity_state(fname, offset, *mode); in read_verity_state() 662 if (s.mode < VERITY_MODE_EIO || in read_verity_state() [all …]
|
/system/extras/ext4_utils/ |
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() 84 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) { in canned_fs_config() argument 94 *mode = p->mode; in canned_fs_config() 106 if (c_mode != *mode) printf("%s mode 0%o 0%o\n", path, *mode, c_mode); in canned_fs_config()
|
D | ext4fixup.c | 520 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) in recurse_dir() argument 531 switch (mode) { in recurse_dir() 579 if (((mode == SANITY_CHECK_PASS) || (mode == UPDATE_INODE_NUMS)) && in recurse_dir() 610 is_dir = is_entry_dir(fd, dirp, mode); in recurse_dir() 612 ((mode == SANITY_CHECK_PASS) || (mode == MARK_INODE_NUMS) || in recurse_dir() 613 ((mode == UPDATE_INODE_NUMS) && (dirp->inode & 0x80000000))) ) { in recurse_dir() 636 recurse_dir(fd, &tmp_inode, tmp_dirbuf, tmp_dirsize, mode); in recurse_dir() 650 if (mode == MARK_INODE_NUMS) { in recurse_dir() 652 } else if (mode == UPDATE_INODE_NUMS) { in recurse_dir() 658 if ((bail_phase == mode) && (bail_loc == 1) && (bail_count == count)) { in recurse_dir() [all …]
|
/system/core/init/ |
D | builtins.cpp | 211 mode_t mode = 0755; in do_mkdir() local 217 mode = strtoul(args[2], 0, 8); in do_mkdir() 220 ret = make_dir(args[1], mode); in do_mkdir() 223 ret = fchmodat(AT_FDCWD, args[1], mode, AT_SYMLINK_NOFOLLOW); in do_mkdir() 242 if (mode & (S_ISUID | S_ISGID)) { in do_mkdir() 243 ret = fchmodat(AT_FDCWD, args[1], mode, AT_SYMLINK_NOFOLLOW); in do_mkdir() 324 int mode, loop, fd; in do_mount() local 327 mode = (flags & MS_RDONLY) ? O_RDONLY : O_RDWR; in do_mount() 328 fd = open(source + 5, mode | O_CLOEXEC); in do_mount() 335 loop = open(tmp, mode | O_CLOEXEC); in do_mount() [all …]
|
/system/core/liblog/ |
D | log_read_kern.c | 77 static int accessmode(int mode) in accessmode() argument 79 if ((mode & ANDROID_LOG_ACCMODE) == ANDROID_LOG_WRONLY) { in accessmode() 82 if ((mode & ANDROID_LOG_ACCMODE) == ANDROID_LOG_RDWR) { in accessmode() 89 static int check_allocate_accessible(char **n, const char *b, int mode) in check_allocate_accessible() argument 102 return access(*n, accessmode(mode)); in check_allocate_accessible() 138 int mode; member 196 static int logger_ioctl(struct logger *logger, int cmd, int mode) in logger_ioctl() argument 205 if (((mode & ANDROID_LOG_ACCMODE) == ANDROID_LOG_RDWR) in logger_ioctl() 206 || (((mode ^ logger->top->mode) & ANDROID_LOG_ACCMODE) == 0)) { in logger_ioctl() 211 ret = check_allocate_accessible(&n, android_log_id_to_name(logger->id), mode); in logger_ioctl() [all …]
|
D | log_read.c | 248 int mode; member 415 if (logger->top->mode & ANDROID_LOG_PSTORE) { in android_logger_clear() 528 struct logger_list *android_logger_list_alloc(int mode, in android_logger_list_alloc() argument 540 logger_list->mode = mode; in android_logger_list_alloc() 550 struct logger_list *android_logger_list_alloc_time(int mode, in android_logger_list_alloc_time() argument 562 logger_list->mode = mode; in android_logger_list_alloc_time() 608 int mode, in android_logger_list_open() argument 612 struct logger_list *logger_list = android_logger_list_alloc(mode, tail, pid); in android_logger_list_open() 753 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_list_read() 757 if (logger_list->mode & ANDROID_LOG_NONBLOCK) { in android_logger_list_read() [all …]
|
/system/core/libcutils/ |
D | fs_config.c | 47 uint16_t mode; member 198 unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) in fs_config() argument 242 *mode = (*mode & (~07777)) | get2LE((const uint8_t *)&(header.mode)); in fs_config() 259 *mode = (*mode & (~07777)) | pc->mode; in fs_config() 274 p->mode = get2LE((const uint8_t *)&(pc->mode)); in fs_config_generate()
|
D | fs.c | 40 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir() argument 57 if (((sb.st_mode & ALL_PERMS) == mode) && (sb.st_uid == uid) && (sb.st_gid == gid)) { in fs_prepare_dir() 64 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) { in fs_prepare_dir() 72 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { in fs_prepare_dir() 73 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno)); in fs_prepare_dir() 153 int fs_mkdirs(const char* path, mode_t mode) { in fs_mkdirs() argument 186 if (mkdirat(fd, segment, mode) != 0) { in fs_mkdirs()
|
/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/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()
|
D | bitalloc-sbc.c | 102 OI_ASSERT(common->frameInfo.mode < OI_ARRAYSIZE(balloc)); in OI_SBC_ComputeBitAllocation() 108 balloc[common->frameInfo.mode](common); in OI_SBC_ComputeBitAllocation() 138 if (frame->mode == SBC_JOINT_STEREO) { in OI_CODEC_SBC_CalculateBitpool() 141 if (frame->mode == SBC_MONO) { in OI_CODEC_SBC_CalculateBitpool() 146 if (frame->mode == SBC_DUAL_CHANNEL) { in OI_CODEC_SBC_CalculateBitpool()
|
D | decoder-private.c | 110 frame->mode = (d1 & (BIT3 | BIT2)) >> 2; in OI_SBC_ReadHeader() 111 frame->nrof_channels = channel_values[frame->mode]; in OI_SBC_ReadHeader() 142 if (common->frameInfo.nrof_subbands == 8 || common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors() 143 if (common->frameInfo.mode == SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors() 159 … OI_ASSERT(common->frameInfo.nrof_subbands == 4 && common->frameInfo.mode == SBC_JOINT_STEREO); in OI_SBC_ReadScalefactors()
|
D | bitalloc.c | 44 switch (frame->mode) { in OI_SBC_MaxBitpool() 53 ERROR(("Invalid frame mode %d", frame->mode)); in OI_SBC_MaxBitpool() 65 if (frame->mode == SBC_JOINT_STEREO) { in internal_CalculateFramelen() 68 if (frame->mode == SBC_DUAL_CHANNEL) { result += nbits; } in internal_CalculateFramelen() 69 … if (frame->mode == SBC_MONO) { result += 4*nrof_subbands; } else { result += 8*nrof_subbands; } in internal_CalculateFramelen() 88 if (frame->mode == SBC_JOINT_STEREO) { headerLen++; } in OI_SBC_CalculateFrameAndHeaderlen()
|
/system/core/include/cutils/ |
D | fs.h | 45 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 65 extern int fs_mkdirs(const char* path, mode_t mode);
|
/system/core/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()
|
/system/bt/stack/l2cap/ |
D | l2c_fcr.c | 239 …if ( (p_ccb->local_cid >= L2CAP_BASE_APPL_CID) && (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE… in l2c_fcr_cleanup() 380 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in l2c_fcr_is_flow_controlled() 442 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in prepare_I_frame() 500 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in prepare_I_frame() 641 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_STREAM_MODE) in l2c_fcr_proc_pdu() 1734 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in l2c_fcr_get_next_xmit_sdu_seg() 1834 if (p_fcr->mode != p_ccb->ertm_info.preferred_mode) in l2c_fcr_adj_our_req_options() 1837 p_ccb->ertm_info.preferred_mode, p_fcr->mode); in l2c_fcr_adj_our_req_options() 1840 p_fcr->mode = p_ccb->ertm_info.preferred_mode; in l2c_fcr_adj_our_req_options() 1846 if (p_cfg->fcr_present && p_fcr->mode != L2CAP_FCR_BASIC_MODE) in l2c_fcr_adj_our_req_options() [all …]
|
/system/media/audio_utils/ |
D | tinysndfile.c | 30 int mode; member 75 handle->mode = SFM_READ; in sf_open_read() 369 handle->mode = SFM_WRITE; in sf_open_write() 378 SNDFILE *sf_open(const char *path, int mode, SF_INFO *info) in sf_open() argument 386 switch (mode) { in sf_open() 393 fprintf(stderr, "mode=%d\n", mode); in sf_open() 404 if (handle->mode == SFM_WRITE) { in sf_close() 422 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_short() 471 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_float() 522 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_int() [all …]
|
/system/bt/stack/sdp/ |
D | sdp_main.c | 197 cfg.fcr.mode, cfg.fcr.tx_win_sz, cfg.fcr.max_transmit, in sdp_connect_ind() 202 && cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in sdp_connect_ind() 205 cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_connect_ind() 253 cfg.fcr.mode, cfg.fcr.tx_win_sz, cfg.fcr.max_transmit, in sdp_connect_cfm() 258 && cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in sdp_connect_cfm() 262 cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_connect_cfm() 342 if (p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE) in sdp_config_ind() 344 if (sdp_cb.l2cap_my_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE in sdp_config_ind() 353 if (sdp_cb.l2cap_my_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE) in sdp_config_ind() 356 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_config_ind()
|