Searched refs:resultsCallback (Results 1 – 2 of 2) sorted by relevance
242 CellInfoResultsCallback resultsCallback = new CellInfoResultsCallback(); in testPhoneStateListenerCallback()244 mTm.requestCellInfoUpdate(mSimpleExecutor, resultsCallback); in testPhoneStateListenerCallback()245 resultsCallback.wait(MAX_CELLINFO_WAIT_MILLIS); in testPhoneStateListenerCallback()256 referenceList.containsAll(resultsCallback.cellInfo)); in testPhoneStateListenerCallback()258 resultsCallback.cellInfo = null; in testPhoneStateListenerCallback()262 mTm.requestCellInfoUpdate(mSimpleExecutor, resultsCallback); in testPhoneStateListenerCallback()263 resultsCallback.wait(MAX_CELLINFO_WAIT_MILLIS); in testPhoneStateListenerCallback()264 assertNotNull("CellInfoCallback should return valid data", resultsCallback.cellInfo); in testPhoneStateListenerCallback()265 if (referenceList.containsAll(resultsCallback.cellInfo)) { in testPhoneStateListenerCallback()283 resultsCallback.cellInfo = null; in testPhoneStateListenerCallback()[all …]
418 CellInfoResultsCallback resultsCallback = new CellInfoResultsCallback(); in getCellInfo() local419 mTelephonyManager.requestCellInfoUpdate(r -> r.run(), resultsCallback); in getCellInfo()421 resultsCallback.wait(MAX_CELLINFO_WAIT_MILLIS); in getCellInfo()425 return resultsCallback.cellInfo; in getCellInfo()