Lines Matching refs:index
102 ssize_t index = findSession(sessionId); in closeSession() local
103 if (index == kNotFound) { in closeSession()
107 mSessions.removeAt(index); in closeSession()
125 ssize_t index = findSession(sessionId); in getKeyRequest() local
126 if (index == kNotFound) { in getKeyRequest()
157 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
158 if (index < 0) { in getKeyRequest()
162 request = mByteArrayProperties.valueAt(index); in getKeyRequest()
165 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
166 if (index < 0) { in getKeyRequest()
170 defaultUrl = mStringProperties.valueAt(index); in getKeyRequest()
173 index = mStringProperties.indexOfKey(String8("mock-keyRequestType")); in getKeyRequest()
174 if (index < 0) { in getKeyRequest()
179 atoi(mStringProperties.valueAt(index).string())); in getKeyRequest()
192 ssize_t index = findSession(sessionId); in provideKeyResponse() local
193 if (index == kNotFound) { in provideKeyResponse()
222 ssize_t index = findKeySet(keySetId); in removeKeys() local
223 if (index == kNotFound) { in removeKeys()
227 mKeySets.removeAt(index); in removeKeys()
239 ssize_t index = findSession(sessionId); in restoreKeys() local
240 if (index == kNotFound) { in restoreKeys()
245 index = findKeySet(keySetId); in restoreKeys()
246 if (index == kNotFound) { in restoreKeys()
260 ssize_t index = findSession(sessionId); in queryKeyStatus() local
261 if (index == kNotFound) { in queryKeyStatus()
283 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getProvisionRequest() local
284 if (index < 0) { in getProvisionRequest()
288 request = mByteArrayProperties.valueAt(index); in getProvisionRequest()
291 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getProvisionRequest()
292 if (index < 0) { in getProvisionRequest()
296 defaultUrl = mStringProperties.valueAt(index); in getProvisionRequest()
325 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); in getSecureStop() local
326 if (index < 0) { in getSecureStop()
330 secureStop = mByteArrayProperties.valueAt(index); in getSecureStop()
345 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); in getSecureStops() local
346 if (index < 0) { in getSecureStops()
350 ss1 = mByteArrayProperties.valueAt(index); in getSecureStops()
353 index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop2")); in getSecureStops()
354 if (index < 0) { in getSecureStops()
358 ss2 = mByteArrayProperties.valueAt(index); in getSecureStops()
389 ssize_t index = mStringProperties.indexOfKey(name); in getPropertyString() local
390 if (index < 0) { in getPropertyString()
394 value = mStringProperties.valueAt(index); in getPropertyString()
402 ssize_t index = mByteArrayProperties.indexOfKey(name); in getPropertyByteArray() local
403 if (index < 0) { in getPropertyByteArray()
407 value = mByteArrayProperties.valueAt(index); in getPropertyByteArray()
424 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); in setPropertyString() local
425 if (index >= 0) { in setPropertyString()
426 pSessionId = &mByteArrayProperties[index]; in setPropertyString()
430 index = mByteArrayProperties.indexOfKey(String8("mock-event-data")); in setPropertyString()
431 if (index >= 0) { in setPropertyString()
432 pData = &mByteArrayProperties[index]; in setPropertyString()
444 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); in setPropertyString() local
445 if (index >= 0) { in setPropertyString()
446 pSessionId = &mByteArrayProperties[index]; in setPropertyString()
455 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); in setPropertyString() local
456 if (index >= 0) { in setPropertyString()
457 pSessionId = &mByteArrayProperties[index]; in setPropertyString()
520 ssize_t index = findSession(sessionId); in setCipherAlgorithm() local
521 if (index == kNotFound) { in setCipherAlgorithm()
540 ssize_t index = findSession(sessionId); in setMacAlgorithm() local
541 if (index == kNotFound) { in setMacAlgorithm()
565 ssize_t index = findSession(sessionId); in encrypt() local
566 if (index == kNotFound) { in encrypt()
581 index = mByteArrayProperties.indexOfKey(String8("mock-output")); in encrypt()
582 if (index < 0) { in encrypt()
586 output = mByteArrayProperties.valueAt(index); in encrypt()
604 ssize_t index = findSession(sessionId); in decrypt() local
605 if (index == kNotFound) { in decrypt()
620 index = mByteArrayProperties.indexOfKey(String8("mock-output")); in decrypt()
621 if (index < 0) { in decrypt()
625 output = mByteArrayProperties.valueAt(index); in decrypt()
641 ssize_t index = findSession(sessionId); in sign() local
642 if (index == kNotFound) { in sign()
655 index = mByteArrayProperties.indexOfKey(String8("mock-signature")); in sign()
656 if (index < 0) { in sign()
660 signature = mByteArrayProperties.valueAt(index); in sign()
678 ssize_t index = findSession(sessionId); in verify() local
679 if (index == kNotFound) { in verify()
694 index = mStringProperties.indexOfKey(String8("mock-match")); in verify()
695 if (index < 0) { in verify()
699 match = atol(mStringProperties.valueAt(index).string()); in verify()