/system/bt/btif/src/ |
D | btif_sock.c | 37 … const char *service_name, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 38 …_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 40 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id); 120 …ar *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_listen() argument 121 if((flags & BTSOCK_FLAG_NO_SDP) == 0) { in btsock_listen() 131 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, flags, app_uid); in btsock_listen() 134 status = btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 138 status = btsock_sco_listen(sock_fd, flags); in btsock_listen() 149 …addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_connect() argument 159 status = btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags, app_uid); in btsock_connect() [all …]
|
D | btif_sock_thread.c | 86 int flags; member 103 static inline void add_poll(int h, int fd, int type, int flags, uint32_t user_id); 237 int flags; member 240 int btsock_thread_add_fd(int h, int fd, int type, int flags, uint32_t user_id) in btsock_thread_add_fd() argument 252 if(flags & SOCK_THREAD_ADD_FD_SYNC) in btsock_thread_add_fd() 258 flags &= ~SOCK_THREAD_ADD_FD_SYNC; in btsock_thread_add_fd() 259 add_poll(h, fd, type, flags, user_id); in btsock_thread_add_fd() 264 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd() 265 APPL_TRACE_DEBUG("adding fd:%d, flags:0x%x", fd, flags); in btsock_thread_add_fd() 390 static inline unsigned int flags2pevents(int flags) in flags2pevents() argument [all …]
|
D | btif_av.c | 74 UINT8 flags; member 304 dump_av_sm_event_name(event), btif_av_cb.flags); in btif_av_state_idle_handler() 311 btif_av_cb.flags = 0; in btif_av_state_idle_handler() 480 dump_av_sm_event_name(event), btif_av_cb.flags); in btif_av_state_opening_handler() 637 dump_av_sm_event_name(event), btif_av_cb.flags); in btif_av_state_closing_handler() 713 dump_av_sm_event_name(event), btif_av_cb.flags); in btif_av_state_opened_handler() 715 if ( (event == BTA_AV_REMOTE_CMD_EVT) && (btif_av_cb.flags & BTIF_AV_FLAG_REMOTE_SUSPEND) && in btif_av_state_opened_handler() 719 btif_av_cb.flags &= ~BTIF_AV_FLAG_REMOTE_SUSPEND; in btif_av_state_opened_handler() 725 btif_av_cb.flags &= ~BTIF_AV_FLAG_PENDING_STOP; in btif_av_state_opened_handler() 726 btif_av_cb.flags &= ~BTIF_AV_FLAG_PENDING_START; in btif_av_state_opened_handler() [all …]
|
/system/update_engine/payload_consumer/ |
D | file_descriptor.cc | 29 bool EintrSafeFileDescriptor::Open(const char* path, int flags, mode_t mode) { in Open() argument 31 return ((fd_ = HANDLE_EINTR(open(path, flags, mode))) >= 0); in Open() 34 bool EintrSafeFileDescriptor::Open(const char* path, int flags) { in Open() argument 36 return ((fd_ = HANDLE_EINTR(open(path, flags))) >= 0); in Open() 89 int flags = fcntl(fd_, F_GETFL, 0); in BlkIoctl() 90 if (flags == -1) { in BlkIoctl() 94 if ((flags & O_DIRECT) == 0 && fcntl(fd_, F_SETFL, flags | O_DIRECT) == -1) { in BlkIoctl() 102 if ((flags & O_DIRECT) == 0 && fcntl(fd_, F_SETFL, flags) == -1) { in BlkIoctl()
|
D | mtd_file_descriptor.cc | 104 bool MtdFileDescriptor::Open(const char* path, int flags, mode_t mode) { in Open() argument 106 TEST_AND_RETURN_FALSE((flags & O_ACCMODE) != O_RDWR); in Open() 110 if ((flags & O_ACCMODE) == O_WRONLY) { in Open() 111 flags &= ~O_ACCMODE; in Open() 112 flags |= O_RDWR; in Open() 115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); in Open() 117 if ((flags & O_ACCMODE) == O_RDWR) { in Open() 132 bool MtdFileDescriptor::Open(const char* path, int flags) { in Open() argument 135 return Open(path, flags, 0777 & ~cur); in Open() 177 bool UbiFileDescriptor::Open(const char* path, int flags, mode_t mode) { in Open() argument [all …]
|
/system/nativepower/daemon/ |
D | power_manager_stub.cc | 30 int flags) in SuspendRequest() argument 33 flags(flags) {} in SuspendRequest() 47 int flags) { in ConstructSuspendRequestString() argument 48 return base::StringPrintf("%" PRId64 ",%d,%d", event_time_ms, reason, flags); in ConstructSuspendRequestString() 71 request.flags); in GetSuspendRequestString() 74 status_t PowerManagerStub::acquireWakeLock(int flags, in acquireWakeLock() argument 85 status_t PowerManagerStub::acquireWakeLockWithUid(int flags, in acquireWakeLockWithUid() argument 98 int flags, in releaseWakeLock() argument 117 int flags) { in goToSleep() argument 118 suspend_requests_.emplace_back(event_time_ms, reason, flags); in goToSleep()
|
D | BnPowerManager.cc | 26 uint32_t flags) { in onTransact() argument 34 int32_t flags = data.readInt32(); in onTransact() local 38 return acquireWakeLock(flags, lock, tag, package_name); in onTransact() 43 int32_t flags = data.readInt32(); in onTransact() local 47 return acquireWakeLockWithUid(flags, lock, tag, package_name, uid); in onTransact() 52 int32_t flags = data.readInt32(); in onTransact() local 53 return releaseWakeLock(lock, flags); in onTransact() 71 int32_t flags = data.readInt32(); in onTransact() local 72 return goToSleep(event_time_ms, reason, flags); in onTransact() 94 return BBinder::onTransact(code, data, reply, flags); in onTransact()
|
/system/core/base/ |
D | utf8.cpp | 54 const DWORD flags = in WideToUTF8() local 61 const int chars_required = WideCharToMultiByte(CP_UTF8, flags, utf16, size, in WideToUTF8() 71 const int result = WideCharToMultiByte(CP_UTF8, flags, utf16, size, in WideToUTF8() 98 const DWORD flags) { in UTF8ToWideWithFlags() argument 107 const int chars_required = MultiByteToWideChar(CP_UTF8, flags, utf8, size, in UTF8ToWideWithFlags() 117 const int result = MultiByteToWideChar(CP_UTF8, flags, utf8, size, in UTF8ToWideWithFlags() 159 int open(const char* name, int flags, ...) { in open() argument 166 if ((flags & O_CREAT) != 0) { in open() 168 va_start(args, flags); in open() 173 return _wopen(name_utf16.c_str(), flags, mode); in open()
|
/system/connectivity/shill/net/ |
D | rtnl_message.h | 59 flags(0), in LinkStatus() 65 flags(in_flags), in LinkStatus() 68 unsigned int flags; member 75 flags(0), in AddressStatus() 81 flags(flags_in), in AddressStatus() 84 unsigned char flags; member 96 flags(0) {} in RouteStatus() 110 flags(flags_in) {} in RouteStatus() 117 unsigned char flags; member 123 flags(0), in NeighborStatus() [all …]
|
/system/vold/fs/ |
D | Vfat.cpp | 130 unsigned long flags; in Mount() local 136 flags = MS_NODEV | MS_NOSUID | MS_DIRSYNC; in Mount() 138 flags |= (executable ? 0 : MS_NOEXEC); in Mount() 139 flags |= (ro ? MS_RDONLY : 0); in Mount() 140 flags |= (remount ? MS_REMOUNT : 0); in Mount() 146 rc = mount(c_source, c_target, "vfat", flags, mountData); in Mount() 150 flags |= MS_RDONLY; in Mount() 151 rc = mount(c_source, c_target, "vfat", flags, mountData); in Mount()
|
D | Ext4.cpp | 132 unsigned long flags; in Mount() local 137 flags = MS_NOATIME | MS_NODEV | MS_NOSUID | MS_DIRSYNC; in Mount() 139 flags |= (executable ? 0 : MS_NOEXEC); in Mount() 140 flags |= (ro ? MS_RDONLY : 0); in Mount() 141 flags |= (remount ? MS_REMOUNT : 0); in Mount() 143 rc = mount(c_source, c_target, "ext4", flags, NULL); in Mount() 147 flags |= MS_RDONLY; in Mount() 148 rc = mount(c_source, c_target, "ext4", flags, NULL); in Mount()
|
/system/nativepower/include/nativepower/ |
D | power_manager_stub.h | 49 int flags); 70 status_t acquireWakeLock(int flags, 75 status_t acquireWakeLockWithUid(int flags, 82 int flags, 89 status_t goToSleep(int64_t event_time_ms, int reason, int flags) override; 97 SuspendRequest(int64_t uptime_ms, int reason, int flags); 101 int flags; member
|
/system/core/libion/tests/ |
D | device_test.cpp | 142 unsigned int flags = ION_FLAG_CACHED; in TEST_F() local 144 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 179 unsigned int flags = ION_FLAG_CACHED; in TEST_F() local 181 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 210 unsigned int flags = ION_FLAG_CACHED; in TEST_F() local 212 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 245 unsigned int flags = ION_FLAG_CACHED; in TEST_F() local 247 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 276 unsigned int flags = ION_FLAG_CACHED | ION_FLAG_CACHED_NEEDS_SYNC; in TEST_F() local 278 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() [all …]
|
/system/connectivity/shill/test-scripts/ |
D | routing.py | 45 def __init__(self, iface, dest, gway, flags, mask): argument 49 self.flagbits = int(flags, 16) 53 flags = "" 55 flags += "U" 57 flags += "G" 59 flags += "H" 65 flags) 106 flags = route[colMap["Flags"]] 109 Route(interface, destination, gateway, flags, mask))
|
/system/core/libpixelflinger/codeflinger/ |
D | blending.cpp | 40 integer_t fragment(temp.reg, temp.h, temp.flags); in build_fog() 41 if (!(temp.flags & CORRUPTIBLE)) { in build_fog() 43 temp.flags |= CORRUPTIBLE; in build_fog() 137 if (temp.l && (temp.flags & CORRUPTIBLE)) { in build_blending() 142 integer_t fragment(temp.reg, temp.size(), temp.flags); in build_blending() 149 fragment.flags |= CORRUPTIBLE; in build_blending() 152 if (!(temp.flags & CORRUPTIBLE)) { in build_blending() 156 temp.flags &= ~CORRUPTIBLE; in build_blending() 157 fragment.flags &= ~CORRUPTIBLE; in build_blending() 163 fragment.flags &= ~CORRUPTIBLE; in build_blending() [all …]
|
/system/extras/tests/audio/alsa/ |
D | pcmtest.cpp | 46 unsigned int flags; member 93 char flags; in getSndDev() local 100 flags = de->d_name[strlen(de->d_name)-1]; in getSndDev() 101 if (flags == 'c') { in getSndDev() 102 pcmnodes[pcms].flags = PCM_IN; in getSndDev() 103 } else if(flags == 'p') { in getSndDev() 104 pcmnodes[pcms].flags = PCM_OUT; in getSndDev() 106 pcmnodes[pcms].flags = -1; in getSndDev() 107 testPrintI("Unknown PCM type = %c", flags); in getSndDev() 137 pcmnodes[i].flags); in getPcmParams()
|
/system/tools/aidl/ |
D | type_java.h | 55 Variable* parcel, int flags) const; 62 Expression* BuildWriteToParcelFlags(int flags) const; 86 int flags) const override; 109 int flags) const override; 123 int flags) const override; 136 int flags) const override; 146 int flags) const override; 159 int flags) const override; 169 int flags) const override; 182 int flags) const override; [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/toolbox/upstream-netbsd/lib/libc/gen/ |
D | humanize_number.c | 48 const char *suffix, int scale, int flags) in humanize_number() argument 59 if (flags & HN_DIVISOR_1000) { in humanize_number() 62 if (flags & HN_B) in humanize_number() 72 if (flags & HN_B) in humanize_number() 110 if (flags & HN_NOSPACE) in humanize_number() 145 if (bytes < 995 && i > 0 && flags & HN_DECIMAL) { in humanize_number()
|
/system/bt/hci/src/ |
D | btsnoop.c | 201 int flags; in btsnoop_write_packet() local 206 flags = 2; in btsnoop_write_packet() 210 flags = is_received; in btsnoop_write_packet() 214 flags = is_received; in btsnoop_write_packet() 218 flags = 3; in btsnoop_write_packet() 227 flags = htonl(flags); in btsnoop_write_packet() 234 btsnoop_write(&flags, 4); in btsnoop_write_packet()
|
/system/core/libion/ |
D | ion.c | 62 unsigned int flags, ion_user_handle_t *handle) in ion_alloc() argument 69 .flags = flags, in ion_alloc() 91 int flags, off_t offset, unsigned char **ptr, int *map_fd) in ion_map() argument 111 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map() 143 unsigned int flags, int *handle_fd) { in ion_alloc_fd() argument 147 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle); in ion_alloc_fd()
|
/system/core/debuggerd/test/ |
D | tombstone_test.cpp | 138 map.flags = PROT_READ; in TEST_F() 175 map.flags = PROT_WRITE; in TEST_F() 215 map.flags = PROT_READ; in TEST_F() 222 map.flags = PROT_WRITE; in TEST_F() 229 map.flags = PROT_EXEC; in TEST_F() 236 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 276 map.flags = PROT_WRITE; in TEST_F() 283 map.flags = PROT_EXEC; in TEST_F() 290 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 332 map.flags = PROT_WRITE; in TEST_F() [all …]
|
/system/connectivity/shill/vpn/ |
D | vpn_driver.cc | 66 if ((properties_[i].flags & Property::kEphemeral)) { in Load() 70 if (properties_[i].flags & Property::kArray) { in Load() 71 CHECK(!(properties_[i].flags & Property::kCredential)) in Load() 81 bool loaded = (properties_[i].flags & Property::kCredential) ? in Load() 99 if ((properties_[i].flags & Property::kEphemeral)) { in Save() 102 bool credential = (properties_[i].flags & Property::kCredential); in Save() 104 if (properties_[i].flags & Property::kArray) { in Save() 133 if ((properties_[i].flags & in UnloadCredentials() 143 if (properties_[i].flags & Property::kArray) { in InitPropertyStore() 241 if ((properties_[i].flags & Property::kWriteOnly)) { in GetProvider() [all …]
|
/system/bt/btif/include/ |
D | btif_sock_rfc.h | 35 int* sock_fd, int flags, int app_uid); 37 int channel, int* sock_fd, int flags, int app_uid); 38 void btsock_rfc_signaled(int fd, int flags, uint32_t user_id);
|
D | btif_sock_l2cap.h | 18 int* sock_fd, int flags, int app_uid); 20 int channel, int* sock_fd, int flags, int app_uid); 21 void btsock_l2cap_signaled(int fd, int flags, uint32_t user_id);
|