Searched refs:add (Results 1 - 25 of 60) sorted by relevance

123

/system/core/libutils/tests/
H A DVector_test.cpp44 vector.add(1);
45 vector.add(2);
46 vector.add(3);
55 // add an element to the first vector
56 vector.add(4);
62 // add an element to the copy
63 other.add(5);
H A DBasicHashtable_test.cpp122 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, function in namespace:android
124 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value));
219 index = add(h, 8, 1);
244 index = add(h, int(i), int(i * 10));
277 add(h, K, int(i));
322 add(h, 0, 0);
323 add(h, 1, 0);
334 add(h, ComplexKey(0), ComplexValue(0));
335 add(h, ComplexKey(1), ComplexValue(0));
349 add(
[all...]
/system/netd/server/
H A DNatController.cpp154 // add this if we are the first added nat
203 ALOGE("failed to add tethering rule for iif=%s oif=%s", intIface, extIface);
227 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) { argument
229 /* We only ever add tethering quota rules so that they stick. */
230 if (!add) {
252 if (runCmd(ARRAY_SIZE(cmd2b), cmd2b) && add) {
277 if (runCmd(ARRAY_SIZE(cmd3b), cmd3b) && add) {
287 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) { argument
290 add ? "-A" : "-D",
305 if (runCmd(ARRAY_SIZE(cmd1), cmd1) && add) {
[all...]
H A DUidRanges.h33 void add(const UidRanges& other);
H A DNatController.h49 int setTetherCountingRules(bool add, const char *intIface, const char *extIface);
H A DRouteController.cpp67 // it upstream, we'll remove this and rely on the kernel header values. For now, add a static assert
429 Permission permission, bool add) {
440 if (execIptables(V4V6, "-t", "mangle", add ? "-A" : "-D", "INPUT", "-i", interface, "-j",
453 WARN_UNUSED_RESULT int modifyVpnOutputToLocalRule(const char* vpnInterface, bool add) { argument
454 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OUTPUT_TO_LOCAL,
465 bool secure, bool add) {
483 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue,
493 bool add) {
505 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue,
518 uid_t uidEnd, bool add) {
428 modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, bool add) argument
464 modifyVpnUidRangeRule(uint32_t table, uid_t uidStart, uid_t uidEnd, bool secure, bool add) argument
492 modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, bool add) argument
516 modifyExplicitNetworkRule(unsigned netId, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
539 modifyOutputInterfaceRule(const char* interface, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
557 modifyImplicitNetworkRule(unsigned netId, uint32_t table, Permission permission, bool add) argument
672 modifyLocalNetwork(unsigned netId, const char* interface, bool add) argument
680 modifyPhysicalNetwork(unsigned netId, const char* interface, Permission permission, bool add) argument
701 modifyVirtualNetwork(unsigned netId, const char* interface, const UidRanges& uidRanges, bool secure, bool add, bool modifyNonUidBasedRules) argument
[all...]
H A DNetworkController.h99 const char* nexthop, bool add, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
100 int modifyFallthroughLocked(unsigned vpnNetId, bool add) WARN_UNUSED_RESULT;
H A DVirtualNetwork.cpp47 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId);
51 mUidRanges.add(uidRanges);
77 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId);
/system/core/libpixelflinger/arch-arm64/
H A Dt32cb16blend.S60 add w7, w7, w7, lsr #7 // sA + (sA >> 7)
73 add w16, w6, w16, lsr #8
84 add w6, w16, w6, lsr #8
95 add w16, w6, w16, lsr #8
109 add w16, w6, w16, lsr #8
121 add w6, w16, w6, lsr #(5+8)
132 add w16, w6, w16, lsr #8
179 add x0, x0, #4
196 add x0, x0, #4
H A Dcol32cb16blend.S53 add w5, w5, w5, lsr #7 // add in top bit
/system/core/libpixelflinger/
H A Dt32cb16blend.S48 add r7, r7, r7, lsr #7 // sA + (sA >> 7)
60 add lr, r6, lr, lsr #8
70 add r6, lr, r6, lsr #(5+8)
80 add lr, r6, lr, lsr #8
93 add lr, r6, lr, lsr #8
104 add r6, lr, r6, lsr #(5+8)
114 add lr, r6, lr, lsr #8
166 add r0, r0, #4
186 add r0, r0, #4
H A Drotate90CW_4x4_16v6.S37 add r14, r3, r3
38 add r12, r2, r2
H A Dcol32cb16blend.S44 add r5, r5, r5, lsr #7 // add in top bit
/system/extras/verity/
H A DKeystoreSigner.java75 v.add(algorithmIdentifier);
76 v.add(keyMaterial);
102 keyBag.add(k);
111 v.add(formatVersion);
112 v.add(new DERSequence(keyBag));
118 v.add(formatVersion);
119 v.add(new DERSequence(keyBag));
120 v.add(signature);
136 keyBag.add((ASN1Encodable) e.nextElement());
H A DBootSignature.java122 attrs.add(target);
123 attrs.add(length);
180 v.add(formatVersion);
181 v.add(certificate);
182 v.add(algorithmIdentifier);
183 v.add(getAuthenticatedAttributes());
184 v.add(signature);
/system/core/libcutils/arch-arm64/
H A Dandroid_memset.S88 add dst, dst, tmp1
100 add dst, dst, count
130 add dst, dst, tmp2
145 add dst, dst, #16
160 add dst, dst, tmp2
197 add dst, dst, #64
200 add dst, dst, tmp2
205 add dst, dst, zva_len_x
/system/core/libcutils/arch-x86/
H A Dsse2-memset32-atom.S102 add $(TABLE - .), %ebx; \
105 add (%ebx,%ecx,4), %ebx; \
217 add $1, %edx
221 add $1, %edx
225 add $1, %edx
242 add $16, %edx
244 add %eax, %ecx
252 add %ecx, %edx
264 add $_GLOBAL_OFFSET_TABLE_, %ebx
282 add
[all...]
/system/core/include/utils/
H A DVectorImpl.h75 /*! add/insert/replace items */
81 ssize_t add();
82 ssize_t add(const void* item);
146 //! add an item in the right place (or replaces it if there is one)
147 ssize_t add(const void* item);
164 ssize_t add();
H A DKeyedVector.h82 * add/insert/replace items
85 ssize_t add(const KEY& key, const VALUE& item);
176 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) {
177 return mVector.add( key_value_pair_t<KEY,VALUE>(key, value) );
184 return mVector.add(pair);
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DVectorImpl.h73 /*! add/insert/replace items */
79 ssize_t add();
80 ssize_t add(const void* item);
149 //! add an item in the right place (or replaces it if there is one)
150 ssize_t add(const void* item);
177 ssize_t add();
H A DVector.h121 * add/insert/replace items
135 inline ssize_t add();
137 ssize_t add(const TYPE& item);
276 ssize_t Vector<TYPE>::add(const TYPE& item) { function in class:android::tinyutils::Vector
277 return VectorImpl::add(&item);
301 ssize_t Vector<TYPE>::add() { function in class:android::tinyutils::Vector
302 return VectorImpl::add();
H A DKeyedVector.h77 * add/insert/replace items
80 ssize_t add(const KEY& key, const VALUE& item);
154 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) { function in class:android::tinyutils::KeyedVector
155 return mVector.add( key_value_pair_t<KEY,VALUE>(key, value) );
162 return mVector.add(pair);
/system/media/camera/docs/
H A DCaptureResultTest.mako28 resultKeys.add(CaptureResult.${jkey_identifier(entry.name)});
/system/core/libutils/
H A Dmisc.cpp68 gSyspropList->add(info);
/system/core/logd/
H A DLogStatistics.h54 void add(unsigned short size);
93 void add(unsigned short size, pid_t pid);
126 void add(unsigned short size, uid_t uid, pid_t pid);
166 void add(unsigned short size, log_id_t log_id, uid_t uid, pid_t pid);

Completed in 343 milliseconds

123