Searched defs:add (Results 1 - 19 of 19) sorted by relevance

/system/netd/server/
H A DUidRanges.cpp74 void UidRanges::add(const UidRanges& other) { function in class:UidRanges
H A DNatController.cpp154 // add this if we are the first added nat
221 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) { argument
223 /* We only ever add tethering quota rules so that they stick. */
224 if (!add) {
247 if (runCmd(ARRAY_SIZE(cmd2b), cmd2b) && add) {
273 if (runCmd(ARRAY_SIZE(cmd3b), cmd3b) && add) {
283 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) { argument
287 add ? "-A" : "-D",
302 if (runCmd(ARRAY_SIZE(cmd1), cmd1) && add) {
309 add
[all...]
H A DNetworkController.cpp68 Permission permission, bool add) WARN_UNUSED_RESULT;
77 bool add) WARN_UNUSED_RESULT;
91 Permission permission, bool add) {
92 if (add) {
96 ALOGE("failed to add fallthrough to %s for VPN netId %u", physicalInterface.c_str(),
123 Permission permission, bool add) {
126 if (int ret = modifyFallthrough(entry.first, physicalInterface, permission, add)) {
439 ALOGE("cannot add users to non-virtual network with netId %u", netId);
551 const char* nexthop, bool add, bool legacy, uid_t uid) {
579 return add
89 modifyFallthrough(unsigned vpnNetId, const std::string& physicalInterface, Permission permission, bool add) argument
122 modifyFallthrough(const std::string& physicalInterface, Permission permission, bool add) argument
550 modifyRoute(unsigned netId, const char* interface, const char* destination, const char* nexthop, bool add, bool legacy, uid_t uid) argument
583 modifyFallthroughLocked(unsigned vpnNetId, bool add) argument
[all...]
H A DCommandListener.cpp539 // ipfwd add wlan0 dummy0
542 if (!strcmp(argv[1], "add")) {
637 if (!strcmp(argv[2], "add")) {
1230 if (!strcmp(argv[1], "add")) {
1237 cli->sendMsg(ResponseCode::OperationFailed, "Failed to add interface", false);
1567 // network route [legacy <uid>] add <netId> <interface> <destination> [nexthop]
1585 bool add = false; local
1586 if (!strcmp(argv[nextArg], "add")) {
1587 add = true;
1603 if (add) {
[all...]
H A DRouteController.cpp77 // it upstream, we'll remove this and rely on the kernel header values. For now, add a static assert
440 Permission permission, bool add) {
451 if (execIptables(V4V6, "-t", "mangle", add ? "-A" : "-D", "INPUT", "-i", interface, "-j",
464 WARN_UNUSED_RESULT int modifyVpnOutputToLocalRule(const char* vpnInterface, bool add) { argument
465 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OUTPUT_TO_LOCAL,
476 bool secure, bool add) {
494 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue,
504 bool add) {
516 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue,
529 uid_t uidEnd, bool add) {
439 modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, bool add) argument
475 modifyVpnUidRangeRule(uint32_t table, uid_t uidStart, uid_t uidEnd, bool secure, bool add) argument
503 modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, bool add) argument
527 modifyExplicitNetworkRule(unsigned netId, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
550 modifyOutputInterfaceRules(const char* interface, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
578 modifyImplicitNetworkRule(unsigned netId, uint32_t table, Permission permission, bool add) argument
728 modifyLocalNetwork(unsigned netId, const char* interface, bool add) argument
736 modifyPhysicalNetwork(unsigned netId, const char* interface, Permission permission, bool add) argument
757 modifyVirtualNetwork(unsigned netId, const char* interface, const UidRanges& uidRanges, bool secure, bool add, bool modifyNonUidBasedRules) argument
[all...]
/system/core/include/utils/
H A DBasicHashtable.h70 size_t add(hash_t hash, const void* __restrict__ entry);
131 // Returns the increment to add to a bucket index to seek to the next bucket
168 * We do this because it means that operations like add() can't fail.
291 * entry: The entry to add.
293 inline size_t add(hash_t hash, const TEntry& entry) { function in class:android::BasicHashtable
294 return BasicHashtableImpl::add(hash, &entry);
332 /* Determines whether there is room to add another entry without rehashing.
333 * When this returns true, a subsequent add() operation is guaranteed to
H A DSortedVector.h106 //! add an item in the right place (and replace the one that is there)
107 ssize_t add(const TYPE& item);
206 ssize_t SortedVector<TYPE>::add(const TYPE& item) { function in class:android::SortedVector
207 return SortedVectorImpl::add(&item);
H A DVector.h136 * add/insert/replace items
150 inline ssize_t add();
152 ssize_t add(const TYPE& item);
182 * these inlines add some level of compatibility with STL. eventually
337 ssize_t Vector<TYPE>::add(const TYPE& item) { function in class:android::Vector
338 return VectorImpl::add(&item);
362 ssize_t Vector<TYPE>::add() { function in class:android::Vector
363 return VectorImpl::add();
/system/core/libutils/
H A DBasicHashtable.cpp152 size_t BasicHashtableImpl::add(hash_t hash, const void* entry) { function in class:android::BasicHashtableImpl
H A DVectorImpl.cpp240 ssize_t VectorImpl::add() function in class:android::VectorImpl
242 return add(0);
245 ssize_t VectorImpl::add(const void* item) function in class:android::VectorImpl
614 ssize_t SortedVectorImpl::add(const void* item)
634 ssize_t err = add( reinterpret_cast<const char*>(buffer) + i*is );
/system/core/libutils/tests/
H A DBasicHashtable_test.cpp127 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, function in namespace:android
129 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value));
224 index = add(h, 8, 1);
249 index = add(h, int(i), int(i * 10));
282 add(h, K, int(i));
327 add(h, 0, 0);
328 add(h, 1, 0);
339 add(h, ComplexKey(0), ComplexValue(0));
340 add(h, ComplexKey(1), ComplexValue(0));
354 add(
[all...]
/system/core/logd/
H A DLogStatistics.cpp66 void LogStatistics::add(LogBufferElement *e) { function in class:LogStatistics
79 uidTable[log_id].add(e->getUid(), e);
85 pidTable.add(e->getPid(), e);
86 tidTable.add(e->getTid(), e);
90 tagTable.add(tag, e);
522 return pidTable.add(pid)->second.getUid();
527 const char *name = pidTable.add(pid)->second.getName();
H A DLogStatistics.h79 inline iterator add(TKey key, LogBufferElement *e) { function in class:LogHashtable
84 it->second.add(e);
89 inline iterator add(TKey key) { function in class:LogHashtable
94 it->second.add(key);
126 inline void add(LogBufferElement *e) { size += e->getMsgLen(); } function in struct:EntryBase
138 inline void add(LogBufferElement *e) { function in struct:EntryBaseDropped
140 EntryBase::add(e);
190 inline void add(pid_t p) { function in struct:PidEntry
203 inline void add(LogBufferElement *e) { function in struct:PidEntry
210 add(
242 inline void add(pid_t t) { function in struct:TidEntry
255 inline void add(LogBufferElement *e) { function in struct:TidEntry
281 inline void add(LogBufferElement *e) { function in struct:TagEntry
[all...]
H A DLogBuffer.cpp157 stats.add(elem);
213 stats.add(elem);
292 void add(LogBufferElement *e) { function in class:LogBufferElementLast
451 last.add(e);
495 last.add(e);
/system/bt/stack/btm/
H A Dbtm_ble_privacy.c57 ** Description add target address into resolving pending operation queue
60 ** add_entry: TRUE for add entry, FALSE for remove entry
193 void btm_ble_update_resolving_list(BD_ADDR pseudo_bda, BOOLEAN add) argument
199 if (add)
269 ** add resolving list entry
748 ** Description This function add a device which is using RPA into white list
770 /* only add RPA enabled device into resolving list */
/system/bt/bta/gatt/
H A Dbta_gattc_utils.c682 BOOLEAN add, BOOLEAN is_listen)
696 if (add)
714 if (!add)
681 bta_gattc_mark_bg_conn(tBTA_GATTC_IF client_if, BD_ADDR_PTR remote_bda_ptr, BOOLEAN add, BOOLEAN is_listen) argument
/system/core/libpixelflinger/codeflinger/
H A Dtexturing.cpp1021 add(fragment, incoming, texel, component);
1225 void GGLAssembler::add( function in class:android::GGLAssembler
/system/bt/btif/src/
H A Dbtif_storage.c91 /* This is a local property to add a device found */
180 bt_status_t btif_in_fetch_bonded_ble_device(const char *remote_bd_addr,int add,
484 static bt_status_t btif_in_fetch_bonded_devices(btif_bonded_devices_t *p_bonded_devices, int add) argument
508 if(add)
540 if(!(btif_in_fetch_bonded_ble_device(name, add, p_bonded_devices)) && (!bt_linkkey_file_found))
1197 bt_status_t btif_in_fetch_bonded_ble_device(const char *remote_bd_addr, int add, btif_bonded_devices_t *p_bonded_devices) argument
1224 bd_addr, addr_type, add, &device_added, &key_found);
1227 bd_addr, addr_type, add, &device_added, &key_found);
1230 bd_addr, addr_type, add, &device_added, &key_found);
1233 bd_addr, addr_type, add,
[all...]
/system/bt/stack/gatt/
H A Dgatt_utils.c494 ** Description add an service to the list in ascending
497 ** Returns BOOLEAN TRUE-if add is successful
600 ** Description add an service handle range to the list in decending
603 ** Returns BOOLEAN TRUE-if add is successful
1467 ** Description This function add a SDP record for a GATT primary service
2397 ** Description add/remove device from the back ground connection device list
2551 ** Description add/remove device from the back ground connection device list or
2686 ** Description This function add or remove a device for background connection
2690 ** add: add pee
2696 gatt_update_auto_connect_dev(tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEAN is_initator) argument
[all...]

Completed in 2620 milliseconds