/external/libese/apps/weaver/tests/ |
D | weaver_test.cpp | 63 const uint32_t slotId = 3; in TEST_F() local 64 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK); in TEST_F() 68 ASSERT_EQ(ESE_APP_RESULT_OK, ese_weaver_read(&mSession, slotId, KEY, readValue, &timeout)); in TEST_F() 73 const uint32_t slotId = 7; in TEST_F() local 74 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK); in TEST_F() 79 ese_weaver_read(&mSession, slotId, WRONG_KEY, readValue, &timeout)); in TEST_F() 85 const uint32_t slotId = 0; in TEST_F() local 86 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK); in TEST_F() 87 ASSERT_EQ(ese_weaver_erase_value(&mSession, slotId), ESE_APP_RESULT_OK); in TEST_F() 93 ASSERT_EQ(ESE_APP_RESULT_OK, ese_weaver_read(&mSession, slotId, KEY, readValue, &timeout)); in TEST_F()
|
/external/libese/apps/weaver/card/src/com/android/weaver/core/ |
D | CoreSlots.java | 55 final short slotId = validateSlotId(rawSlotId); in write() local 56 mSlots[slotId].write(key, keyOffset, value, valueOffset); in write() 62 final short slotId = validateSlotId(rawSlotId); in read() local 63 return mSlots[slotId].read(key, keyOffset, outValue, outOffset); in read() 68 final short slotId = validateSlotId(rawSlotId); in eraseValue() local 69 mSlots[slotId].eraseValue(); in eraseValue() 82 private short validateSlotId(short slotId) { in validateSlotId() argument 84 if (slotId < 0 || slotId >= NUM_SLOTS) { in validateSlotId() 87 return slotId; in validateSlotId()
|
/external/nos/host/android/hals/weaver/ |
D | Weaver.cpp | 63 Return<WeaverStatus> Weaver::write(uint32_t slotId, const hidl_vec<uint8_t>& key, in write() argument 65 LOG(INFO) << "Running Weaver::write on slot " << slotId; in write() 68 request.set_slot(slotId); in write() 82 Return<void> Weaver::read(uint32_t slotId, const hidl_vec<uint8_t>& key, read_cb _hidl_cb) { in read() argument 83 LOG(VERBOSE) << "Running Weaver::read on slot " << slotId; in read() 86 request.set_slot(slotId); in read() 109 LOG(WARNING) << "Wrong key used when reading slot " << slotId in read() 115 LOG(WARNING) << "Attempted to read slot " << slotId << " when throttling is active for " in read()
|
/external/libese/esed/ |
D | Weaver.cpp | 78 Return<WeaverStatus> Weaver::write(uint32_t slotId, const hidl_vec<uint8_t>& key, in write() argument 80 LOG(INFO) << "Running Weaver::write on slot " << slotId; in write() 102 if (ese_weaver_write(&ws, slotId, key.data(), value.data()) != ESE_APP_RESULT_OK) { in write() 114 Return<void> Weaver::read(uint32_t slotId, const hidl_vec<uint8_t>& key, read_cb _hidl_cb) { in read() argument 115 LOG(VERBOSE) << "Running Weaver::read on slot " << slotId; in read() 138 const int res = ese_weaver_read(&ws, slotId, key.data(), value.data(), &timeout); in read()
|
D | Weaver.h | 40 Return<WeaverStatus> write(uint32_t slotId, const hidl_vec<uint8_t>& key, 42 Return<void> read(uint32_t slotId, const hidl_vec<uint8_t>& key, read_cb _hidl_cb) override;
|
/external/libese/apps/weaver/card/src/com/android/weaver/ |
D | Weaver.java | 170 final short slotId = getSlotId(buffer, WRITE_DATA_SLOT_ID_OFFSET); in write() local 171 mSlots.write(slotId, buffer, WRITE_DATA_KEY_OFFSET, buffer, WRITE_DATA_VALUE_OFFSET); in write() 196 final short slotId = getSlotId(buffer, READ_DATA_SLOT_ID_OFFSET); in read() local 198 final byte err = mSlots.read(slotId, buffer, READ_DATA_KEY_OFFSET, buffer, (short) 1); in read() 224 final short slotId = getSlotId(buffer, READ_DATA_SLOT_ID_OFFSET); in eraseValue() local 225 mSlots.eraseValue(slotId); in eraseValue()
|
D | Slots.java | 32 void write(short slotId, byte[] key, short keyOffset, byte[] value, short valueOffset); in write() argument 46 byte read(short slotId, byte[] key, short keyOffset, byte[] value, short valueOffset); in read() argument 56 void eraseValue(short slotId); in eraseValue() argument
|
/external/libese/apps/weaver/include/ese/app/ |
D | weaver.h | 98 EseAppResult ese_weaver_write(struct EseWeaverSession *session, uint32_t slotId, 114 EseAppResult ese_weaver_read(struct EseWeaverSession *session, uint32_t slotId, 122 EseAppResult ese_weaver_erase_value(struct EseWeaverSession *session, uint32_t slotId);
|
/external/libese/apps/weaver/ |
D | weaver.c | 221 uint32_t slotId, const uint8_t *key, in ese_weaver_write() argument 243 put_uint32(slot_id, slotId); in ese_weaver_write() 275 uint32_t slotId, const uint8_t *key, in ese_weaver_read() argument 297 put_uint32(slot_id, slotId); in ese_weaver_read() 364 uint32_t slotId) { in ese_weaver_erase_value() argument 382 put_uint32(slot_id, slotId); in ese_weaver_erase_value()
|
/external/nos/host/android/hals/weaver/include/ |
D | Weaver.h | 41 Return<WeaverStatus> write(uint32_t slotId, const hidl_vec<uint8_t>& key, 43 Return<void> read(uint32_t slotId, const hidl_vec<uint8_t>& key, read_cb _hidl_cb) override;
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | TelephonyManagerFacade.java | 828 @RpcParameter(name = "slotId") Integer slotId, in telephonySetSimStateForSlotId() 830 mTelephonyManager.setSimPowerStateForSlot(slotId, state); in telephonySetSimStateForSlotId() 841 @RpcParameter(name = "slotId") Integer slotId) { in telephonyGetSimStateForSlotId() 843 mTelephonyManager.getSimState(slotId)); in telephonyGetSimStateForSlotId() 999 Integer slotId){ in telephonyGetDeviceIdForSlotId() 1000 return mTelephonyManager.getDeviceId(slotId); in telephonyGetDeviceIdForSlotId()
|