Home
last modified time | relevance | path

Searched +full:new +full:- +full:cap (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/third_party/ltp/lib/
Dtst_capability.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 static void do_cap_drop(uint32_t *set, uint32_t mask, const struct tst_cap *cap) in do_cap_drop() argument
29 tst_res(TINFO, "Dropping %s(%d)", cap->name, cap->id); in do_cap_drop()
35 const struct tst_cap *cap) in do_cap_req() argument
38 tst_brk(TCONF, "Need %s(%d)", cap->name, cap->id); in do_cap_req()
41 tst_res(TINFO, "Permitting %s(%d)", cap->name, cap->id); in do_cap_req()
46 void tst_cap_action(struct tst_cap *cap) in tst_cap_action() argument
53 struct tst_cap_user_data new[2] = { {0} }; in tst_cap_action() local
54 uint32_t act = cap->action; in tst_cap_action()
55 uint32_t *pE = &new[CAP_TO_INDEX(cap->id)].effective; in tst_cap_action()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dieee802_11_vht.c3 * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
25 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local
26 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_vht_capabilities()
32 if (mode->mode == HOSTAPD_MODE_IEEE80211G && hapd->conf->vendor_vht && in hostapd_eid_vht_capabilities()
33 mode->vht_capab == 0 && hapd->iface->hw_features) { in hostapd_eid_vht_capabilities()
36 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_eid_vht_capabilities()
37 if (hapd->iface->hw_features[i].mode == in hostapd_eid_vht_capabilities()
39 mode = &hapd->iface->hw_features[i]; in hostapd_eid_vht_capabilities()
46 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
48 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dieee802_11_vht.c3 * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
25 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local
26 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_vht_capabilities()
32 if (mode->mode == HOSTAPD_MODE_IEEE80211G && hapd->conf->vendor_vht && in hostapd_eid_vht_capabilities()
33 mode->vht_capab == 0 && hapd->iface->hw_features) { in hostapd_eid_vht_capabilities()
36 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_eid_vht_capabilities()
37 if (hapd->iface->hw_features[i].mode == in hostapd_eid_vht_capabilities()
39 mode = &hapd->iface->hw_features[i]; in hostapd_eid_vht_capabilities()
46 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
48 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities()
[all …]
/third_party/flutter/skia/src/effects/
DSkOpPathEffect.cpp4 * Use of this source code is governed by a BSD-style license that can be
15 return sk_sp<SkPathEffect>(new SkOpPE(std::move(one), std::move(two), op)); in Make()
25 if (!fOne->filterPath(&one, src, rec, cull)) { in onFilterPath()
32 if (!fTwo->filterPath(&two, src, rec, cull)) { in onFilterPath()
60 return sk_sp<SkPathEffect>(new SkMatrixPE(SkMatrix::MakeTrans(dx, dy))); in MakeTranslate()
67 return sk_sp<SkPathEffect>(new SkMatrixPE(matrix)); in Make()
91 sk_sp<SkPathEffect> SkStrokePathEffect::Make(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, in Make() argument
96 return sk_sp<SkPathEffect>(new SkStrokePE(width, join, cap, miter)); in Make()
99 SkStrokePE::SkStrokePE(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, SkScalar miter) in SkStrokePE() argument
100 : fWidth(width), fMiter(miter), fJoin(join), fCap(cap) {} in SkStrokePE()
[all …]
/third_party/flutter/skia/gm/
Dcubicpaths.cpp4 * Use of this source code is governed by a BSD-style license that can be
40 for (SkScalar dy = -1; dy <= 1; dy += 1) { in onDraw()
41 canvas->save(); in onDraw()
42 for (SkScalar dx = -1; dx <= 1; dx += 1) { in onDraw()
43 canvas->save(); in onDraw()
44 canvas->clipRect(bounds); in onDraw()
45 canvas->translate(dx, dy); in onDraw()
46 canvas->drawPath(path, paint); in onDraw()
47 canvas->restore(); in onDraw()
49 canvas->translate(bounds.width(), 0); in onDraw()
[all …]
Dquadpaths.cpp4 * Use of this source code is governed by a BSD-style license that can be
38 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
43 paint.setStrokeCap(cap); in drawPath()
48 canvas->save(); in drawPath()
49 canvas->clipRect(clip); in drawPath()
50 canvas->drawPath(path, paint); in drawPath()
51 canvas->restore(); in drawPath()
75 SkPaint::Cap fCap; in onDraw()
92 path.fName = "moveTo-quad"; in onDraw()
100 canvas->drawString(title, 20.0f, 20.0f, font, titlePaint); in onDraw()
[all …]
Dnonclosedpaths.cpp4 * Use of this source code is governed by a BSD-style license that can be
19 // This GM tests a grab-bag of non-closed paths. All these paths look like
31 // The path looks closed, but final rendering has 2 ends with cap.
50 // Use rect-like geometry for non-closed path, for right angles make it
54 path->moveTo(30, 50); in MakePath()
55 path->lineTo(30, 30); in MakePath()
57 path->moveTo(30, 30); in MakePath()
59 path->lineTo(70, 30); in MakePath()
60 path->lineTo(70, 70); in MakePath()
61 path->lineTo(30, 70); in MakePath()
[all …]
/third_party/grpc/src/csharp/Grpc.Tools/
DGeneratorServices.cs9 // http://www.apache.org/licenses/LICENSE-2.0
26 // Abstract class for language-specific analysis behavior, such
36 if (lang.EqualNoCase("csharp")) { return new CSharpGeneratorServices(log); } in GetForLanguage()
37 if (lang.EqualNoCase("cpp")) { return new CppGeneratorServices(log); } in GetForLanguage()
106 if (str[str.Length - 1] != '\\' && str[str.Length - 1] != '/') in EndWithSlash()
122 var outputItem = new TaskItem(protoItem); in PatchOutputDirectory()
144 var outputs = new string[doGrpc ? 2 : 1]; in GetPossibleOutputs()
164 var result = new StringBuilder(str.Length, str.Length); in LowerUnderscoreToUpperCamelGrpcWay()
165 bool cap = true; in LowerUnderscoreToUpperCamelGrpcWay()
170 cap = true; in LowerUnderscoreToUpperCamelGrpcWay()
[all …]
/third_party/flutter/skia/include/core/
DSkStrokeRec.h4 * Use of this source code is governed by a BSD-style license that can be
39 SkPaint::Cap getCap() const { return (SkPaint::Cap)fCap; } in getCap()
43 return kHairline_Style == this->getStyle(); in isHairlineStyle()
47 return kFill_Style == this->getStyle(); in isFillStyle()
55 * strokeAndFill==true -> new style will be Fill
56 * strokeAndFill==false -> new style will be Hairline
60 void setStrokeParams(SkPaint::Cap cap, SkPaint::Join join, SkScalar miterLimit) { in setStrokeParams() argument
61 fCap = cap; in setStrokeParams()
80 Style style = this->getStyle(); in needToApply()
117 static SkScalar GetInflationRadius(SkPaint::Join, SkScalar miterLimit, SkPaint::Cap,
[all …]
/third_party/ffmpeg/libavcodec/
Dv4l2_m2m.c5 * Copyright (C) 2017 Jorge Ramirez <jorge.ramirez-ortiz@linaro.org>
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
39 static inline int v4l2_splane_video(struct v4l2_capability *cap) in v4l2_splane_video() argument
41 if (cap->capabilities & (V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT) && in v4l2_splane_video()
42 cap->capabilities & V4L2_CAP_STREAMING) in v4l2_splane_video()
45 if (cap->capabilities & V4L2_CAP_VIDEO_M2M) in v4l2_splane_video()
51 static inline int v4l2_mplane_video(struct v4l2_capability *cap) in v4l2_mplane_video() argument
53 if (cap->capabilities & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE) && in v4l2_mplane_video()
54 cap->capabilities & V4L2_CAP_STREAMING) in v4l2_mplane_video()
57 if (cap->capabilities & V4L2_CAP_VIDEO_M2M_MPLANE) in v4l2_mplane_video()
[all …]
/third_party/node/tools/node_modules/babel-eslint/node_modules/lodash/fp/
D_baseConvert.js4 /** Built-in value reference. */
13 * @param {number} n The arity of the new function.
14 * @returns {Function} Returns the new function.
27 * @param {Function} func The function to cap arguments for.
28 * @param {number} n The arity cap.
29 * @returns {Function} Returns the new function.
48 while (length--) {
59 * @returns {Function} Returns the new cloner function.
74 * @returns {Function} Returns the new function.
79 lastIndex = length - 1,
[all …]
/third_party/node/tools/node_modules/eslint/node_modules/lodash/fp/
D_baseConvert.js4 /** Built-in value reference. */
13 * @param {number} n The arity of the new function.
14 * @returns {Function} Returns the new function.
27 * @param {Function} func The function to cap arguments for.
28 * @param {number} n The arity cap.
29 * @returns {Function} Returns the new function.
48 while (length--) {
59 * @returns {Function} Returns the new cloner function.
74 * @returns {Function} Returns the new function.
79 lastIndex = length - 1,
[all …]
/third_party/flutter/skia/tools/skiaserve/
DRequest.cpp4 * Use of this source code is governed by a BSD-style license that can be
30 fContextFactory = new GrContextFactory(grContextOpts); in Request()
42 bmp.allocPixels(canvas->imageInfo()); in writeCanvasToPng()
43 SkAssertResult(canvas->readPixels(bmp, 0, 0)); in writeCanvasToPng()
53 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas()
56 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas()
60 gl->makeCurrent(); in getCanvas()
66 this->enableGPU(fGPUEnabled); in getCanvas()
68 SkCanvas* target = fSurface->getCanvas(); in getCanvas()
73 //fDebugCanvas->setOverdrawViz(true); in drawToPng()
[all …]
/third_party/Linux_Kernel/include/linux/ceph/
Dceph_fs.h2 * ceph_fs.h - Ceph constants and data types to share between kernel and
5 * Most types in this file are defined as little-endian, and are
19 * subprotocol versions. when specific messages types or high-level
22 * client-facing protocol.
37 * ceph_file_layout - describe data layout for a file/inode
40 /* file -> object mapping */
45 new objects */
48 /* pg -> disk layout */
49 __le32 fl_object_stripe_unit; /* UNUSED. for per-object parity, if any */
51 /* object -> pg layout */
[all …]
/third_party/boost/libs/smart_ptr/test/
Dsmart_ptr_test.cpp1 // smart pointer test program ----------------------------------------------//
35 # pragma warn -8092 // template argument passed to 'find' is not an iterator
60 // user defined type -------------------------------------------------------//
67 --UDT_use_count; in ~UDT()
74 // tests on incomplete types -----------------------------------------------//
78 // only - the functions aren't actually invoked.
101 // test scoped_ptr with a built-in type in test()
102 long * lp = new long; in test()
118 boost::scoped_ptr<UDT> udt_sp ( new UDT( 999888777 ) ); in test()
119 BOOST_TEST( udt_sp->value() == 999888777 ); in test()
[all …]
/third_party/libinput/doc/user/
Dtools.rst14 - ``libinput list-devices``: to list locally available devices,
15 see :ref:`here <libinput-list-devices>`
16 - ``libinput debug-events``: to monitor and debug events,
17 see :ref:`here <libinput-debug-events>`
18 - ``libinput debug-gui``: to visualize events,
19 see :ref:`here <libinput-debug-gui>`
20 - ``libinput record``: to record an event sequence for replaying,
21 see :ref:`here <libinput-record>`
22 - ``libinput measure``: measure properties on a kernel device,
23 see :ref:`here <libinput-measure>`
[all …]
/third_party/flutter/skia/include/c/
Dsk_paint.h4 * Use of this source code is governed by a BSD-style license that can be
9 // DO NOT USE -- FOR INTERNAL TESTING ONLY
19 Create a new paint with default settings:
24 stroke cap : BUTT_SK_STROKE_CAP
76 (always draw 1-pixel wide, regardless of the matrix).
99 Return the paint's stroke cap type, controlling how the start and
104 Set the paint's stroke cap type, controlling how the start and
128 * any previous value, and call ref() on the new value.
134 * any previous value, and call ref() on the new value.
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/test/tinyxml/
Dtinystr.h4 This software is provided 'as-is', without any express or implied
34 required - it is used to check that the TiXmlString class isn't incorrectly
62 static const size_type npos; // = -1;
127 // Convert a TiXmlString into a null-terminated char *
128 const char * c_str () const { return rep_->str; } in c_str()
131 const char * data () const { return rep_->str; } in data()
134 size_type length () const { return rep_->size; } in length()
137 size_type size () const { return rep_->size; } in size()
140 bool empty () const { return rep_->size == 0; } in empty()
143 size_type capacity () const { return rep_->capacity; } in capacity()
[all …]
/third_party/re2/re2/testing/
Dparse_test.cc2 // Use of this source code is governed by a BSD-style
16 // has undefined behaviour, so now we use an internal-only flag because
17 // otherwise we would have to introduce a new flag value just for this.
40 { "a|b", "cc{0x61-0x62}" },
41 { "(a)", "cap{lit{a}}" },
42 { "(a)|b", "alt{cap{lit{a}}lit{b}}" },
48 { "a{2,}", "rep{2,-1 lit{a}}" },
54 { "a{2,}?", "nrep{2,-1 lit{a}}" },
74 { "[abc]", "cc{0x61-0x63}" },
75 { "[a-z]", "cc{0x61-0x7a}" },
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrDashOp.cpp4 * Use of this source code is governed by a BSD-style license that can be
61 SkPaint::Cap cap = style.strokeRec().getCap(); in CanDrawDashLine() local
62 if (SkPaint::kRound_Cap == cap) { in CanDrawDashLine()
79 SkVector vecSrc = pts[1] - pts[0]; in calc_dash_scaling()
101 SkVector vec = pts[1] - pts[0]; in align_to_x_axis()
109 rotMatrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); in align_to_x_axis()
111 rotMatrix->mapPoints(ptsRot, pts, 2); in align_to_x_axis()
122 return srcIntervalLen - phase; in calc_start_adjustment()
133 SkScalar totalLen = pts[1].fX - pts[0].fX; in calc_end_adjustment()
136 *endingInt = totalLen - numFullIntervals * srcIntervalLen + phase; in calc_end_adjustment()
[all …]
/third_party/ltp/testcases/kernel/security/securebits/
Dcheck_keepcaps.c16 new user is nonroot
17 2. keep capabilities if set and new user is nonroot
44 * libcap.so. Then cap_get_flag returns -1, and errno is set to in eff_caps_empty()
47 if (ret == -1) { in eff_caps_empty()
62 cap_t cap = cap_get_proc(); in am_privileged() local
63 if (eff_caps_empty(cap)) in am_privileged()
65 cap_free(cap); in am_privileged()
113 tst_brkm(TFAIL, NULL, "Valid tests are 1-3"); in main()
120 if (ret == -1) { in main()
133 if (ret == -1) { in main()
[all …]
/third_party/flutter/skia/bench/
DBezierBench.cpp4 * Use of this source code is governed by a BSD-style license that can be
25 SkCanvas* canvas = rec->fCanvas; in draw_quad()
26 const SkPaint& paint = rec->fPaint; in draw_quad()
27 const SkPath& path = rec->fQuad; in draw_quad()
29 canvas->drawPath(path, paint); in draw_quad()
37 SkCanvas* canvas = rec->fCanvas; in draw_cubic()
38 const SkPaint& paint = rec->fPaint; in draw_cubic()
39 const SkPath& path = rec->fCubic; in draw_cubic()
41 canvas->drawPath(path, paint); in draw_cubic()
49 SkPaint::Cap fCap;
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Drbnf.cpp5 * Copyright (C) 1997-2015, International Business Machines Corporation
58 }; /* "%%lenient-parse:" */
96 if (refcount && --refcount == 0) { in unref()
142 if (rsc == rhs->getNumberOfRuleSets()) { in operator ==()
144 if (!streq(getRuleSetName(i), rhs->getRuleSetName(i))) { in operator ==()
149 if (dlc == rhs->getNumberOfDisplayLocales()) { in operator ==()
152 int32_t ix = rhs->indexForLocale(locale); in operator ==()
153 // if no locale, ix is -1, getLocaleName returns null, so streq returns false in operator ==()
154 if (!streq(locale, rhs->getLocaleName(ix))) { in operator ==()
158 if (!streq(getDisplayName(i, j), rhs->getDisplayName(ix, j))) { in operator ==()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Drbnf.cpp5 * Copyright (C) 1997-2015, International Business Machines Corporation
58 }; /* "%%lenient-parse:" */
96 if (refcount && --refcount == 0) { in unref()
142 if (rsc == rhs->getNumberOfRuleSets()) { in operator ==()
144 if (!streq(getRuleSetName(i), rhs->getRuleSetName(i))) { in operator ==()
149 if (dlc == rhs->getNumberOfDisplayLocales()) { in operator ==()
152 int32_t ix = rhs->indexForLocale(locale); in operator ==()
153 // if no locale, ix is -1, getLocaleName returns null, so streq returns false in operator ==()
154 if (!streq(locale, rhs->getLocaleName(ix))) { in operator ==()
158 if (!streq(getDisplayName(i, j), rhs->getDisplayName(ix, j))) { in operator ==()
[all …]
/third_party/icu/icu4c/source/i18n/
Drbnf.cpp5 * Copyright (C) 1997-2015, International Business Machines Corporation
58 }; /* "%%lenient-parse:" */
96 if (refcount && --refcount == 0) { in unref()
142 if (rsc == rhs->getNumberOfRuleSets()) { in operator ==()
144 if (!streq(getRuleSetName(i), rhs->getRuleSetName(i))) { in operator ==()
149 if (dlc == rhs->getNumberOfDisplayLocales()) { in operator ==()
152 int32_t ix = rhs->indexForLocale(locale); in operator ==()
153 // if no locale, ix is -1, getLocaleName returns null, so streq returns false in operator ==()
154 if (!streq(locale, rhs->getLocaleName(ix))) { in operator ==()
158 if (!streq(getDisplayName(i, j), rhs->getDisplayName(ix, j))) { in operator ==()
[all …]

12345678910>>...12