/external/iproute2/tc/ |
p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) 38 tkey->off = 12; 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 44 tkey->off = 16; 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 54 tkey->off = 1; 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 60 tkey->off = 0; 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 66 tkey->off = 9 [all...] |
m_pedit.c | 62 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) 122 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) 129 if (tkey->off % 4) { 134 sel->keys[hwm].val = tkey->val; 135 sel->keys[hwm].mask = tkey->mask; 136 sel->keys[hwm].off = tkey->off; 137 sel->keys[hwm].at = tkey->at; 138 sel->keys[hwm].offmask = tkey->offmask; 139 sel->keys[hwm].shift = tkey->shift; 146 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) 417 struct tc_pedit_key tkey; local [all...] |
m_pedit.h | 46 int (*parse_peopt)(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 50 extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 51 extern int pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 52 extern int pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 53 extern int pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 54 extern int pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 56 extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); 57 extern int parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey);
|
p_tcp.c | 27 parse_tcp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)
|
p_udp.c | 27 parse_udp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)
|
p_icmp.c | 28 parse_icmp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)
|
/system/core/include/utils/ |
LruCache.h | 35 template <typename TKey, typename TValue> 44 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener); 46 const TValue& get(const TKey& key); 47 bool put(const TKey& key, const TValue& value); 48 bool remove(const TKey& key); 55 Iterator(const LruCache<TKey, TValue>& cache): mCache(cache), mIndex(-1) { 71 const TKey& key() const { 75 const LruCache<TKey, TValue>& mCache; 83 TKey key; 88 Entry(TKey key_, TValue value_) : key(key_), value(value_), parent(NULL), child(NULL) [all...] |
BasicHashtable.h | 156 * TKey: The key type. 159 * TKey must support the following contract: 160 * bool operator==(const TKey& other) const; // return true if equal 161 * bool operator!=(const TKey& other) const; // return true if unequal 164 * const TKey& getKey() const; // get the key from the entry 170 template <typename TKey, typename TEntry> 197 inline BasicHashtable<TKey, TEntry>& operator =(const BasicHashtable<TKey, TEntry> & other) { 280 inline ssize_t find(ssize_t index, hash_t hash, const TKey& key) const { 361 template <typename TKey, typename TEntry [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { 67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { 78 public static TValue get<TKey, TValue>(SortedList<TKey, TValue> map, TKey key) { 96 public static void put<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key, TValue value) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) 68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) 80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key ) 99 public static void put<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key, TValue value [all...] |
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
Antlr.Runtime.Collections.pas | 51 IHashList<TKey, TValue> = interface(IDictionary<TKey, TValue>) 79 THashList<TKey, TValue> = class(TANTLRObject, IHashList<TKey, TValue>) 82 TPairEnumerator = class(TEnumerator<TPair<TKey, TValue>>) 84 FHashList: THashList<TKey, TValue>; 85 FOrderList: IList<TKey>; 88 FPair: TPair<TKey, TValue>; 89 function GetCurrent: TPair<TKey, TValue>; 91 function DoGetCurrent: TPair<TKey, TValue>; override [all...] |
Antlr.Runtime.Tools.pas | 186 IDictionary<TKey,TValue> = interface(IANTLRInterface) 189 function GetItem(const Key: TKey): TValue; 190 procedure SetItem(const Key: TKey; const Value: TValue); 194 procedure Add(const Key: TKey; const Value: TValue); 195 procedure Remove(const Key: TKey); 198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; 199 procedure AddOrSetValue(const Key: TKey; const Value: TValue); 200 function ContainsKey(const Key: TKey): Boolean; 202 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>; 205 property Items[const Key: TKey]: TValue read GetItem write SetItem; default [all...] |
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
SimpleLruResourcePool.java | 30 public abstract class SimpleLruResourcePool<TKey, TValue> implements LruResourcePool<TKey, TValue> { 32 private final LruPool<TKey, TValue> mLruPool; 44 public Resource<TValue> acquire(TKey key) { 62 protected abstract TValue create(TKey key); 68 protected TValue recycle(TKey key, TValue value) { 75 private void release(TKey key, TValue value) { 84 private static final class SynchronizedResource<TKey, TValue> implements Resource<TValue> { 86 private final SimpleLruResourcePool<TKey, TValue> mPool; 89 private TKey mKey [all...] |
LruPool.java | 42 * {@link #acquire(TKey)} is currently linear time, pending a better 45 * TODO: Build a constant time acquire(TKey) method implementation. 48 public class LruPool<TKey, TValue> { 49 public static class Configuration<TKey, TValue> { 59 void entryEvicted(TKey key, TValue value) { } 69 TValue create(TKey key) { 80 int sizeOf(TKey key, TValue value) { 92 private final LinkedList<TKey> mLruKeyList; 98 private final HashMap<TKey, Queue<TValue>> mValuePool; 99 private final Configuration<TKey, TValue> mConfiguration [all...] |
LruResourcePool.java | 26 public interface LruResourcePool<TKey, TValue> { 33 public Resource<TValue> acquire(TKey key);
|
/frameworks/base/libs/hwui/utils/ |
TinyHashMap.h | 28 template <typename TKey, typename TValue> 31 typedef key_value_pair_t<TKey, TValue> TEntry; 36 void put(TKey key, TValue value) { 51 bool get(TKey key, TValue& outValue) { 64 BasicHashtable<TKey, TEntry> mTable;
|
/packages/apps/Camera2/src/com/android/camera/device/ |
SingleDeviceShutdownListener.java | 22 public interface SingleDeviceShutdownListener<TKey> { 27 public void onShutdown(TKey key);
|
SingleDeviceLifecycle.java | 26 public interface SingleDeviceLifecycle<TDevice, TKey> extends SafeCloseable { 30 public TKey getId();
|
SingleDeviceStateMachine.java | 51 public class SingleDeviceStateMachine<TDevice, TKey> implements SingleDeviceCloseListener, 72 private final SingleDeviceShutdownListener<TKey> mShutdownListener; 73 private final TKey mDeviceKey; 99 TKey deviceKey, SingleDeviceShutdownListener<TKey> deviceShutdownListener,
|
/art/runtime/base/ |
variant_map.h | 180 template <typename Base, template <typename TV> class TKey> friend struct VariantMap; 208 template <typename Base, template <typename TV> class TKey> 212 using Key = TKey<TValue>; 217 const TValue* Get(const TKey<TValue>& key) const { 224 TValue* Get(const TKey<TValue>& key) { 231 TValue GetOrDefault(const TKey<TValue>& key) const { 240 ScopedRemove(VariantMap& map, const TKey<TValue>& key) : map_(map), key_(key) {} 246 const TKey<TValue>& key_; 253 TValue ReleaseOrDefault(const TKey<TValue>& key) { 267 bool Exists(const TKey<TValue>& key) const [all...] |
/system/core/libutils/tests/ |
BasicHashtable_test.cpp | 111 template <typename TKey, typename TEntry> 112 static void cookieAt(const BasicHashtable<TKey, TEntry>& h, size_t index, 115 *collision = cookie & BasicHashtable<TKey, TEntry>::Bucket::COLLISION; 116 *present = cookie & BasicHashtable<TKey, TEntry>::Bucket::PRESENT; 117 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK; 120 template <typename TKey, typename TEntry> 121 static const void* getBuckets(const BasicHashtable<TKey, TEntry>& h) { 126 template <typename TKey, typename TValue> 127 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h [all...] |
/system/core/logd/ |
LogStatistics.h | 33 template <typename TKey, typename TEntry> 36 std::unordered_map<TKey, TEntry> map; 40 typedef typename std::unordered_map<TKey, TEntry>::iterator iterator; 79 inline iterator add(TKey key, LogBufferElement *e) { 89 inline iterator add(TKey key) { 99 void subtract(TKey key, LogBufferElement *e) { 106 inline void drop(TKey key, LogBufferElement *e) {
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
SubActivityScreen.java | 51 res.putExtra("tkey", "tval"); 96 res.putExtra("tkey", "tval"); 137 } else if (!("tval".equals(data.getStringExtra("tkey")))) {
|
/external/icu/icu4c/source/layout/ |
KernTable.cpp | 228 le_uint32 tkey = SWAP_KEY(tp); 231 fprintf(stdout, " %.3d (%0.8x)\n", ((char*)tp - (char*)pairs)/KERN_PAIRINFO_SIZE, tkey); 233 if (tkey <= key && LE_SUCCESS(success)) { 234 if (tkey == key) {
|
/external/llvm/test/CodeGen/X86/ |
coalescer-cross.ll | 14 %struct.Node = type { %struct.TValue, %struct.TKey } 15 %struct.TKey = type { %1 }
|