Home | History | Annotate | Download | only in vehicle_network_service

Lines Matching defs:access

66 // Converts the string representation, access, to an integer form and store it
67 // in value. true is returned if the parameter, access, is "r", "w", "rw" or
69 // only used for logging in the event that the string, access, was not
74 const xmlChar* access) {
75 if (!value || !property || !uid || !access) {
80 if (xmlStrcmp(access, (const xmlChar *)"r") == 0) {
83 else if (xmlStrcmp(access, (const xmlChar *)"w") == 0) {
86 else if ((xmlStrcmp(access, (const xmlChar *)"rw") == 0)
87 || (xmlStrcmp(access, (const xmlChar *)"wr") == 0)) {
91 ALOGE("Unknown access tag %s for UID %s in PROPERTY %s\n",access, uid,
100 // doesn't already exist. If the pair does exist, the access is updated.
102 int32_t access) {
116 (*uidAccessMap)[uid] = access;
121 // The Property, Uid pair exist. So update the access
122 (*uidAccessMap)[uid] = access;
137 xmlChar* access = NULL;
181 // Free the old access tag
182 xmlFree(access);
188 // get new access tag
189 access = xmlGetProp(child, (const xmlChar *)"access");
199 } else if (access == NULL) {
201 "UID tag for property %s given without access attribute\n",
212 access);
217 "Property %08x was added: uid=%d access=%d\n",
220 LOG_VERBOSE("Property %08x was updated: uid=%d access=%d\n",
233 xmlFree(access);
294 int32_t access;
302 access = (*uid_access_map)[uid];
303 switch(access) {
309 msg.appendFormat("UID %d: property 0x%08x, access %s\n", uid,
315 // Test if the given uid has (read or write) access to the given property. If it
316 // does, true is returned and false is returned if it doesn't have access or the
336 // Get Access to this Property
337 int32_t access = (*uidAccessMap)[uid];
339 // Test if the UID has access to the property
341 if ((access == VEHICLE_PROP_ACCESS_WRITE)
342 || (access == VEHICLE_PROP_ACCESS_READ_WRITE)) {
348 if ((access == VEHICLE_PROP_ACCESS_READ)
349 || (access == VEHICLE_PROP_ACCESS_READ_WRITE)) {