Home
last modified time | relevance | path

Searched refs:slotId (Results 1 – 9 of 9) sorted by relevance

/external/libese/apps/weaver/tests/
Dweaver_test.cpp63 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/
DCoreSlots.java55 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/libese/esed/
DWeaver.cpp78 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()
DWeaver.h40 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/
DSlots.java32 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
DWeaver.java170 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()
/external/libese/apps/weaver/include/ese/app/
Dweaver.h98 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/
Dweaver.c221 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/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java745 @RpcParameter(name = "slotId") Integer slotId) { in telephonyGetSimStateForSlotId()
747 mTelephonyManager.getSimState(slotId)); in telephonyGetSimStateForSlotId()
881 Integer slotId){ in telephonyGetDeviceIdForSlotId()
882 return mTelephonyManager.getDeviceId(slotId); in telephonyGetDeviceIdForSlotId()