GpsNiNotification Struct Reference

GpsNiNotification Struct Reference

#include < gps.h >

Data Fields

size_t  size
 
int  notification_id
 
GpsNiType   ni_type
 
GpsNiNotifyFlags   notify_flags
 
int  timeout
 
GpsUserResponseType   default_response
 
char  requestor_id [ GPS_NI_SHORT_STRING_MAXLEN ]
 
char  text [ GPS_NI_LONG_STRING_MAXLEN ]
 
GpsNiEncodingType   requestor_id_encoding
 
GpsNiEncodingType   text_encoding
 
char  extras [ GPS_NI_LONG_STRING_MAXLEN ]
 

Detailed Description

Represents an NI request

Definition at line 1026 of file gps.h .

Field Documentation

GpsUserResponseType default_response

Default response when time out.

Definition at line 1056 of file gps.h .

A pointer to extra data. Format: key_1 = value_1 key_2 = value_2

Definition at line 1083 of file gps.h .

GpsNiType ni_type

An NI type used to distinguish different categories of NI events, such as GPS_NI_TYPE_VOICE, GPS_NI_TYPE_UMTS_SUPL, ...

Definition at line 1040 of file gps.h .

int notification_id

An ID generated by HAL to associate NI notifications and UI responses

Definition at line 1034 of file gps.h .

GpsNiNotifyFlags notify_flags

Notification/verification options, combinations of GpsNiNotifyFlags constants

Definition at line 1045 of file gps.h .

char requestor_id[ GPS_NI_SHORT_STRING_MAXLEN ]

Requestor ID

Definition at line 1061 of file gps.h .

GpsNiEncodingType requestor_id_encoding

Client name decoding scheme

Definition at line 1071 of file gps.h .

size_t size

set to sizeof(GpsNiNotification)

Definition at line 1028 of file gps.h .

Notification message. It can also be used to store client_id in some cases

Definition at line 1066 of file gps.h .

GpsNiEncodingType text_encoding

Client name decoding scheme

Definition at line 1076 of file gps.h .

int timeout

Timeout period to wait for user response. Set to 0 for no time out limit.

Definition at line 1051 of file gps.h .


The documentation for this struct was generated from the following file:
  • hardware/libhardware/include/hardware/ gps.h