Home
last modified time | relevance | path

Searched refs:resultsCallback (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCellInfoTest.java242 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 …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DNetworkScanApiTest.java418 CellInfoResultsCallback resultsCallback = new CellInfoResultsCallback(); in getCellInfo() local
419 mTelephonyManager.requestCellInfoUpdate(r -> r.run(), resultsCallback); in getCellInfo()
421 resultsCallback.wait(MAX_CELLINFO_WAIT_MILLIS); in getCellInfo()
425 return resultsCallback.cellInfo; in getCellInfo()