/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/ |
H A D | StochasticLinearRanker.java | 77 * Get the rank score of the sample, a sample is a list of key, value pairs. 133 public boolean setModelParameter(String key, String value){ argument 134 boolean res = nativeSetParameterClassifier(key, value, mNativeClassifier); 191 private native boolean nativeSetParameterClassifier(String key, String value, argument
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BordeauxSessionManager.java | 82 public LearningUpdateCallback(String key) { argument 83 mKey = key; 100 // internal unique key that identifies the learning instance. 104 SessionKey key = new SessionKey(); 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); 106 return key; 109 public IBinder getSessionBinder(Class learnerClass, SessionKey key) { argument 110 if (mSessions.containsKey(key.value)) { 111 return mSessions.get(key.value).learner.getBinder(); 116 Session stored = mSessionStorage.getSession(key 155 saveSession(SessionKey key) argument [all...] |
H A D | BordeauxSessionStorage.java | 35 // unique key for the session 36 public static final String COLUMN_KEY = "key"; 49 " TEXT primary key, " + COLUMN_CLASS + " TEXT, " + 84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { argument 86 entry.put(COLUMN_KEY, key); 93 boolean saveSession(String key, Class learner, byte[] model) { argument 94 ContentValues content = createSessionEntry(key, learner, model); 115 BordeauxSessionManager.Session getSession(String key) { argument 118 COLUMN_KEY + "=\"" + key + "\"", null, null, null, null, null); 125 throw new RuntimeException("Unexpected duplication in session table for key [all...] |
H A D | Predictor.java | 134 public boolean setPredictorParameter(String key, String value) { argument 135 Log.i(TAG, "setParameter : " + key + ", " + value); 137 if (key.equals(SET_FEATURE)) { 142 } else if (key.equals(SET_PAIRED_FEATURES)) { 148 } else if (key.equals(USE_HISTORY)) { 152 Log.e(TAG,"Setting parameter " + key + " with " + value + " is not valid");
|
/frameworks/native/cmds/service/ |
H A D | service.cpp | 204 char* key = strtok_r(argv[optind], "=", &context1); local 208 if (key == NULL) break; 210 if (strcmp(key, "action") == 0) 214 else if (strcmp(key, "data") == 0) 218 else if (strcmp(key, "type") == 0) 222 else if (strcmp(key, "launchFlags") == 0) 226 else if (strcmp(key, "component") == 0) 230 else if (strcmp(key, "categories") == 0)
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | ConfigurationMap.java | 139 public WifiConfiguration getByConfigKeyForCurrentUser(String key) { argument 140 if (key == null) { 144 if (config.configKey().equals(key)) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
H A D | ConfigBuilder.java | 129 throw new IOException("Can't read non base64 encoded key"); 173 List<X509Certificate> clientChain, PrivateKey key) 183 if (key != null || clientChain != null) { 184 Log.w(TAG, "Client cert and/or key included with EAP-TTLS profile"); 189 config = buildTLSConfig(homeSP, clientChain, key); 194 if (key != null || clientChain != null || caCert != null) { 195 Log.i(TAG, "Client/CA cert and/or key included with " + 272 throw new IOException("No key and/or cert passed for EAP-TLS"); 172 buildConfig(HomeSP homeSP, X509Certificate caCert, List<X509Certificate> clientChain, PrivateKey key) argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | OMAConstructed.java | 113 public OMANode removeNode(String key, OMANode node) { argument 114 if (key.equals("?")) { 118 return mChildren.remove(key, node);
|
/frameworks/opt/net/wifi/tests/wifitests/jni/ |
H A D | wifi_hal_mock.cpp | 111 int HalMockJsonReader::get_int(const char* key, bool* error) { argument 112 if (!doc.HasMember(key)) { 114 ALOGE("get_int: can't find %s key", key); 117 const rapidjson::Value& element = doc[key]; 120 ALOGE("get_int: can't find the 'value' sub-key for %s key", key); 126 ALOGE("get_int: the value isn't an 'int' for the %s key", key); 132 get_byte_array(const char* key, bool* error, u8* array, unsigned int max_array_size) argument [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/ |
H A D | WifiEnterpriseConfigTest.java | 118 // Retrieves the value for a specific key supplied to wpa_supplicant. 123 SupplicantConfigExtractor(String key) { argument 124 mKey = key; 128 public boolean saveValue(String key, String value) { argument 129 if (key.equals(mKey)) {
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | MockKeyStore.java | 91 private KeyBlob access(int uid, String key, boolean createIfNotExist) { argument 96 if (map.containsKey(key)) { 97 return map.get(key); 101 map.put(key, blob); 109 public KeyBlob getKeyBlob(int uid, String key) { argument 110 return access(uid, key, false); 113 private boolean put(String key, byte[] value, int uid, int flags) { argument 114 access(uid, key, true).update(value, flags); 118 private boolean importKey(String keyName, byte[] key, int uid, int flags) { argument 119 return put(keyName, key, ui 122 delete(String key, int uid) argument 129 contains(String key, int uid) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseFragmentPagerAdapter.java | 183 protected void entryRemoved(boolean evicted, String key, argument
|
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 149 public String setup(int key) { argument 153 tmp = key % 2; 154 key /= 2; 163 tmp = key % 2; 164 key /= 2; 173 tmp = key % 3; 174 key /= 3; 190 tmp = key % 3; 191 key /= 3; 207 if (key > 231 int key = 0; field in class:Triangle [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/ |
H A D | Settings.java | 74 * Returns the boolean preference for the given key. 76 public boolean getBoolean(String key) { argument 77 return getOrSetBoolean(key, false, false); 81 * Sets the boolean preference for the given key. If an app uses this api to override 84 public void setBoolean(String key, boolean value) { argument 85 getOrSetBoolean(key, true, value); 88 boolean getOrSetBoolean(String key, boolean set, boolean value) { argument 89 if (key.compareTo(PREFER_STATIC_SHADOWS) == 0) { 92 throw new IllegalArgumentException("Invalid key");
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | GuidedDatePickerAction.java | 181 public void onSaveInstanceState(Bundle bundle, String key) { argument 182 bundle.putLong(key, getDate()); 186 public void onRestoreInstanceState(Bundle bundle, String key) { argument 187 setDate(bundle.getLong(key, getDate()));
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LongSparseArray.java | 38 * as deleted. The entry can then be re-used for the same key, or compacted later in 92 * Gets the Object mapped from the specified key, or <code>null</code> 95 public E get(long key) { argument 96 return get(key, null); 100 * Gets the Object mapped from the specified key, or the specified Object 104 public E get(long key, E valueIfKeyNotFound) { argument 105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 115 * Removes the mapping from the specified key, if there was any. 117 public void delete(long key) { argument 118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 remove(long key) argument 178 put(long key, E value) argument 282 indexOfKey(long key) argument 329 append(long key, E value) argument [all...] |
H A D | LruCache.java | 72 * Returns the value for {@code key} if it exists in the cache or can be 77 public final V get(K key) { argument 78 if (key == null) { 79 throw new NullPointerException("key == null"); 84 mapValue = map.get(key); 99 V createdValue = create(key); 106 mapValue = map.put(key, createdValue); 110 map.put(key, mapValue); 112 size += safeSizeOf(key, createdValue); 117 entryRemoved(false, key, createdValu 131 put(K key, V value) argument 192 remove(K key) argument 227 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 244 create(K key) argument 248 safeSizeOf(K key, V value) argument 263 sizeOf(K key, V value) argument [all...] |
H A D | SparseArrayCompat.java | 72 * Gets the Object mapped from the specified key, or <code>null</code> 75 public E get(int key) { argument 76 return get(key, null); 80 * Gets the Object mapped from the specified key, or the specified Object 84 public E get(int key, E valueIfKeyNotFound) { argument 85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 95 * Removes the mapping from the specified key, if there was any. 97 public void delete(int key) { argument 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 111 public void remove(int key) { argument 171 put(int key, E value) argument 275 indexOfKey(int key) argument 324 append(int key, E value) argument [all...] |
/frameworks/support/v4/kitkat/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi19.java | 94 public void onMetadataUpdate(int key, Object newValue) { argument 95 if (key == MediaMetadataEditor.RATING_KEY_BY_USER && newValue instanceof Rating) {
|
/frameworks/av/drm/libmediadrm/ |
H A D | Crypto.cpp | 238 const uint8_t key[16], 260 key, iv, mode, pattern, srcPtr, subSamples, numSubSamples, dstPtr, 236 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
/frameworks/av/media/libmedia/ |
H A D | ICrypto.cpp | 99 const uint8_t key[16], 115 if (key == NULL) { 116 key = kDummy; 123 data.write(key, 16); 289 uint8_t key[16]; local 290 data.read(key, sizeof(key)); 354 key, 97 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
H A D | IMediaMetadataRetriever.cpp | 235 String8 key = data.readString8(); local 237 headers.add(key, value);
|
H A D | MediaCodecInfo.cpp | 267 void MediaCodecInfo::addDetail(const AString &key, const AString &value) { argument 268 mCurrentCaps->mDetails->setString(key.c_str(), value.c_str()); 271 void MediaCodecInfo::addFeature(const AString &key, int32_t value) { argument 273 tag.append(key); 277 void MediaCodecInfo::addFeature(const AString &key, const char *value) { argument 279 tag.append(key);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | MetaData.cpp | 48 bool MetaData::remove(uint32_t key) { argument 49 ssize_t i = mItems.indexOfKey(key); 60 bool MetaData::setCString(uint32_t key, const char *value) { argument 61 return setData(key, TYPE_C_STRING, value, strlen(value) + 1); 64 bool MetaData::setInt32(uint32_t key, int32_t value) { argument 65 return setData(key, TYPE_INT32, &value, sizeof(value)); 68 bool MetaData::setInt64(uint32_t key, int64_t value) { argument 69 return setData(key, TYPE_INT64, &value, sizeof(value)); 72 bool MetaData::setFloat(uint32_t key, float value) { argument 73 return setData(key, TYPE_FLOA 76 setPointer(uint32_t key, void *value) argument 80 setRect( uint32_t key, int32_t left, int32_t top, int32_t right, int32_t bottom) argument 96 findCString(uint32_t key, const char **value) argument 109 findInt32(uint32_t key, int32_t *value) argument 124 findInt64(uint32_t key, int64_t *value) argument 139 findFloat(uint32_t key, float *value) argument 154 findPointer(uint32_t key, void **value) argument 169 findRect( uint32_t key, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) argument 191 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument 210 findData(uint32_t key, uint32_t *type, const void **data, size_t *size) const argument 373 int32_t key = mItems.keyAt(i); local 386 int32_t key = mItems.keyAt(i); local 398 int32_t key = mItems.keyAt(i); local 416 int32_t key; local [all...] |
H A D | ParsedMessage.cpp | 48 AString key = name; local 49 key.tolower(); 51 ssize_t index = mDict.indexOfKey(key); 141 AString key(line, 0, colonPos); 142 key.trim(); 143 key.tolower(); 147 lastDictIndex = mDict.add(key, line); 232 const AString &key = mDict.keyAt(i); local 235 if (key == AString("_")) { 239 line.append(key); 252 GetAttribute( const char *s, const char *key, AString *value) argument 282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument [all...] |