Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 25 of 106) sorted by relevance

12345

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
Dsparse_weight_vector.h35 template<class Key = std::string, class Hash = std::hash_map<Key, double> >
45 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) { in SparseWeightVector() argument
48 void operator=(const SparseWeightVector<Key, Hash> &other) {
51 void CopyFrom(const SparseWeightVector<Key, Hash> &other) { in CopyFrom() argument
86 bool GetElementMinBound(const Key &fname, double *val) const { in GetElementMinBound()
89 bool GetElementMaxBound(const Key &fname, double *val) const { in GetElementMaxBound()
92 void SetElementMinBound(const Key &fname, const double bound) { in SetElementMinBound()
95 void SetElementMaxBound(const Key &fname, const double bound) { in SetElementMaxBound()
99 double GetElement(const Key &fname) const { in GetElement()
104 void SetElement(const Key &fname, const double val) { in SetElement()
[all …]
Dsparse_weight_vector.cpp34 template<class Key, class Hash>
35 bool SparseWeightVector<Key, Hash>::IsValid() const { in IsValid()
47 template<class Key, class Hash>
48 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdate( in AdditiveWeightUpdate()
50 const SparseWeightVector<Key, Hash> &w1, in AdditiveWeightUpdate() argument
61 template<class Key, class Hash>
62 void SparseWeightVector<Key, Hash>::AdditiveSquaredWeightUpdate( in AdditiveSquaredWeightUpdate()
64 const SparseWeightVector<Key, Hash> &w1, in AdditiveSquaredWeightUpdate() argument
76 template<class Key, class Hash>
77 void SparseWeightVector<Key, Hash>::AdditiveInvSqrtWeightUpdate( in AdditiveInvSqrtWeightUpdate()
[all …]
Dstochastic_linear_ranker.cpp24 template<class Key, class Hash>
25 void StochasticLinearRanker<Key, Hash>::UpdateSubGradient( in UpdateSubGradient()
26 const SparseWeightVector<Key, Hash> &positive, in UpdateSubGradient() argument
27 const SparseWeightVector<Key, Hash> &negative, in UpdateSubGradient()
32 SparseWeightVector<Key, Hash> gradient; in UpdateSubGradient()
61 template<class Key, class Hash>
62 int StochasticLinearRanker<Key, Hash>::UpdateClassifier( in UpdateClassifier()
63 const SparseWeightVector<Key, Hash> &positive, in UpdateClassifier() argument
64 const SparseWeightVector<Key, Hash> &negative) { in UpdateClassifier()
67 SparseWeightVector<Key, Hash> weight_backup; in UpdateClassifier()
Dstochastic_linear_ranker.h40 template<class Key = std::string, class Hash = std::hash_map<std::string, double> >
168 void LoadWeights(const SparseWeightVector<Key, Hash> &model) { in LoadWeights() argument
172 void SaveWeights(SparseWeightVector<Key, Hash> *model) { in SaveWeights() argument
176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) { in ScoreSample() argument
200 int UpdateClassifier(const SparseWeightVector<Key, Hash> &positive,
201 const SparseWeightVector<Key, Hash> &negative);
204 SparseWeightVector<Key, Hash> weight_;
220 SparseWeightVector<Key, Hash> current_negative_;
234 void UpdateSubGradient(const SparseWeightVector<Key, Hash> &positive,
235 const SparseWeightVector<Key, Hash> &negative,
/frameworks/base/services/java/com/android/server/net/
DNetworkStatsCollection.java72 private HashMap<Key, NetworkStatsHistory> mStats = Maps.newHashMap();
147 for (Map.Entry<Key, NetworkStatsHistory> entry : mStats.entrySet()) { in getHistory()
148 final Key key = entry.getKey(); in getHistory()
172 for (Map.Entry<Key, NetworkStatsHistory> mapEntry : mStats.entrySet()) { in getSummary()
173 final Key key = mapEntry.getKey(); in getSummary()
210 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory()
227 for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) { in recordCollection()
234 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory()
279 final Key key = new Key(ident, uid, set, tag); in read()
294 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap(); in write()
[all …]
/frameworks/compile/libbcc/runtime/
DMakefile114 $(call Set,Tmp.Key,$(1))
115 $(call Set,Tmp.Name,$($(Tmp.Key).Name))
116 $(call Set,Tmp.Configs,$($(Tmp.Key).Configs))
138 $(if $(call IsDefined,$(Tmp.Key).UniversalArchs),\
140 $(or $($(Tmp.Key).UniversalArchs.$(Tmp.Config)),\
141 $($(Tmp.Key).UniversalArchs))),\
142 $(call VarOrDefault,$(Tmp.Key).Arch.$(Tmp.Config),$($(Tmp.Key).Arch))))
167 $(call GetCNAVar,FUNCTIONS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch))))
169 $(call GetCNAVar,OPTIMIZED,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch))))
171 $(call GetCNAVar,AR,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch))))
[all …]
/frameworks/base/include/androidfw/
DKeyCharacterMap.h156 struct Key { struct
157 Key();
158 Key(const Key& other);
159 ~Key();
209 status_t finishKey(Key* key);
216 KeyedVector<int32_t, Key*> mKeys;
225 bool getKey(int32_t keyCode, const Key** outKey) const;
227 const Key** outKey, const Behavior** outBehavior) const;
DKeyLayoutMap.h77 struct Key { struct
82 KeyedVector<int32_t, Key> mKeysByScanCode; argument
83 KeyedVector<int32_t, Key> mKeysByUsageCode;
88 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
DInputTransport.h56 struct Key { struct
70 return sizeof(Key); in size()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java100 private Key[] mShiftKeys = { null, null };
121 private List<Key> mKeys;
124 private List<Key> mModifierKeys;
170 ArrayList<Key> mKeys = new ArrayList<Key>();
230 public static class Key { class in Keyboard
313 public Key(Row parent) { in Key() method in Keyboard.Key
330 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() method in Keyboard.Key
530 mKeys = new ArrayList<Key>(); in Keyboard()
531 mModifierKeys = new ArrayList<Key>(); in Keyboard()
553 mKeys = new ArrayList<Key>(); in Keyboard()
[all …]
DKeyboardView.java30 import android.inputmethodservice.Keyboard.Key;
159 private Map<Key,View> mMiniKeyboardCache;
160 private Key[] mKeys;
209 private Key mInvalidatedKey;
368 mMiniKeyboardCache = new HashMap<Key,View>(); in KeyboardView()
465 List<Key> keys = mKeyboard.getKeys(); in setKeyboard()
466 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
606 final Key[] keys = mKeys; in computeProximityThreshold()
611 Key key = keys[i]; in computeProximityThreshold()
662 final Key[] keys = mKeys; in onBufferDraw()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboard.java46 private Key[] mShiftKeys = { null, null };
48 private Key mEnterKey;
49 private Key mF1Key;
50 private Key mSpaceKey;
88 protected Key createKeyFromXml(Resources res, Row parent, int x, int y, in createKeyFromXml()
164 for (Key shiftKey : mShiftKeys) { in setShiftLocked()
219 static class LatinKey extends Keyboard.Key {
/frameworks/base/libs/androidfw/
DKeyCharacterMap.cpp96 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); in KeyCharacterMap()
102 Key* key = mKeys.editValueAt(i); in ~KeyCharacterMap()
175 Key* key = overlay->mKeys.valueAt(i); in combine()
179 map->mKeys.editValueAt(oldIndex) = new Key(*key); in combine()
181 map->mKeys.add(keyCode, new Key(*key)); in combine()
207 const Key* key; in getDisplayLabel()
219 const Key* key; in getNumber()
231 const Key* key; in getCharacter()
248 const Key* key; in getFallbackAction()
269 const Key* key; in getMatch()
[all …]
DKeyLayoutMap.cpp85 const Key* key = getKey(scanCode, usageCode); in mapKey()
105 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { in getKey()
217 KeyedVector<int32_t, Key>& map = in parseKey()
258 Key key; in parseKey()
/frameworks/base/media/mca/filterpacks/native/base/
Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey()
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) { in InsertIfNotPresent()
/frameworks/base/media/mca/filterfw/native/base/
Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey()
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) { in InsertIfNotPresent()
/frameworks/compile/libbcc/lib/ExecutionEngine/
DRuntime.c66 const RuntimeFunction Key = { Name, NULL }; in FindRuntimeFunction() local
68 bsearch(&Key, in FindRuntimeFunction()
/frameworks/base/services/java/com/android/server/am/
DPendingIntentRecord.java36 final Key key;
44 final static class Key { class in PendingIntentRecord
60 Key(int _t, String _p, ActivityRecord _a, String _w, in Key() method in PendingIntentRecord.Key
101 Key other = (Key)otherObj; in equals()
177 PendingIntentRecord(ActivityManagerService _owner, Key _k, int _u) { in PendingIntentRecord()
/frameworks/base/core/java/android/net/
DLinkCapabilities.java54 public static final class Key { class in LinkCapabilities
56 private Key() {} in Key() method in LinkCapabilities.Key
/frameworks/base/docs/html/guide/topics/admin/
Dindex.jd14 <h4>Unifying Key Store Access in ICS</h4>
/frameworks/base/data/keyboards/
DAVRCP.kl15 # Key layout used for Bluetooth AVRCP support.
/frameworks/base/docs/html/guide/topics/location/
Dindex.jd104 Key. For information about how to get a Maps API Key, see <a
106 a Maps API Key</a>.</p>
/frameworks/base/docs/html/guide/google/gcm/
Dc2dm.jd50 <dt><strong>Simple API Key</strong></dt>
51Key from Google APIs console page. For more information, see <a href="gs.html">Getting Started</a…
/frameworks/base/docs/html/tools/sdk/
DRELEASENOTES.jd429 <p>For information about how to register for a Maps API Key, see
431 Obtaining a Maps API Key</a>.</p>
559 <p><strong>MapView API Key</strong></p>
564 service and receive a Maps API Key, which you then add to your MapView
568 active and Google Maps is actively enforcing the Maps API Key requirement.
569 For information about how to register for a Maps API Key, see
571 Obtaining a Maps API Key</a>.</p>
663 <p><strong>MapView API Key</strong></p>
667 the Google Maps service and receive a Maps API Key, which you then add to your
671 active and Google Maps is actively enforcing the Maps API Key requirement. For
[all …]
/frameworks/base/docs/html/sdk/
DRELEASENOTES.jd429 <p>For information about how to register for a Maps API Key, see
431 Obtaining a Maps API Key</a>.</p>
559 <p><strong>MapView API Key</strong></p>
564 service and receive a Maps API Key, which you then add to your MapView
568 active and Google Maps is actively enforcing the Maps API Key requirement.
569 For information about how to register for a Maps API Key, see
571 Obtaining a Maps API Key</a>.</p>
663 <p><strong>MapView API Key</strong></p>
667 the Google Maps service and receive a Maps API Key, which you then add to your
671 active and Google Maps is actively enforcing the Maps API Key requirement. For
[all …]

12345