Lines Matching refs:ar

219      * @param ar is asyncResult of Query_Facility_Locked
221 private void onQueryFdnEnabled(AsyncResult ar) {
223 if (ar.exception != null) {
224 if (DBG) log("Error in querying facility lock:" + ar.exception);
228 int[] result = (int[])ar.result;
246 private void onChangeFdnDone(AsyncResult ar) {
250 if (ar.exception == null) {
255 attemptsRemaining = parsePinPukErrorResult(ar);
256 loge("Error change facility fdn with exception " + ar.exception);
258 Message response = (Message)ar.userObj;
260 AsyncResult.forMessage(response).exception = ar.exception;
276 private void onQueryFacilityLock(AsyncResult ar) {
278 if(ar.exception != null) {
279 if (DBG) log("Error in querying facility lock:" + ar.exception);
283 int[] ints = (int[])ar.result;
326 private void onChangeFacilityLock(AsyncResult ar) {
330 if (ar.exception == null) {
335 attemptsRemaining = parsePinPukErrorResult(ar);
336 loge("Error change facility lock with exception " + ar.exception);
338 Message response = (Message)ar.userObj;
339 AsyncResult.forMessage(response).exception = ar.exception;
348 private int parsePinPukErrorResult(AsyncResult ar) {
349 int[] result = (int[]) ar.result;
366 AsyncResult ar;
380 // request has completed. ar.userObj is the response Message
382 ar = (AsyncResult)msg.obj;
383 if ((ar.exception != null) && (ar.result != null)) {
384 attemptsRemaining = parsePinPukErrorResult(ar);
386 Message response = (Message)ar.userObj;
387 AsyncResult.forMessage(response).exception = ar.exception;
392 ar = (AsyncResult)msg.obj;
393 onQueryFdnEnabled(ar);
396 ar = (AsyncResult)msg.obj;
397 onChangeFdnDone(ar);
400 ar = (AsyncResult)msg.obj;
401 onQueryFacilityLock(ar);
404 ar = (AsyncResult)msg.obj;
405 onChangeFacilityLock(ar);