Merge changes I96574a79,I74681222 into main
* changes: Fix the testcase failed Add the log for SidecarFragment
This commit is contained in:
committed by
Android (Google) Code Review
commit
71c6c3e557
@@ -130,11 +130,13 @@ public class SwitchSlotSidecar
|
|||||||
} catch (UiccSlotsException e) {
|
} catch (UiccSlotsException e) {
|
||||||
result.exception = e;
|
result.exception = e;
|
||||||
}
|
}
|
||||||
|
Log.i(TAG, "return command.");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Result result) {
|
protected void onPostExecute(Result result) {
|
||||||
|
Log.i(TAG, "onPostExecute: get result");
|
||||||
if (result.exception == null) {
|
if (result.exception == null) {
|
||||||
setState(State.SUCCESS, Substate.UNUSED);
|
setState(State.SUCCESS, Substate.UNUSED);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -78,6 +78,7 @@ public class MobileNetworkPreferenceControllerTest {
|
|||||||
mContext = spy(ApplicationProvider.getApplicationContext());
|
mContext = spy(ApplicationProvider.getApplicationContext());
|
||||||
when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager);
|
when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager);
|
||||||
when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager);
|
when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager);
|
||||||
|
when(mSubscriptionManager.createForAllUserProfiles()).thenReturn(mSubscriptionManager);
|
||||||
when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager);
|
when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager);
|
||||||
if (Looper.myLooper() == null) {
|
if (Looper.myLooper() == null) {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
|
Reference in New Issue
Block a user