Home | History | Annotate | Download | only in phone

Lines Matching refs:request

78      * A request object for use with {@link MainThreadHandler}. Requesters should wait() on the
79 * request after sending. The main thread will notify the request when it is complete.
82 /** The argument to use for the request */
84 /** The result of the request that is run on the main thread */
98 * request.
101 * note that request.result must be set to something non-null for the calling thread to
107 MainThreadRequest request;
113 request = (MainThreadRequest) msg.obj;
114 request.result = Boolean.valueOf(
115 mPhone.handlePinMmi((String) request.argument));
117 synchronized (request) {
118 request.notifyAll();
123 request = (MainThreadRequest) msg.obj;
125 request);
131 request = (MainThreadRequest) ar.userObj;
133 request.result = ar.result;
136 request.result = new ArrayList<NeighboringCellInfo>();
139 synchronized (request) {
140 request.notifyAll();
153 request = (MainThreadRequest) msg.obj;
167 request.result = hungUp;
169 synchronized (request) {
170 request.notifyAll();
183 * waits for the request to complete, and returns the result.
191 MainThreadRequest request = new MainThreadRequest(argument);
192 Message msg = mMainThreadHandler.obtainMessage(command, request);
195 // Wait for the request to complete
196 synchronized (request) {
197 while (request.result == null) {
199 request.wait();
201 // Do nothing, go back and wait until the request is complete
205 return request.result;
453 // For async handler to identify request type