Lines Matching refs:item
40 Item *item = Item::create(key); in mediametrics_create() local
41 return (mediametrics_handle_t) item; in mediametrics_create()
45 Item *item = (Item *) handle; in mediametrics_delete() local
46 if (item == NULL) return; in mediametrics_delete()
47 delete item; in mediametrics_delete()
51 Item *item = (Item *) handle; in mediametrics_getKey() local
52 if (item == NULL) return NULL; in mediametrics_getKey()
53 return strdup(item->getKey().c_str()); in mediametrics_getKey()
58 Item *item = (Item *) handle; in mediametrics_setUid() local
59 if (item != NULL) item->setUid(uid); in mediametrics_setUid()
67 Item *item = (Item *) handle; in mediametrics_setInt32() local
68 if (item != NULL) item->setInt32(attr, value); in mediametrics_setInt32()
73 Item *item = (Item *) handle; in mediametrics_setInt64() local
74 if (item != NULL) item->setInt64(attr, value); in mediametrics_setInt64()
79 Item *item = (Item *) handle; in mediametrics_setDouble() local
80 if (item != NULL) item->setDouble(attr, value); in mediametrics_setDouble()
85 Item *item = (Item *) handle; in mediametrics_setRate() local
86 if (item != NULL) item->setRate(attr, count, duration); in mediametrics_setRate()
96 Item *item = (Item *) handle; in mediametrics_setCString() local
97 if (item != NULL) item->setCString(attr, value); in mediametrics_setCString()
105 Item *item = (Item *) handle; in mediametrics_addInt32() local
106 if (item != NULL) item->addInt32(attr, value); in mediametrics_addInt32()
111 Item *item = (Item *) handle; in mediametrics_addInt64() local
112 if (item != NULL) item->addInt64(attr, value); in mediametrics_addInt64()
117 Item *item = (Item *) handle; in mediametrics_addDouble() local
118 if (item != NULL) item->addDouble(attr, value); in mediametrics_addDouble()
123 Item *item = (Item *) handle; in mediametrics_addRate() local
124 if (item != NULL) item->addRate(attr, count, duration); in mediametrics_addRate()
134 Item *item = (Item *) handle; in mediametrics_getInt32() local
135 if (item == NULL) return false; in mediametrics_getInt32()
136 return item->getInt32(attr, value); in mediametrics_getInt32()
141 Item *item = (Item *) handle; in mediametrics_getInt64() local
142 if (item == NULL) return false; in mediametrics_getInt64()
143 return item->getInt64(attr, value); in mediametrics_getInt64()
148 Item *item = (Item *) handle; in mediametrics_getDouble() local
149 if (item == NULL) return false; in mediametrics_getDouble()
150 return item->getDouble(attr, value); in mediametrics_getDouble()
155 Item *item = (Item *) handle; in mediametrics_getRate() local
156 if (item == NULL) return false; in mediametrics_getRate()
157 return item->getRate(attr, count, duration, rate); in mediametrics_getRate()
162 Item *item = (Item *) handle; in mediametrics_getString() local
163 if (item == NULL) return false; in mediametrics_getString()
165 return item->getString(attr, string); in mediametrics_getString()
171 Item *item = (Item *) handle; in mediametrics_getCString() local
172 if (item == NULL) return false; in mediametrics_getCString()
174 return item->getCString(attr, value); in mediametrics_getCString()
183 Item *item = (Item *) handle; in mediametrics_selfRecord() local
184 if (item == NULL) return false; in mediametrics_selfRecord()
185 return item->selfrecord(); in mediametrics_selfRecord()
189 Item *item = (Item *) handle; in mediametrics_dup() local
190 if (item == NULL) return Item::convert(item); in mediametrics_dup()
191 return Item::convert(item->dup()); in mediametrics_dup()
195 Item *item = (Item *) handle; in mediametrics_readable() local
196 if (item == NULL) return ""; in mediametrics_readable()
197 return item->toCString(); in mediametrics_readable()
201 Item *item = (Item *) handle; in mediametrics_count() local
202 if (item == NULL) return 0; in mediametrics_count()
203 return item->count(); in mediametrics_count()
212 Item *item = (Item *) handle; in mediametrics_getAttributes() local
213 if (item == NULL) return false; in mediametrics_getAttributes()
214 return item->writeToByteString(buffer, length) == android::NO_ERROR; in mediametrics_getAttributes()