Searched refs:Key (Results 1 - 21 of 21) sorted by relevance

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.h35 template<class Key = std::string, class Hash = std::hash_map<Key, double> >
45 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) {
48 void operator=(const SparseWeightVector<Key, Hash> &other) {
51 void CopyFrom(const SparseWeightVector<Key, Hash> &other) {
86 bool GetElementMinBound(const Key &fname, double *val) const {
89 bool GetElementMaxBound(const Key &fname, double *val) const {
92 void SetElementMinBound(const Key &fname, const double bound) {
95 void SetElementMaxBound(const Key &fname, const double bound) {
99 double GetElement(const Key
[all...]
H A Dsparse_weight_vector.cpp34 template<class Key, class Hash>
35 bool SparseWeightVector<Key, Hash>::IsValid() const {
47 template<class Key, class Hash>
48 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdate(
50 const SparseWeightVector<Key, Hash> &w1,
61 template<class Key, class Hash>
62 void SparseWeightVector<Key, Hash>::AdditiveSquaredWeightUpdate(
64 const SparseWeightVector<Key, Hash> &w1,
76 template<class Key, class Hash>
77 void SparseWeightVector<Key, Has
[all...]
H A Dstochastic_linear_ranker.cpp24 template<class Key, class Hash>
25 void StochasticLinearRanker<Key, Hash>::UpdateSubGradient(
26 const SparseWeightVector<Key, Hash> &positive,
27 const SparseWeightVector<Key, Hash> &negative,
32 SparseWeightVector<Key, Hash> gradient;
61 template<class Key, class Hash>
62 int StochasticLinearRanker<Key, Hash>::UpdateClassifier(
63 const SparseWeightVector<Key, Hash> &positive,
64 const SparseWeightVector<Key, Hash> &negative) {
67 SparseWeightVector<Key, Has
[all...]
H A 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) {
172 void SaveWeights(SparseWeightVector<Key, Hash> *model) {
176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) {
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, Has
[all...]
/frameworks/base/include/androidfw/
H A DKeyLayoutMap.h77 struct Key { struct in class:android::KeyLayoutMap
82 KeyedVector<int32_t, Key> mKeysByScanCode;
83 KeyedVector<int32_t, Key> mKeysByUsageCode;
88 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
H A DKeyCharacterMap.h156 struct Key { struct in class:android::KeyCharacterMap
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;
H A DInputTransport.h56 struct Key { struct in union:android::InputMessage::Body
70 return sizeof(Key);
/frameworks/compile/libbcc/runtime/
H A 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),
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsCollection.java72 private HashMap<Key, NetworkStatsHistory> mStats = Maps.newHashMap();
147 for (Map.Entry<Key, NetworkStatsHistory> entry : mStats.entrySet()) {
148 final Key key = entry.getKey();
172 for (Map.Entry<Key, NetworkStatsHistory> mapEntry : mStats.entrySet()) {
173 final Key key = mapEntry.getKey();
210 private void recordHistory(Key key, NetworkStatsHistory history) {
227 for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) {
234 final Key key = new Key(ident, uid, set, tag);
279 final Key ke
497 private static class Key implements Comparable<Key> { class in class:NetworkStatsCollection
505 public Key(NetworkIdentitySet ident, int uid, int set, int tag) { method in class:NetworkStatsCollection.Key
[all...]
/frameworks/base/media/mca/filterfw/native/base/
H A Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) {
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) {
/frameworks/base/media/mca/filterpacks/native/base/
H A Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) {
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) {
/frameworks/compile/libbcc/lib/ExecutionEngine/
H A DRuntime.c66 const RuntimeFunction Key = { Name, NULL }; local
68 bsearch(&Key,
/frameworks/base/core/java/com/android/internal/widget/
H A 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,
93 // Log.w(TAG, "Key code for " + key.label + " is not latin-1");
164 for (Key shiftKey : mShiftKeys) {
219 static class LatinKey extends Keyboard.Key {
/frameworks/base/libs/androidfw/
H A DKeyCharacterMap.cpp96 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i)));
102 Key* key = mKeys.editValueAt(i);
175 Key* key = overlay->mKeys.valueAt(i);
179 map->mKeys.editValueAt(oldIndex) = new Key(*key);
181 map->mKeys.add(keyCode, new Key(*key));
207 const Key* key;
219 const Key* key;
231 const Key* key;
248 const Key* key;
269 const Key* ke
634 KeyCharacterMap::Key::Key() : function in class:android::KeyCharacterMap::Key
638 KeyCharacterMap::Key::Key(const Key& other) : function in class:android::KeyCharacterMap::Key
[all...]
H A DKeyLayoutMap.cpp85 const Key* key = getKey(scanCode, usageCode);
105 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const {
217 KeyedVector<int32_t, Key>& map =
258 Key key;
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java49 * &lt;Key android:keyLabel="A" /&gt;
67 private static final String TAG_KEY = "Key";
99 /** Key instance for the shift key, if present */
100 private Key[] mShiftKeys = { null, null };
102 /** Key index for the shift key, if present */
121 private List<Key> mKeys;
124 private List<Key> mModifierKeys;
170 ArrayList<Key> mKeys = new ArrayList<Key>();
230 public static class Key { class in class:Keyboard
313 public Key(Row parent) { method in class:Keyboard.Key
330 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { method in class:Keyboard.Key
[all...]
H A 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>();
465 List<Key> keys = mKeyboard.getKeys();
466 mKeys = keys.toArray(new Key[keys.size()]);
606 final Key[] keys = mKeys;
611 Key key = keys[i];
662 final Key[] key
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DPendingIntentRecord.java36 final Key key;
44 final static class Key { class in class:PendingIntentRecord
60 Key(int _t, String _p, ActivityRecord _a, String _w, method in class:PendingIntentRecord.Key
101 Key other = (Key)otherObj;
155 return "Key{" + typeName() + " pkg=" + packageName
177 PendingIntentRecord(ActivityManagerService _owner, Key _k, int _u) {
H A DActivityManagerService.java469 final HashMap<PendingIntentRecord.Key, WeakReference<PendingIntentRecord>> mIntentSenderRecords
470 = new HashMap<PendingIntentRecord.Key, WeakReference<PendingIntentRecord>>();
4456 PendingIntentRecord.Key key = new PendingIntentRecord.Key(
/frameworks/base/core/java/android/net/
H A DLinkCapabilities.java54 public static final class Key { class in class:LinkCapabilities
56 private Key() {} method in class:LinkCapabilities.Key
/frameworks/base/services/java/com/android/server/
H A DBackupManagerService.java100 import java.security.Key;
1088 Key checksum = buildCharArrayKey(mkAsChar, salt, rounds);

Completed in 408 milliseconds