Home
last modified time | relevance | path

Searched full:owner (Results 1 – 25 of 8270) sorted by relevance

12345678910>>...331

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-owning-memory.cpp5 using owner = T; typedef
11 unique_ptr(gsl::owner<T> resource) : memory(resource) {} in unique_ptr()
17 gsl::owner<T> memory;
20 void takes_owner(gsl::owner<int *> owned_int) { in takes_owner()
26 void takes_owner_and_more(int some_int, gsl::owner<int *> owned_int, float f) { in takes_owner_and_more()
30 void takes_templated_owner(gsl::owner<T> owned_T) { in takes_templated_owner()
33 gsl::owner<int *> returns_owner1() { return gsl::owner<int *>(new int(42)); } // Ok in returns_owner1()
34 gsl::owner<int *> returns_owner2() { return new int(42); } // Ok in returns_owner2()
39 …wly created resource of type 'int *' or 'gsl::owner<>' from a function whose return type is not 'g… in returns_no_owner2()
43 …HECK-NOTES: [[@LINE-1]]:3: warning: initializing non-owner 'int *' with a newly created 'gsl::owne… in returns_no_owner3()
[all …]
Dcppcoreguidelines-owning-memory-legacy-functions.cpp9 using owner = T; typedef
47 void consumesResource(gsl::owner<int *> Resource, size_t Size) {} in consumesResource()
48 void consumesResource(gsl::owner<FILE *> Resource) {} in consumesResource()
52 void testNonCastedOwner(gsl::owner<void *> Resource) {} in testNonCastedOwner()
55 …ource of type 'FILE *' (aka 'int *') or 'gsl::owner<>' from a function whose return type is not 'g…
56 gsl::owner<FILE *> fileFactory2() { return std::fopen("new_file.txt", "w"); } // Ok in fileFactory2()
59 …wly created resource of type 'int *' or 'gsl::owner<>' from a function whose return type is not 'g…
60 gsl::owner<int *> arrayFactory2() { return (int *)std::malloc(100); } // Ok in arrayFactory2()
62 …ly created resource of type 'void *' or 'gsl::owner<>' from a function whose return type is not 'g…
63 gsl::owner<void *> dataFactory2() { return std::malloc(100); } // Ok in dataFactory2()
[all …]
/external/iptables/extensions/
Dlibxt_owner.t3 -m owner --uid-owner root;-m owner --uid-owner 0;OK
4 -m owner --uid-owner 0-10;=;OK
5 -m owner --gid-owner root;-m owner --gid-owner 0;OK
6 -m owner --gid-owner 0-10;=;OK
7 -m owner --uid-owner root --gid-owner root;-m owner --uid-owner 0 --gid-owner 0;OK
8 -m owner --uid-owner 0-10 --gid-owner 0-10;=;OK
9 -m owner ! --uid-owner root;-m owner ! --uid-owner 0;OK
10 -m owner --socket-exists;=;OK
11 -m owner --gid-owner 0-10 --suppl-groups;=;OK
12 -m owner --suppl-groups --gid-owner 0-10;;FAIL
[all …]
Dlibxt_owner.c65 "owner match options:\n" in owner_mt_help_v0()
66 "[!] --uid-owner userid Match local UID\n" in owner_mt_help_v0()
67 "[!] --gid-owner groupid Match local GID\n" in owner_mt_help_v0()
68 "[!] --pid-owner processid Match local PID\n" in owner_mt_help_v0()
69 "[!] --sid-owner sessionid Match local SID\n" in owner_mt_help_v0()
70 "[!] --cmd-owner name Match local command name\n" in owner_mt_help_v0()
77 "owner match options:\n" in owner_mt6_help_v0()
78 "[!] --uid-owner userid Match local UID\n" in owner_mt6_help_v0()
79 "[!] --gid-owner groupid Match local GID\n" in owner_mt6_help_v0()
80 "[!] --pid-owner processid Match local PID\n" in owner_mt6_help_v0()
[all …]
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dcppcoreguidelines-owning-memory.rst6 This check implements the type-based semantics of ``gsl::owner<T*>``, which allows
11 The definition of a ``gsl::owner<T*>`` is straight forward
15 namespace gsl { template <typename T> owner = T; }
17 It is therefore simple to introduce the owner even without using an implementation of
28 // Creating an owner with factory functions is checked.
29 gsl::owner<int*> function_that_returns_owner() { return gsl::owner<int*>(new int(42)); }
31 // Dynamic memory must be assigned to an owner
33 gsl::owner<int*> Owner = new int(42); // Good
34 gsl::owner<int*> Owner = new int[42]; // Good as well
36 // Returned owner must be assigned to an owner
[all …]
/external/webrtc/rtc_base/task_utils/
Dpending_task_safety_flag_unittest.cc34 // Scope for the |owner| instance. in TEST()
35 class Owner { in TEST() class
37 Owner() = default; in TEST()
38 ~Owner() { flag_->SetNotAlive(); } in TEST()
42 } owner; in TEST() local
43 EXPECT_TRUE(owner.flag_->alive()); in TEST()
44 safety_flag = owner.flag_; in TEST()
47 // |owner| now out of scope. in TEST()
54 struct Owner { in TEST() struct
56 } owner; in TEST() local
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DMutex.kt38 …* @param owner Optional owner token for debugging. When `owner` is specified (non-null value) and … in <lambda>()
41 public fun tryLock(owner: Any? = null): Boolean in <lambda>()
61 …* @param owner Optional owner token for debugging. When `owner` is specified (non-null value) and … in <lambda>()
64 public suspend fun lock(owner: Any? = null) in <lambda>()
68 … * Additional parameter for the clause in the `owner` (see [lock]) and when the clause is selected in <lambda>()
74 * Checks mutex locked by owner in <lambda>()
76 … * @return `true` on mutex lock by owner, `false` if not locker or it is locked by different owner in <lambda>()
78 public fun holdsLock(owner: Any): Boolean in <lambda>()
82 * was locked with a different owner token (by identity). in <lambda>()
84 …* @param owner Optional owner token for debugging. When `owner` is specified (non-null value) and … in <lambda>()
[all …]
/external/libwebsockets/lib/core/
Dlws_dll2.c32 lws_dll2_foreach_safe(struct lws_dll2_owner *owner, void *user, in lws_dll2_foreach_safe() argument
35 lws_start_foreach_dll_safe(struct lws_dll2 *, p, tp, owner->head) { in lws_dll2_foreach_safe()
44 lws_dll2_add_head(struct lws_dll2 *d, struct lws_dll2_owner *owner) in lws_dll2_add_head() argument
52 if (owner->head != d) in lws_dll2_add_head()
53 d->next = owner->head; in lws_dll2_add_head()
62 owner->head = d; in lws_dll2_add_head()
64 if (!owner->tail) in lws_dll2_add_head()
65 owner->tail = d; in lws_dll2_add_head()
67 d->owner = owner; in lws_dll2_add_head()
68 owner->count++; in lws_dll2_add_head()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/
DXPathVisitor.java43 * <code>boolean visitComponentType(ExpressionOwner owner, ComponentType compType)</code>.
44 * The ExpressionOwner argument is the owner of the component, and can
55 * @param owner The owner of the expression, to which the expression can
60 public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path) in visitLocationPath() argument
67 * @param owner The owner of the expression, to which the expression can
72 public boolean visitUnionPath(ExpressionOwner owner, UnionPathIterator path) in visitUnionPath() argument
79 * @param owner The owner of the expression, to which the expression can
84 public boolean visitStep(ExpressionOwner owner, NodeTest step) in visitStep() argument
94 * @param owner The owner of the expression, to which the expression can
99 public boolean visitPredicate(ExpressionOwner owner, Expression pred) in visitPredicate() argument
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dattr-gsl-owner-pointer.cpp4 int [[gsl::Owner]] i;
5 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
6 void [[gsl::Owner]] f();
7 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
9 [[gsl::Owner]] void f();
10 // expected-warning@-1 {{'Owner' attribute only applies to structs}}
12 union [[gsl::Owner(int)]] Union{};
13 // expected-warning@-1 {{'Owner' attribute only applies to structs}}
18 S [[gsl::Owner]] Instance;
19 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
[all …]
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DOwnerAttributeProvider.java32 * Attribute provider that provides the {@link FileOwnerAttributeView} ("owner").
38 private static final ImmutableSet<String> ATTRIBUTES = ImmutableSet.of("owner");
44 return "owner"; in name()
54 Object userProvidedOwner = userProvidedDefaults.get("owner:owner"); in defaultValues()
56 UserPrincipal owner = DEFAULT_OWNER; in defaultValues() local
59 owner = createUserPrincipal((String) userProvidedOwner); in defaultValues()
61 throw invalidType("owner", "owner", userProvidedOwner, String.class, UserPrincipal.class); in defaultValues()
65 return ImmutableMap.of("owner:owner", owner); in defaultValues()
71 if (attribute.equals("owner")) { in get()
72 return file.getAttribute("owner", "owner"); in get()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DOwningMemoryCheck.cpp39 /// Match common cases, where the owner semantic is relevant, like function
42 const auto OwnerDecl = typeAliasTemplateDecl(hasName("::gsl::owner")); in registerMatchers()
50 // updated to use `gsl::owner<>`, like standard C memory management. in registerMatchers()
59 // owner. Best example is `::free()`. in registerMatchers()
79 // with the 'owner<>' annotation and therefore always implicitly cast to the in registerMatchers()
82 // Furthermore, legacy owner functions are assumed to use raw pointers for in registerMatchers()
84 // functions shall be 'gsl::owner<>'. in registerMatchers()
94 // Matching assignment to owners, with the rhs not being an owner nor creating in registerMatchers()
127 // Matching on assignment operations where the RHS is a newly created owner, in registerMatchers()
128 // but the LHS is not an owner. in registerMatchers()
[all …]
/external/libwebsockets/READMEs/
DREADME.lws_dll.md34 lws_dll owner;
37 Adding a mystruct to the owner list (...add_tail() works the same way but adds
45 lws_dll_add_head(&p->list, &owner);
48 Removing the list object from its owner
51 lws_dll2_remove(&p->list, &owner);
71 lws_dll2_owner owner;
74 Adding a mystruct to the owner list (...add_tail() works the same way but adds
82 lws_dll2_add_head(&p->list, &owner);
85 Removing the list object from its owner (notice compared to lws_dll, it doesn't
86 need to be told the owner)
[all …]
/external/llvm/utils/
Dwciia.py6 Determines code owner of the file/folder relative to the llvm source root.
7 Code owner is determined from the content of the CODE_OWNERS.TXT
27 def process_files_and_folders(owner): argument
28 filesfolders = owner['filesfolders']
37 owner['paths'] = []
39 owner['paths'].append(path)
41 def process_code_owner(owner): argument
42 if 'filesfolders' in owner:
43 filesfolders = owner['filesfolders']
46 owner['filesfolders'] = owner['description']
[all …]
/external/llvm-project/llvm/utils/
Dwciia.py6 Determines code owner of the file/folder relative to the llvm source root.
7 Code owner is determined from the content of the CODE_OWNERS.TXT
28 def process_files_and_folders(owner): argument
29 filesfolders = owner['filesfolders']
38 owner['paths'] = []
40 owner['paths'].append(path)
42 def process_code_owner(owner): argument
43 if 'filesfolders' in owner:
44 filesfolders = owner['filesfolders']
47 owner['filesfolders'] = owner['description']
[all …]
/external/python/apitools/samples/storage_sample/storage_v1/
Dstorage_v1_messages.py26 OwnerValue: The owner of the bucket. This is always the project team's
27 owner group.
51 owner: The owner of the bucket. This is always the project team's owner
162 r"""The owner of the bucket. This is always the project team's owner
166 entity: The entity, in the form project-owner-projectId.
212 owner = _messages.MessageField('OwnerValue', 12) variable in Bucket
246 OWNER.
504 OwnerValue: The owner of the object. This will always be the uploader of
538 owner: The owner of the object. This will always be the uploader of the
586 r"""The owner of the object. This will always be the uploader of the
[all …]
/external/marisa-trie/bindings/perl/
Dmarisa.pm56 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
58 %OWNER = ();
68 if (exists $OWNER{$self}) {
70 delete $OWNER{$self};
77 delete $OWNER{$ptr};
83 $OWNER{$ptr} = 1;
90 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
92 %OWNER = ();
101 if (exists $OWNER{$self}) {
103 delete $OWNER{$self};
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DTestObjectIdWithPolymorphic.java44 public Base811 owner; field in TestObjectIdWithPolymorphic.Base811
47 public Base811(Process owner) { in Base811() argument
48 this.owner = owner; in Base811()
49 if (owner == null) { in Base811()
52 id = ++owner.childIdCounter; in Base811()
53 owner.children.add(this); in Base811()
67 public Activity(Process owner, Activity parent) { in Activity() argument
68 super(owner); in Activity()
78 public Scope(Process owner, Activity parent) { in Scope() argument
79 super(owner, parent); in Scope()
[all …]
/external/desugar/java/com/google/devtools/build/android/desugar/
DInterfaceDesugaring.java145 interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit.owner(), in emitInterfaceFieldAccessInCompanionMethodToTriggerInterfaceClinit()
260 public void visitOuterClass(String owner, String name, String desc) { in visitOuterClass() argument
263 // figure out if "owner" is an interface) need to adjust the outer method information. in visitOuterClass()
264 if (name != null && interfaceCache.isOuterInterface(owner, internalName)) { in visitOuterClass()
274 } // otherwise there's no enclosing method that could've been moved, or owner is a class in visitOuterClass()
275 super.visitOuterClass(owner, name, desc); in visitOuterClass()
288 // Rename lambda method to reflect the new owner. Not doing so confuses LambdaDesugaring in normalizeInterfaceMethodName()
345 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument
348 && owner.equals(internalName)) { in visitFieldInsn()
350 // (b/64290760), so we test whether the owner is the same as the internalName. in visitFieldInsn()
[all …]
DCoreLibrarySupport.java62 /** Map from {@code owner#name} core library members to their new owners. */
135 public String getMoveTarget(String owner, String name) { in getMoveTarget() argument
136 return memberMoves.get(rewriter.unprefix(owner) + '#' + name); in getMoveTarget()
150 String owner, in registerIfEmulatedCoreInterface() argument
154 Class<?> emulated = getEmulatedCoreClassOrInterface(owner); in registerIfEmulatedCoreInterface()
158 checkArgument(emulated.isInterface(), "Shouldn't be called for a class: %s.%s", owner, name); in registerIfEmulatedCoreInterface() local
163 "Should only be called for default methods: %s.%s", owner, name); in registerIfEmulatedCoreInterface() local
173 * <p>This method can only return non-{@code null} if {@code owner} is a core library type.
182 int opcode, String owner, String name, String desc, boolean itf) { in getCoreInterfaceRewritingTarget() argument
183 if (looksGenerated(owner)) { in getCoreInterfaceRewritingTarget()
[all …]
/external/python/apitools/samples/storage_sample/
Dstorage_v1.json248 "owner": { object
250 "description": "The owner of the bucket. This is always the project team's owner group.",
254 "description": "The entity, in the form project-owner-projectId."
370 "description": "The access permission for the entity. Can be READER, WRITER, or OWNER.",
729 "owner": { object
731 "description": "The owner of the object. This will always be the uploader of the object.",
836 "description": "The access permission for the entity. Can be READER or OWNER."
919OWNER role. \n- roles/storage.legacyBucketReader — Read access to buckets with object listing. Eq…
1258 "Omit owner, acl and defaultObjectAcl properties."
1321 "Project team owners get OWNER access, and allAuthenticatedUsers get READER access.",
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/
DPrivFrame.java33 public final String owner; field in PrivFrame
36 public PrivFrame(String owner, byte[] privateData) { in PrivFrame() argument
38 this.owner = owner; in PrivFrame()
44 owner = castNonNull(in.readString()); in PrivFrame()
57 return Util.areEqual(owner, other.owner) && Arrays.equals(privateData, other.privateData); in equals()
63 result = 31 * result + (owner != null ? owner.hashCode() : 0); in hashCode()
70 return id + ": owner=" + owner; in toString()
76 dest.writeString(owner); in writeToParcel()
/external/turbine/java/com/google/turbine/binder/sym/
DMethodSymbol.java27 * methods aren't uniquely identified by their name and owner.
31 private final ClassSymbol owner; field in MethodSymbol
34 public MethodSymbol(int idx, ClassSymbol owner, String name) { in MethodSymbol() argument
36 this.owner = owner; in MethodSymbol()
41 public ClassSymbol owner() { in owner() method in MethodSymbol
42 return owner; in owner()
52 return Objects.hash(name, owner); in hashCode()
66 return name().equals(other.name()) && owner().equals(other.owner()) && idx == other.idx; in equals()
71 return owner + "#" + name; in toString()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDevicePolicyManagerTest.java71 // GIVEN an test package which is not the device owner app of the device in isDeviceOwnerAppShouldReturnFalseForNonDeviceOwnerApp()
82 // GIVEN an test package which is the profile owner app of the device in isDeviceOwnerShouldReturnFalseForProfileOwner()
94 // GIVEN an test package which is the device owner app of the device in isDeviceOwnerShouldReturnTrueForDeviceOwner()
106 // GIVEN an test package which is the device owner app of the device in getDeviceOwnerShouldReturnDeviceOwnerPackageName()
118 // WHEN DevicePolicyManager#getProfileOwner is called without a device owner in getDeviceOwnerShouldReturnNullWhenThereIsNoDeviceOwner()
126 // GIVEN a test component is the device owner app of the device in isDeviceManagedShouldReturnTrueWhenThereIsADeviceOwner()
137 // WHEN DevicePolicyManager#isDeviceManaged is called without a device owner in isDeviceManagedShouldReturnFalseWhenThereIsNoDeviceOwner()
145 // GIVEN an test package which is not the profile owner app of the device in isProfileOwnerAppShouldReturnFalseForNonProfileOwnerApp()
156 // GIVEN an test package which is the device owner app of the device in isProfileOwnerShouldReturnFalseForDeviceOwner()
168 // GIVEN an test package which is the profile owner app of the device in isProfileOwnerShouldReturnTrueForProfileOwner()
[all …]
/external/python/cpython3/Lib/test/
Dtest_subclassinit.py105 def __set_name__(self, owner, name): argument
106 self.owner = owner
113 self.assertIs(A.d.owner, A)
120 self.assertIs(ret.d.owner, ret)
124 def __set_name__(self, owner, name): argument
125 self.owner = owner
134 def __set_name__(self, owner, name): argument
176 def __set_name__(self, owner, name): argument
177 self.owner = owner
183 self.meta_owner = self.owner
[all …]

12345678910>>...331