Searched refs:expectedTries (Results 1 – 1 of 1) sorted by relevance
90 private void verifyTetherInterfaceSucceeds(int expectedTries) throws Exception { in verifyTetherInterfaceSucceeds() argument91 setNetworkAddInterfaceOutcome(null, expectedTries); in verifyTetherInterfaceSucceeds()95 verify(mNetd, times(expectedTries)).networkAddInterface(LOCAL_NET_ID, IFACE_NAME); in verifyTetherInterfaceSucceeds()110 private void runTetherInterfaceWithServiceSpecificException(int expectedTries, in runTetherInterfaceWithServiceSpecificException() argument112 setNetworkAddInterfaceOutcome(new ServiceSpecificException(expectedCode), expectedTries); in runTetherInterfaceWithServiceSpecificException()121 verifyNetworkAddInterfaceFails(expectedTries); in runTetherInterfaceWithServiceSpecificException()125 private void runTetherInterfaceWithRemoteException(int expectedTries) throws Exception { in runTetherInterfaceWithRemoteException() argument126 setNetworkAddInterfaceOutcome(new RemoteException(), expectedTries); in runTetherInterfaceWithRemoteException()133 verifyNetworkAddInterfaceFails(expectedTries); in runTetherInterfaceWithRemoteException()137 private void verifyNetworkAddInterfaceFails(int expectedTries) throws Exception { in verifyNetworkAddInterfaceFails() argument[all …]