Home | History | Annotate | Download | only in phone

Lines Matching refs:request

71      * A request object for use with {@link MainThreadHandler}. Requesters should wait() on the
72 * request after sending. The main thread will notify the request when it is complete.
75 /** The argument to use for the request */
77 /** The result of the request that is run on the main thread */
91 * request.
94 * note that request.result must be set to something non-null for the calling thread to
100 MainThreadRequest request;
106 request = (MainThreadRequest) msg.obj;
107 request.result = Boolean.valueOf(
108 mPhone.handlePinMmi((String) request.argument));
110 synchronized (request) {
111 request.notifyAll();
116 request = (MainThreadRequest) msg.obj;
118 request);
124 request = (MainThreadRequest) ar.userObj;
126 request.result = ar.result;
129 request.result = new ArrayList<NeighboringCellInfo>();
132 synchronized (request) {
133 request.notifyAll();
146 request = (MainThreadRequest) msg.obj;
160 request.result = hungUp;
162 synchronized (request) {
163 request.notifyAll();
176 * waits for the request to complete, and returns the result.
184 MainThreadRequest request = new MainThreadRequest(argument);
185 Message msg = mMainThreadHandler.obtainMessage(command, request);
188 // Wait for the request to complete
189 synchronized (request) {
190 while (request.result == null) {
192 request.wait();
194 // Do nothing, go back and wait until the request is complete
198 return request.result;
453 // For async handler to identify request type