Lines Matching defs:AMessage

17 #define LOG_TAG "AMessage"
22 #include "AMessage.h"
40 status_t AReplyToken::setReply(const sp<AMessage> &reply) {
51 AMessage::AMessage(void)
57 AMessage::AMessage(uint32_t what, const sp<const AHandler> &handler)
63 AMessage::~AMessage() {
67 void AMessage::setWhat(uint32_t what) {
71 uint32_t AMessage::what() const {
75 void AMessage::setTarget(const sp<const AHandler> &handler) {
87 void AMessage::clear() {
97 void AMessage::freeItemValue(Item *item) {
150 inline size_t AMessage::findItemIndex(const char *name, size_t len) const {
180 void AMessage::Item::setName(const char *name, size_t len) {
186 AMessage::Item *AMessage::allocateItem(const char *name) {
204 const AMessage::Item *AMessage::findItem(
215 bool AMessage::contains(const char *name) const {
221 void AMessage::set##NAME(const char *name, TYPENAME value) { \
228 bool AMessage::find##NAME(const char *name, TYPENAME *value) const { \
246 void AMessage::setString(
253 void AMessage::setString(
258 void AMessage::setObjectInternal(
267 void AMessage::setObject(const char *name, const sp<RefBase> &obj) {
271 void AMessage::setBuffer(const char *name, const sp<ABuffer> &buffer) {
275 void AMessage::setMessage(const char *name, const sp<AMessage> &obj) {
283 void AMessage::setRect(
295 bool AMessage::findString(const char *name, AString *value) const {
304 bool AMessage::findObject(const char *name, sp<RefBase> *obj) const {
313 bool AMessage::findBuffer(const char *name, sp<ABuffer> *buf) const {
322 bool AMessage::findMessage(const char *name, sp<AMessage> *obj) const {
325 *obj = static_cast<AMessage *>(item->u.refValue);
331 bool AMessage::findRect(
347 void AMessage::deliver() {
357 status_t AMessage::post(int64_t delayUs) {
368 status_t AMessage::postAndAwaitResponse(sp<AMessage> *response) {
386 status_t AMessage::postReply(const sp<AReplyToken> &replyToken) {
399 bool AMessage::senderAwaitsResponse(sp<AReplyToken> *replyToken) {
415 sp<AMessage> AMessage::dup() const {
416 sp<AMessage> msg = new AMessage(mWhat, mHandler.promote());
453 sp<AMessage> copy =
454 static_cast<AMessage *>(from->u.refValue)->dup();
489 AString AMessage::debugString(int32_t indent) const {
490 AString s = "AMessage(what = ";
566 "AMessage %s = %s",
568 static_cast<AMessage *>(
598 sp<AMessage> AMessage::FromParcel(const Parcel &parcel, size_t maxNestingLevel) {
600 sp<AMessage> msg = new AMessage();
671 ALOGE("Too many levels of AMessage nesting.");
674 sp<AMessage> subMsg = AMessage::FromParcel(
680 // level of nested AMessage is too deep.
702 void AMessage::writeToParcel(Parcel *parcel) const {
751 static_cast<AMessage *>(item.u.refValue)->writeToParcel(parcel);
764 sp<AMessage> AMessage::changesFrom(const sp<const AMessage> &other, bool deep) const {
766 return const_cast<AMessage*>(this);
769 sp<AMessage> diff = new AMessage;
852 sp<AMessage> myMsg = static_cast<AMessage *>(item.u.refValue);
859 sp<AMessage> oMsg =
860 oitem == NULL ? NULL : static_cast<AMessage *>(oitem->u.refValue);
861 sp<AMessage> changes = myMsg->changesFrom(oMsg, deep);
884 size_t AMessage::countEntries() const {
888 const char *AMessage::getEntryNameAt(size_t index, Type *type) const {