Home | History | Annotate | Download | only in phone

Lines Matching refs:request

77      * A request object for use with {@link MainThreadHandler}. Requesters should wait() on the
78 * request after sending. The main thread will notify the request when it is complete.
81 /** The argument to use for the request */
83 /** The result of the request that is run on the main thread */
97 * request.
100 * note that request.result must be set to something non-null for the calling thread to
106 MainThreadRequest request;
112 request = (MainThreadRequest) msg.obj;
113 request.result = Boolean.valueOf(
114 mPhone.handlePinMmi((String) request.argument));
116 synchronized (request) {
117 request.notifyAll();
122 request = (MainThreadRequest) msg.obj;
124 request);
130 request = (MainThreadRequest) ar.userObj;
132 request.result = ar.result;
135 request.result = new ArrayList<NeighboringCellInfo>();
138 synchronized (request) {
139 request.notifyAll();
152 request = (MainThreadRequest) msg.obj;
166 request.result = hungUp;
168 synchronized (request) {
169 request.notifyAll();
182 * waits for the request to complete, and returns the result.
190 MainThreadRequest request = new MainThreadRequest(argument);
191 Message msg = mMainThreadHandler.obtainMessage(command, request);
194 // Wait for the request to complete
195 synchronized (request) {
196 while (request.result == null) {
198 request.wait();
200 // Do nothing, go back and wait until the request is complete
204 return request.result;
465 // For async handler to identify request type