/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbCountryCodeTest.java | 90 @Mock NativeUwbManager mNativeUwbManager; field in UwbCountryCodeTest 152 when(mNativeUwbManager.setCountryCode(any())).thenReturn( in setUp() 155 mContext, mNativeUwbManager, new Handler(mTestLooper.getLooper()), mUwbInjector); in setUp() 163 verify(mNativeUwbManager).setCountryCode( in testSetDefaultCountryCodeWhenNoCountryCodeAvailable() 172 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephony() 188 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 204 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled() 220 verifyNoMoreInteractions(mNativeUwbManager, mListener); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListAndNetworkCountryEmpty() 228 verify(mNativeUwbManager, never()).setCountryCode(any()); in testSkipWhenExceptionThrownInInitializeCountryCodeFromTelephony() 236 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyVerifyListener() [all …]
|
D | UwbServiceCoreTest.java | 241 @Mock private NativeUwbManager mNativeUwbManager; field in UwbServiceCoreTest 281 mUwbServiceCore = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in setUp() 374 when(mNativeUwbManager.doInitialize()).thenReturn(UWB_DEVICE_INFO_RESPONSE_MAP); in enableUwb() 384 when(mNativeUwbManager.doInitialize()).thenReturn(UWB_DEVICE_INFO_RESPONSE_MAP); in enableUwbWithCountryCodeChangedCallback() 405 when(mNativeUwbManager.doDeinitialize()).thenReturn(true); in disableUwb() 455 when(mNativeUwbManager.doInitialize()).thenReturn(null); in testEnable_failure() 460 verify(mNativeUwbManager).doInitialize(); in testEnable_failure() 481 when(mNativeUwbManager.doInitialize()).thenReturn(null); in testEnable_failure_noInitializationFailureListener() 486 verify(mNativeUwbManager).doInitialize(); in testEnable_failure_noInitializationFailureListener() 505 verify(mNativeUwbManager).doInitialize(); in testEnableWithCountryCode_success() [all …]
|
D | UwbConfigurationManagerTest.java | 87 private NativeUwbManager mNativeUwbManager; field in UwbConfigurationManagerTest 120 mUwbConfigurationManager = new UwbConfigurationManager(mNativeUwbManager, mUwbInjector); in setUp() 142 when(mNativeUwbManager.setAppConfigurations(anyInt(), anyInt(), anyInt(), in testSetAppConfigurations() 153 verify(mNativeUwbManager).setAppConfigurations(anyInt(), anyInt(), anyInt(), in testSetAppConfigurations() 163 when(mNativeUwbManager.setRadarAppConfigurations(anyInt(), anyInt(), anyInt(), in testSetAppConfigurations_radarSession() 170 verify(mNativeUwbManager).setRadarAppConfigurations(anyInt(), anyInt(), anyInt(), in testSetAppConfigurations_radarSession() 179 when(mNativeUwbManager.getAppConfigurations(anyInt(), anyInt(), anyInt(), in testGetAppConfigurations() 186 verify(mNativeUwbManager).getAppConfigurations(anyInt(), anyInt(), anyInt(), in testGetAppConfigurations() 194 when(mNativeUwbManager.getCapsInfo(anyString())).thenReturn(getAppConfig); in testGetCapsInfo() 199 verify(mNativeUwbManager).getCapsInfo(TEST_CHIP_ID); in testGetCapsInfo()
|
D | UwbSessionManagerTest.java | 310 private NativeUwbManager mNativeUwbManager; field in UwbSessionManagerTest 371 mNativeUwbManager, in setup() 1103 when(mNativeUwbManager.initSession(anyInt(), anyByte(), anyString())) in initSessionMaxSessions_lowestPrioritySessionReplaced() 1105 when(mNativeUwbManager.deInitSession(anyInt(), anyString())) in initSessionMaxSessions_lowestPrioritySessionReplaced() 1147 verify(mNativeUwbManager).initSession(TEST_SESSION_ID, TEST_SESSION_TYPE, TEST_CHIP_ID); in initSessionMaxSessions_lowestPrioritySessionReplaced() 1148 verify(mNativeUwbManager).deInitSession(TEST_SESSION_ID, TEST_CHIP_ID); in initSessionMaxSessions_lowestPrioritySessionReplaced() 1149 verify(mNativeUwbManager).initSession(TEST_SESSION_ID_2, TEST_SESSION_TYPE, TEST_CHIP_ID); in initSessionMaxSessions_lowestPrioritySessionReplaced() 1414 when(mNativeUwbManager.stopRanging(eq(TEST_SESSION_ID), anyString())) in stopRanging_currentSessionStateActive_owrAoa() 1555 when(mNativeUwbManager.stopRanging(eq(TEST_SESSION_ID), anyString())) in stopAllRanging() 1557 when(mNativeUwbManager.stopRanging(eq(TEST_SESSION_ID + 100), anyString())) in stopAllRanging() [all …]
|
D | UwbServiceImplTest.java | 125 @Mock private NativeUwbManager mNativeUwbManager; field in UwbServiceImplTest 169 when(mUwbInjector.getNativeUwbManager()).thenReturn(mNativeUwbManager); in setUp()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbConfigurationManager.java | 37 private final NativeUwbManager mNativeUwbManager; field in UwbConfigurationManager 41 mNativeUwbManager = nativeUwbManager; in UwbConfigurationManager() 66 appConfig = mNativeUwbManager.setRadarAppConfigurations(sessionId, in setAppConfigurations() 70 appConfig = mNativeUwbManager.setAppConfigurations(sessionId, in setAppConfigurations() 96 UwbTlvData getAppConfig = mNativeUwbManager.getAppConfigurations(sessionId, in getAppConfigurations() 110 UwbTlvData capsInfo = mNativeUwbManager.getCapsInfo(chipId); in getCapsInfo()
|
D | UwbInjector.java | 108 private final NativeUwbManager mNativeUwbManager; field in UwbInjector 143 mNativeUwbManager = new NativeUwbManager(this, mUciLogModeStore, mUwbMultichipData); in UwbInjector() 145 new UwbCountryCode(mContext, mNativeUwbManager, new Handler(mLooper), this); in UwbInjector() 149 new UwbConfigurationManager(mNativeUwbManager, this); in UwbInjector() 155 new UwbSessionManager(uwbConfigurationManager, mNativeUwbManager, mUwbMetrics, in UwbInjector() 160 mUwbService = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in UwbInjector() 199 return mNativeUwbManager; in getNativeUwbManager()
|
D | UwbServiceCore.java | 132 private final NativeUwbManager mNativeUwbManager; field in UwbServiceCore 286 mNativeUwbManager = nativeUwbManager; in UwbServiceCore() 288 mNativeUwbManager.setDeviceListener(this); in UwbServiceCore() 289 mNativeUwbManager.setVendorListener(this); in UwbServiceCore() 621 return mNativeUwbManager.queryUwbsTimestamp(chipId); in queryUwbsTimestampMicros() 625 return mNativeUwbManager.getTimestampResolutionNanos(); in getTimestampResolutionNanos() 1008 mNativeUwbManager.sendRawVendorCmd(mt, gid, oid, payload, chipId); in sendVendorUciMessage() 1145 Map<String, UwbDeviceInfoResponse> result = mNativeUwbManager.doInitialize(); in initializeHw() 1214 if (!mNativeUwbManager.doDeinitialize()) { in deInitializeHw() 1401 UwbPowerStats stats = mNativeUwbManager.getPowerStats(chipId); in getUwbActivityEnergyInfo()
|
D | UwbSessionManager.java | 184 private final NativeUwbManager mNativeUwbManager; field in UwbSessionManager 201 mNativeUwbManager = nativeUwbManager; in UwbSessionManager() 202 mNativeUwbManager.setSessionListener(this); in UwbSessionManager() 974 int status = mNativeUwbManager.stopRanging(uwbSession.getSessionId(), in stopAllRanging() 1324 return mNativeUwbManager.queryMaxDataSizeBytes(uwbSession.getSessionId(), in queryMaxDataSizeBytes() 1352 return mNativeUwbManager.sessionUpdateDtTagRangingRounds( in handleRangingRoundsUpdateDtTag() 1434 buffer.putInt(mNativeUwbManager.getSessionToken(phaseList.getSessionHandle(), in handleSetHybridSessionControllerConfiguration() 1459 status = mNativeUwbManager.setHybridSessionControllerConfiguration( in handleSetHybridSessionControllerConfiguration() 1533 phaseListBuffer.putInt(mNativeUwbManager.getSessionToken(phaseList.getSessionHandle(), in handleSetHybridSessionControleeConfiguration() 1543 status = mNativeUwbManager.setHybridSessionControleeConfiguration( in handleSetHybridSessionControleeConfiguration() [all …]
|
D | UwbCountryCode.java | 100 private final NativeUwbManager mNativeUwbManager; field in UwbCountryCode 156 mNativeUwbManager = nativeUwbManager; in UwbCountryCode() 406 int status = mNativeUwbManager.setCountryCode(country.getBytes(StandardCharsets.UTF_8)); in setCountryCode()
|
D | UwbShellCommand.java | 239 private final NativeUwbManager mNativeUwbManager; field in UwbShellCommand 251 mNativeUwbManager = uwbInjector.getNativeUwbManager(); in UwbShellCommand() 1274 if (!mNativeUwbManager.setLogMode(logMode)) { in onCommand() 1381 pw.println(mNativeUwbManager.getPowerStats(mUwbService.getDefaultChipId())); in onCommand()
|