Lines Matching refs:ok
83 bool ok = true; in appendHeader() local
86 ok = ok && mData->writeInt32(-1) == OK; in appendHeader()
87 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader()
88 return ok; in appendHeader()
98 bool ok = true; in appendBool() local
101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendBool()
102 ok = ok && mData->writeInt32(key) == OK; in appendBool()
103 ok = ok && mData->writeInt32(BOOLEAN_VAL) == OK; in appendBool()
104 ok = ok && mData->writeInt32(val ? 1 : 0) == OK; in appendBool()
105 if (!ok) { in appendBool()
108 return ok; in appendBool()
118 bool ok = true; in appendInt32() local
121 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendInt32()
122 ok = ok && mData->writeInt32(key) == OK; in appendInt32()
123 ok = ok && mData->writeInt32(INTEGER_VAL) == OK; in appendInt32()
124 ok = ok && mData->writeInt32(val) == OK; in appendInt32()
125 if (!ok) { in appendInt32()
128 return ok; in appendInt32()