Home
last modified time | relevance | path

Searched refs:slotId (Results 1 – 11 of 11) 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/v4l2_codec2/plugin_store/
DC2VdaBqBlockPool.cpp189 void updateSlotBuffer(slot_t slotId, unique_id_t uniqueId, sp<GraphicBuffer> slotBuffer) { in updateSlotBuffer() argument
190 ALOGV("%s(slotId=%d)", __func__, slotId); in updateSlotBuffer()
193 mSlotId2GraphicBuffer[slotId] = std::make_pair(uniqueId, std::move(slotBuffer)); in updateSlotBuffer()
196 std::pair<unique_id_t, sp<GraphicBuffer>> getSlotBuffer(slot_t slotId) const { in getSlotBuffer()
197 const auto iter = mSlotId2GraphicBuffer.find(slotId); in getSlotBuffer()
203 bool hasSlotId(slot_t slotId) const { in hasSlotId()
204 return mSlotId2GraphicBuffer.find(slotId) != mSlotId2GraphicBuffer.end(); in hasSlotId()
207 void updatePoolData(slot_t slotId, std::weak_ptr<C2BufferQueueBlockPoolData> poolData) { in updatePoolData() argument
208 ALOGV("%s(slotId=%d)", __func__, slotId); in updatePoolData()
209 ALOG_ASSERT(hasSlotId(slotId)); in updatePoolData()
[all …]
/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.java944 @RpcParameter(name = "slotId") Integer slotId, in telephonySetSimStateForSlotId()
946 mTelephonyManager.setSimPowerStateForSlot(slotId, state); in telephonySetSimStateForSlotId()
957 @RpcParameter(name = "slotId") Integer slotId) { in telephonyGetSimStateForSlotId()
959 mTelephonyManager.getSimState(slotId)); in telephonyGetSimStateForSlotId()
1227 Integer slotId){ in telephonyGetDeviceIdForSlotId()
1228 return mTelephonyManager.getDeviceId(slotId); in telephonyGetDeviceIdForSlotId()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTelephonyManager.java1216 int slotId = -1;
1221 String ecclist = (slotId <= 0) ? "ril.ecclist" : ("ril.ecclist" + slotId);
1250 emergencyNumbers = ((slotId < 0) ? "112,911,000,08,110,118,119,999" : "112,911");