/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_QUERYCAP.c | 63 struct v4l2_capability cap; in test_VIDIOC_QUERYCAP() local 66 memset(&cap, 0xff, sizeof(cap)); in test_VIDIOC_QUERYCAP() 68 ret = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYCAP() 76 cap.driver, in test_VIDIOC_QUERYCAP() 77 cap.card, in test_VIDIOC_QUERYCAP() 78 cap.bus_info, in test_VIDIOC_QUERYCAP() 79 (cap.version >> 16) & 0xFF, in test_VIDIOC_QUERYCAP() 80 (cap.version >> 8) & 0xFF, in test_VIDIOC_QUERYCAP() 81 cap.version & 0xFF, in test_VIDIOC_QUERYCAP() 82 cap.capabilities, in test_VIDIOC_QUERYCAP() [all …]
|
D | test_VIDIOC_REQBUFS.c | 36 struct v4l2_capability cap; in do_VIDIOC_REQBUFS_capture_mmap() local 40 memset(&cap, 0, sizeof(cap)); in do_VIDIOC_REQBUFS_capture_mmap() 42 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in do_VIDIOC_REQBUFS_capture_mmap() 57 (cap.capabilities & V4L2_CAP_STREAMING) && in do_VIDIOC_REQBUFS_capture_mmap() 58 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) { in do_VIDIOC_REQBUFS_capture_mmap() 61 CU_ASSERT(cap.capabilities & V4L2_CAP_STREAMING); in do_VIDIOC_REQBUFS_capture_mmap() 105 struct v4l2_capability cap; in do_VIDIOC_REQBUFS_capture_userptr() local 109 memset(&cap, 0, sizeof(cap)); in do_VIDIOC_REQBUFS_capture_userptr() 111 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in do_VIDIOC_REQBUFS_capture_userptr() 126 (cap.capabilities & V4L2_CAP_STREAMING) && in do_VIDIOC_REQBUFS_capture_userptr() [all …]
|
D | test_VIDIOC_QUERYBUF.c | 251 struct v4l2_capability cap; in test_VIDIOC_QUERYBUF_capture_mmap() local 254 memset(&cap, 0, sizeof(cap)); in test_VIDIOC_QUERYBUF_capture_mmap() 256 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYBUF_capture_mmap() 260 (cap.capabilities & V4L2_CAP_STREAMING) && in test_VIDIOC_QUERYBUF_capture_mmap() 261 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) { in test_VIDIOC_QUERYBUF_capture_mmap() 289 struct v4l2_capability cap; in test_VIDIOC_QUERYBUF_capture_userptr() local 293 memset(&cap, 0, sizeof(cap)); in test_VIDIOC_QUERYBUF_capture_userptr() 295 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYBUF_capture_userptr() 310 (cap.capabilities & V4L2_CAP_STREAMING) && in test_VIDIOC_QUERYBUF_capture_userptr() 311 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE) && ret_req == 0) { in test_VIDIOC_QUERYBUF_capture_userptr() [all …]
|
/external/webrtc/webrtc/modules/video_capture/linux/ |
D | device_info_linux.cc | 116 struct v4l2_capability cap; in GetDeviceName() local 117 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) < 0) in GetDeviceName() 130 memcpy(cameraName, cap.card, sizeof(cap.card)); in GetDeviceName() 142 if (cap.bus_info[0] != 0) // may not available in all drivers in GetDeviceName() 145 if (deviceUniqueIdUTF8Length >= strlen((const char*) cap.bus_info)) in GetDeviceName() 148 memcpy(deviceUniqueIdUTF8, cap.bus_info, in GetDeviceName() 149 strlen((const char*) cap.bus_info)); in GetDeviceName() 188 struct v4l2_capability cap; in CreateCapabilityMap() local 189 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) in CreateCapabilityMap() 191 if (cap.bus_info[0] != 0) in CreateCapabilityMap() [all …]
|
/external/pdfium/third_party/bigint/ |
D | NumberlikeArray.hh | 37 Index cap; member in NumberlikeArray 44 NumberlikeArray(Index c) : cap(c), len(0) { in NumberlikeArray() 45 blk = (cap > 0) ? (new Blk[cap]) : NULL; in NumberlikeArray() 52 NumberlikeArray() : cap(0), len(0) { in NumberlikeArray() 79 Index getCapacity() const { return cap; } in getCapacity() 103 if (c > cap) { in allocate() 107 cap = c; in allocate() 108 blk = new Blk[cap]; in allocate() 115 if (c > cap) { in allocateAndCopy() 118 cap = c; in allocateAndCopy() [all …]
|
/external/autotest/client/site_tests/video_VideoCapability/ |
D | video_VideoCapability.py | 42 cap = video_VideoCapability.avtest_label_to_capability[label] 43 avtest_detected_labels.add(cap) 44 for cap in video_VideoCapability.avtest_label_to_capability.values(): 45 if dc_results[cap] == 'yes' and cap not in avtest_detected_labels: 47 "But avtest_label_detect doesn't detect", cap) 50 if dc_results[cap] == 'no' and cap in avtest_detected_labels: 52 'But avtest_label_detect detects', cap) 64 for cap in dc.get_managed_caps(): 65 ret = dc.get_capability(cap) 66 dc_results[cap] = ret
|
/external/wpa_supplicant_8/src/ap/ |
D | ieee802_11_vht.c | 25 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local 46 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities() 48 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities() 49 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_vht_capabilities() 50 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities() 56 hapd_nsts = le_to_host32(cap->vht_capabilities_info); in hostapd_eid_vht_capabilities() 58 cap->vht_capabilities_info &= in hostapd_eid_vht_capabilities() 61 cap->vht_capabilities_info |= in hostapd_eid_vht_capabilities() 66 os_memcpy(&cap->vht_supported_mcs_set, mode->vht_mcs_set, 8); in hostapd_eid_vht_capabilities() 68 pos += sizeof(*cap); in hostapd_eid_vht_capabilities() [all …]
|
D | ieee802_11_he.c | 21 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local 31 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab() 32 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab() 35 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] |= in hostapd_eid_he_capab() 39 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX] |= in hostapd_eid_he_capab() 43 cap->he_phy_capab_info[HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX] |= in hostapd_eid_he_capab() 46 pos += sizeof(*cap); in hostapd_eid_he_capab()
|
/external/mesa3d/src/mesa/main/ |
D | enable.h | 41 _mesa_set_enable( struct gl_context* ctx, GLenum cap, GLboolean state ); 44 _mesa_Disable( GLenum cap ); 47 _mesa_Enable( GLenum cap ); 50 _mesa_IsEnabled( GLenum cap ); 53 _mesa_set_enablei(struct gl_context *ctx, GLenum cap, GLuint index, GLboolean state); 56 _mesa_Disablei( GLenum cap, GLuint index ); 59 _mesa_Enablei( GLenum cap, GLuint index ); 62 _mesa_IsEnabledi( GLenum cap, GLuint index ); 65 _mesa_EnableClientState( GLenum cap ); 68 _mesa_DisableClientState( GLenum cap );
|
D | enable.c | 64 client_state(struct gl_context *ctx, GLenum cap, GLboolean state) in client_state() argument 70 switch (cap) { in client_state() 143 ctx->Driver.Enable( ctx, cap, state ); in client_state() 150 state ? "Enable" : "Disable", _mesa_enum_to_string(cap)); in client_state() 162 _mesa_EnableClientState( GLenum cap ) in _mesa_EnableClientState() argument 165 client_state( ctx, cap, GL_TRUE ); in _mesa_EnableClientState() 177 _mesa_DisableClientState( GLenum cap ) in _mesa_DisableClientState() argument 180 client_state( ctx, cap, GL_FALSE ); in _mesa_DisableClientState() 282 _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) in _mesa_set_enable() argument 287 _mesa_enum_to_string(cap), in _mesa_set_enable() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_caps.h | 45 #define UTIL_CHECK_CAP(cap) \ argument 46 UTIL_CAPS_CHECK_CAP, PIPE_CAP_##cap 48 #define UTIL_CHECK_INT(cap, higher) \ argument 49 UTIL_CAPS_CHECK_INT, PIPE_CAP_##cap, (unsigned)(higher) 52 #define UTIL_CHECK_FLOAT(cap, higher) \ argument 53 UTIL_CAPS_CHECK_FLOAT, PIPE_CAPF_##cap, (unsigned)(int)(higher) 58 #define UTIL_CHECK_SHADER(shader, cap, higher) \ argument 59 UTIL_CAPS_CHECK_SHADER, (PIPE_SHADER_##shader << 24) | PIPE_SHADER_CAP_##cap, (unsigned)(higher)
|
/external/iw/ |
D | util.c | 549 void print_ht_capability(__u16 cap) in print_ht_capability() argument 557 printf("\t\tCapabilities: 0x%02x\n", cap); in print_ht_capability() 559 PRINT_HT_CAP((cap & BIT(0)), "RX LDPC"); in print_ht_capability() 560 PRINT_HT_CAP((cap & BIT(1)), "HT20/HT40"); in print_ht_capability() 561 PRINT_HT_CAP(!(cap & BIT(1)), "HT20"); in print_ht_capability() 563 PRINT_HT_CAP(((cap >> 2) & 0x3) == 0, "Static SM Power Save"); in print_ht_capability() 564 PRINT_HT_CAP(((cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); in print_ht_capability() 565 PRINT_HT_CAP(((cap >> 2) & 0x3) == 3, "SM Power Save disabled"); in print_ht_capability() 567 PRINT_HT_CAP((cap & BIT(4)), "RX Greenfield"); in print_ht_capability() 568 PRINT_HT_CAP((cap & BIT(5)), "RX HT20 SGI"); in print_ht_capability() [all …]
|
/external/webrtc/talk/media/webrtc/ |
D | webrtcvideocapturer.cc | 84 static bool CapabilityToFormat(const webrtc::VideoCaptureCapability& cap, in CapabilityToFormat() argument 88 if (kSupportedFourCCs[i].webrtc_type == cap.rawType) { in CapabilityToFormat() 98 format->width = cap.width; in CapabilityToFormat() 99 format->height = cap.height; in CapabilityToFormat() 100 format->interval = VideoFormat::FpsToInterval(cap.maxFPS); in CapabilityToFormat() 105 webrtc::VideoCaptureCapability* cap) { in FormatToCapability() argument 117 cap->width = format.width; in FormatToCapability() 118 cap->height = format.height; in FormatToCapability() 119 cap->maxFPS = VideoFormat::IntervalToFps(format.interval); in FormatToCapability() 120 cap->expectedCaptureDelay = 0; in FormatToCapability() [all …]
|
/external/libcap/progs/ |
D | capsh.c | 99 cap_value_t cap; in main() local 102 if (cap_from_name(ptr, &cap) != 0) { in main() 112 status = prctl(PR_CAPBSET_DROP, cap); in main() 118 fprintf(stderr, "failed to drop [%s=%u]\n", ptr, cap); in main() 448 unsigned cap; in main() local 456 for (cap=0; (cap < 64) && (value >> cap); ++cap) { in main() 457 if (value & (1ULL << cap)) { in main() 460 ptr = cap_to_name(cap); in main() 465 printf("%s%u", sep, cap); in main() 472 cap_value_t cap; in main() local [all …]
|
/external/skia/gm/ |
D | quadpaths.cpp | 30 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument 35 paint.setStrokeCap(cap); in drawPath() 103 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local 104 if (0 < cap) { in onDraw() 120 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw() 141 canvas->drawString(gCaps[cap].fName, in onDraw() 170 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument 175 paint.setStrokeCap(cap); in drawPath() 244 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local 245 if (0 < cap) { in onDraw() [all …]
|
/external/skqp/gm/ |
D | quadpaths.cpp | 30 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument 35 paint.setStrokeCap(cap); in drawPath() 103 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local 104 if (0 < cap) { in onDraw() 120 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw() 141 canvas->drawString(gCaps[cap].fName, in onDraw() 170 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument 175 paint.setStrokeCap(cap); in drawPath() 244 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local 245 if (0 < cap) { in onDraw() [all …]
|
/external/autotest/client/site_tests/network_WiFiCaps/ |
D | network_WiFiCaps.py | 65 for cap in requiredCaps: 66 if not cap in results: 68 'capability "%s" not handled' % cap) 69 if results[cap] != requiredCaps[cap]: 72 % (cap, results[cap], requiredCaps[cap]))
|
/external/autotest/client/cros/video/ |
D | device_capability.py | 111 def get_capability(self, cap): argument 120 return self.capabilities[cap] 122 raise error.TestFail("Unexpected capability: %s" % cap) 125 def ensure_capability(self, cap): argument 129 if self.get_capability(cap) != 'yes': 130 raise error.TestNAError("Missing Capability: %s" % cap) 133 def have_capability(self, cap): argument 137 return self.get_capability(cap) == 'yes'
|
/external/capstone/bindings/vb6/ |
D | Form1.frm | 147 Dim cap As CDisassembler 199 If Not cap Is Nothing Then Set cap = Nothing 201 Set cap = New CDisassembler 203 If Not cap.init(arch, mode, True) Then 204 List1.AddItem "Failed to init engine: " & cap.errMsg 208 List1.AddItem "Capstone loaded @ 0x" & Hex(cap.hLib) 209 List1.AddItem "hEngine: 0x" & Hex(cap.hCapstone) 210 List1.AddItem "Version: " & cap.version 212 If cap.vMajor < 3 Then 217 Set ret = cap.disasm(&H1000, code)
|
/external/tcpdump/tests/ |
D | spb_bpduv4-v.out | 14 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 30 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 46 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 62 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 78 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 94 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 110 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 126 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 142 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, 158 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32, [all …]
|
/external/ltp/testcases/kernel/security/filecaps/ |
D | verify_caps_exec.c | 67 cap_t cap = cap_get_proc(); in print_my_caps() local 68 char *txt = cap_to_text(cap, NULL); in print_my_caps() 70 cap_free(cap); in print_my_caps() 86 cap_t cap = cap_from_text("=eip"); in drop_root() local 88 if (!cap) in drop_root() 91 ret = cap_set_proc(cap); in drop_root() 94 cap_free(cap); in drop_root() 101 cap_t cap; in perms_test() local 104 cap = cap_from_text("all=eip"); in perms_test() 105 if (!cap) { in perms_test() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.memfn/ |
D | member_function_const_volatile.pass.cpp | 34 const volatile A* cap = &a; in test0() local 35 assert(f(cap) == 'a'); in test0() 50 const volatile A* cap = &a; in test1() local 51 assert(f(cap, 2) == 'b'); in test1() 66 const volatile A* cap = &a; in test2() local 67 assert(f(cap, 2, 3.5) == 'c'); in test2()
|
D | member_function_const.pass.cpp | 34 const A* cap = &a; in test0() local 35 assert(f(cap) == 'a'); in test0() 50 const A* cap = &a; in test1() local 51 assert(f(cap, 2) == 'b'); in test1() 66 const A* cap = &a; in test2() local 67 assert(f(cap, 2, 3.5) == 'c'); in test2()
|
D | member_function_volatile.pass.cpp | 34 volatile A* cap = &a; in test0() local 35 assert(f(cap) == 'a'); in test0() 50 volatile A* cap = &a; in test1() local 51 assert(f(cap, 2) == 'b'); in test1() 66 volatile A* cap = &a; in test2() local 67 assert(f(cap, 2, 3.5) == 'c'); in test2()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_vector.h | 107 uptr cap = cap0 * 5 / 4; // 25% growth in EnsureSize() local 108 if (cap == 0) in EnsureSize() 109 cap = 16; in EnsureSize() 110 if (cap < size) in EnsureSize() 111 cap = size; in EnsureSize() 112 T *p = (T*)internal_alloc(typ_, cap * sizeof(T)); in EnsureSize() 119 last_ = begin_ + cap; in EnsureSize()
|