/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbServiceImpl.java | 91 private final UwbInjector mUwbInjector; field in UwbServiceImpl 101 mUwbInjector = uwbInjector; in UwbServiceImpl() 130 mUwbInjector.getMultichipData().initialize(); in initialize() 131 mUwbInjector.getUwbCountryCode().initialize(); in initialize() 132 mUwbInjector.getUciLogModeStore().initialize(); in initialize() 135 if (enabled && mUwbInjector.getDeviceConfigFacade().isUwbDisabledUntilFirstToggle() in initialize() 155 mUwbInjector.getUwbMetrics().dump(fd, pw, args); in dump() 159 mUwbInjector.getUwbSessionManager().dump(fd, pw, args); in dump() 161 mUwbInjector.getUwbCountryCode().dump(fd, pw, args); in dump() 163 mUwbInjector.getUwbConfigStore().dump(fd, pw, args); in dump() [all …]
|
D | UwbCountryCode.java | 101 private final UwbInjector mUwbInjector; field in UwbCountryCode 158 mUwbInjector = uwbInjector; in UwbCountryCode() 198 if (mUwbInjector.getDeviceConfigFacade().isPersistentCacheUseForCountryCodeEnabled()) { in initialize() 199 String cachedCountryCode = mUwbInjector.getUwbSettingsStore().get( in initialize() 232 if (mUwbInjector.getDeviceConfigFacade().isLocationUseForCountryCodeEnabled() && in initialize() 233 mUwbInjector.isGeocoderPresent()) { in initialize() 242 + mUwbInjector.getOemDefaultCountryCode()); in initialize() 270 if (mUwbInjector.getDeviceConfigFacade().isLocationUseForCountryCodeEnabled() && in initialize() 271 mUwbInjector.isGeocoderPresent()) { in initialize() 379 if (mUwbInjector.getDeviceConfigFacade().isPersistentCacheUseForCountryCodeEnabled() in pickCountryCode() [all …]
|
D | UwbControlee.java | 36 private final UwbInjector mUwbInjector; field in UwbControlee 54 mUwbInjector = uwbInjector; in UwbControlee() 55 if (mUwbInjector != null in UwbControlee() 56 && mUwbInjector.getDeviceConfigFacade() != null) { in UwbControlee() 58 mPredictionTimeoutMilli = mUwbInjector in UwbControlee() 114 long nowMs = mUwbInjector.getElapsedSinceBootMillis(); in filterMeasurement() 155 if (mUwbInjector == null) { in getTime() 158 return mUwbInjector.getElapsedSinceBootMillis(); in getTime()
|
D | UwbDiagnostics.java | 33 private final UwbInjector mUwbInjector; field in UwbDiagnostics 39 mUwbInjector = uwbInjector; in UwbDiagnostics() 50 long currentTimeMs = mUwbInjector.getElapsedSinceBootMillis(); in takeBugReport() 53 < mUwbInjector.getDeviceConfigFacade().getBugReportMinIntervalMs() in takeBugReport() 83 mLastBugReportTimeMs = mUwbInjector.getElapsedSinceBootMillis(); in takeBugreportThroughBetterBug() 99 mLastBugReportTimeMs = mUwbInjector.getElapsedSinceBootMillis(); in takeBugreportThroughBugreportManager()
|
D | UwbServiceCore.java | 135 private final UwbInjector mUwbInjector; field in UwbServiceCore 264 if (!mUwbInjector.getDeviceConfigFacade().isHwIdleTurnOffEnabled()) return true; in shouldHwBeEnabled() 295 mUwbInjector = uwbInjector; in UwbServiceCore() 298 mUwbInjector.getMultichipData().setOnInitializedListener( in UwbServiceCore() 300 for (String chipId : mUwbInjector.getMultichipData().getChipIds()) { in UwbServiceCore() 394 if (!mUwbInjector.getMultichipData().getChipIds().contains(chipId)) { in onDeviceStatusNotificationReceived() 492 if (!mUwbInjector.getMultichipData().getChipIds().contains(chipId)) { in onCoreGenericErrorNotificationReceived() 605 .setBackgroundRangingSupport(mUwbInjector.getDeviceConfigFacade() in getSpecificationInfo() 608 mUwbInjector.getMultichipData().getDefaultChipId()).mUciVersion) in getSpecificationInfo() 620 String chipId = mUwbInjector.getMultichipData().getDefaultChipId(); in queryUwbsTimestampMicros() [all …]
|
D | UwbConfigStore.java | 136 private final UwbInjector mUwbInjector; field in UwbConfigStore 217 mUwbInjector = uwbInjector; in UwbConfigStore() 366 if (mUwbInjector.getUserManager() in handleUserSwitch() 374 if (mUwbInjector.getUserManager() in handleUserSwitch() 600 mUwbInjector.getElapsedSinceBootMillis() + BUFFERED_WRITE_ALARM_INTERVAL_MS, in startBufferedWriteAlarm() 623 long writeStartTime = mUwbInjector.getElapsedSinceBootMillis(); in writeBufferedData() 632 long writeTime = mUwbInjector.getElapsedSinceBootMillis() - writeStartTime; in writeBufferedData() 671 long readStartTime = mUwbInjector.getElapsedSinceBootMillis(); in read() 676 long readTime = mUwbInjector.getElapsedSinceBootMillis() - readStartTime; in read() 702 long readStartTime = mUwbInjector.getElapsedSinceBootMillis(); in switchUserStoresAndRead() [all …]
|
D | UwbMetrics.java | 63 private final UwbInjector mUwbInjector; field in UwbMetrics 80 mInitTimeWallClockMs = mUwbInjector.getWallClockMillis(); in UwbStateChangeInfo() 137 mInitTimeWallClockMs = mUwbInjector.getWallClockMillis(); in RangingSessionStats() 143 DeviceConfigFacade cfg = mUwbInjector.getDeviceConfigFacade(); in composeFilterConfigValue() 298 private long mWallClockMillis = mUwbInjector.getWallClockMillis();; 385 mUwbInjector = uwbInjector; in UwbMetrics() 461 session.mStartTimeSinceBootMs = mUwbInjector.getElapsedSinceBootMillis(); in longRangingStartEvent() 466 if (mUwbInjector.getDeviceConfigFacade().isSessionInitErrorBugreportEnabled()) { in takBugReportSessionInitError() 467 mUwbInjector.getUwbDiagnostics().takeBugReport(bugTitle); in takBugReportSessionInitError() 487 session.mActiveDuration += (int) (mUwbInjector.getElapsedSinceBootMillis() in longRangingStopEvent() [all …]
|
D | UwbSessionManager.java | 189 private final UwbInjector mUwbInjector; field in UwbSessionManager 207 mUwbInjector = uwbInjector; in UwbSessionManager() 315 if (!mUwbInjector.getDeviceConfigFacade().isRangingErrorStreakTimerEnabled() in handleRangingResultErrorStreakTimers() 568 if (mUwbInjector.getUwbServiceCore().isOemExtensionCbRegistered()) { in onSessionStatusNotificationReceived() 582 mUwbInjector.getUwbServiceCore().getOemExtensionCallback() in onSessionStatusNotificationReceived() 604 && mUwbInjector.getUwbServiceCore().isOemExtensionCbRegistered()) { in setAppConfigurations() 612 status = mUwbInjector.getUwbServiceCore().getOemExtensionCallback() in setAppConfigurations() 637 boolean hasNonPrivilegedFgAppOrService = mUwbInjector.isForegroundAppOrService( in initSession() 642 if (!mUwbInjector.getDeviceConfigFacade().isBackgroundRangingEnabled()) { in initSession() 912 if (mUwbInjector.getUwbServiceCore().isOemExtensionCbRegistered()) { in processRangeData() [all …]
|
D | UwbConfigurationManager.java | 38 private final UwbInjector mUwbInjector; field in UwbConfigurationManager 42 mUwbInjector = uwbInjector; in UwbConfigurationManager() 54 TlvEncoder encoder = TlvEncoder.getEncoder(params.getProtocolName(), mUwbInjector); in setAppConfigurations() 128 TlvDecoder decoder = TlvDecoder.getDecoder(protocolName, mUwbInjector); in decodeTLV()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceImplTest.java | 123 @Mock private UwbInjector mUwbInjector; field in UwbServiceImplTest 147 mUwbServiceImpl = new UwbServiceImpl(mContext, mUwbInjector); in createUwbServiceImpl() 154 when(mUwbInjector.getUwbSettingsStore()).thenReturn(mUwbSettingsStore); in setUp() 157 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 161 when(mUwbInjector.getUwbServiceCore()).thenReturn(mUwbServiceCore); in setUp() 162 when(mUwbInjector.getMultichipData()).thenReturn(mUwbMultichipData); in setUp() 163 when(mUwbInjector.getGlobalSettingsInt(Settings.Global.AIRPLANE_MODE_ON, 0)).thenReturn(0); in setUp() 164 when(mUwbInjector.getGlobalSettingsString(Settings.Global.AIRPLANE_MODE_RADIOS)) in setUp() 166 when(mUwbInjector.getGlobalSettingsInt(SETTINGS_SATELLITE_MODE_ENABLED, 0)).thenReturn(0); in setUp() 167 when(mUwbInjector.getGlobalSettingsString(SETTINGS_SATELLITE_MODE_RADIOS)) in setUp() [all …]
|
D | UwbDiagnosticsTest.java | 51 @Mock UwbInjector mUwbInjector; field in UwbDiagnosticsTest 63 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 70 mUwbDiagnostics = new UwbDiagnostics(mContext, mUwbInjector, mBuildProperties); in setUp() 83 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn(10L); in takeBugReportTwiceWithInsufficientTimeGapSkipSecondRequest() 87 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn(BUG_REPORT_MIN_INTERVAL_MS - 20L); in takeBugReportTwiceWithInsufficientTimeGapSkipSecondRequest()
|
D | UwbControleeTest.java | 44 UwbInjector mUwbInjector; field in UwbControleeTest 50 mUwbInjector = mock(UwbInjector.class); in setUp() 51 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn(10L); in setUp() 55 mUwbInjector); in setUp()
|
D | UwbSettingsStoreTest.java | 69 @Mock private UwbInjector mUwbInjector; field in UwbSettingsStoreTest 83 mContext, new Handler(mLooper.getLooper()), mAtomicFile, mUwbInjector); in setUp() 144 when(mUwbInjector.getGlobalSettingsInt(SETTINGS_TOGGLE_STATE_KEY_FOR_MIGRATION)).thenReturn( in testMigrationWhenStoreFileEmptyOrNotFound() 162 doThrow(new Settings.SettingNotFoundException("")).when(mUwbInjector).getGlobalSettingsInt( in testNoMigrationLoadFromStoreWhenStoreFileEmptyOrNotFound()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | GenericDecoder.java | 38 private final UwbInjector mUwbInjector; field in GenericDecoder 41 mUwbInjector = uwbInjector; in GenericDecoder() 59 TlvDecoder.getDecoder(FiraParams.PROTOCOL_NAME, mUwbInjector).getParams( in getSpecificationParamsFromTlvBuffer() 67 TlvDecoder.getDecoder(CccParams.PROTOCOL_NAME, mUwbInjector).getParams( in getSpecificationParamsFromTlvBuffer() 75 TlvDecoder.getDecoder(AliroParams.PROTOCOL_NAME, mUwbInjector).getParams( in getSpecificationParamsFromTlvBuffer() 83 TlvDecoder.getDecoder(RadarParams.PROTOCOL_NAME, mUwbInjector) in getSpecificationParamsFromTlvBuffer()
|
D | AliroEncoder.java | 42 private final UwbInjector mUwbInjector; field in AliroEncoder 45 mUwbInjector = uwbInjector; in AliroEncoder() 124 if (mUwbInjector.getDeviceConfigFacade().isCccSupportedRangeDataNtfConfig()) { in getTlvBufferFromAliroOpenRangingParams()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/pm/ |
D | RangingSessionController.java | 53 public UwbInjector mUwbInjector; field in RangingSessionController 109 mUwbInjector = uwbInjector; in RangingSessionController() 168 UwbServiceCore uwbServiceCore = mUwbInjector.getUwbServiceCore(); in openRangingSession() 175 mUwbInjector.getMultichipData().getDefaultChipId() in openRangingSession() 183 mUwbInjector.getUwbServiceCore().startRanging(mSessionInfo.mSessionHandle, in startRanging() 189 mUwbInjector.getUwbServiceCore().stopRanging(mSessionInfo.mSessionHandle); in stopRanging() 193 mUwbInjector.getUwbServiceCore().closeRanging(mSessionInfo.mSessionHandle); in closeRanging() 199 mUwbInjector.getUwbServiceCore().getCachedSpecificationParams( in getSpecificationInfo()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/advertisement/ |
D | UwbAdvertiseManagerTest.java | 117 @Mock private UwbInjector mUwbInjector; field in UwbAdvertiseManagerTest 126 mUwbAdvertiseManager = new UwbAdvertiseManager(mUwbInjector, mDeviceConfigFacade); in setUp() 127 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn( in setUp() 248 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn( in testIsTarget_lastOwrAoAMeasurement_outsideCriterionAngleOfAzimuth() 268 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn( in testIsTarget_lastOwrAoAMeasurement_outsideCriterionAngleOfElevation() 299 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn( in testIsTarget_outsideTimeThreshold() 319 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn( in testUpdateAdvertiseTarget_outsideTimeThreshold() 371 when(mUwbInjector.getElapsedSinceBootMillis()).thenReturn(currentTimeMillis); in setupOwrAoaMeasurements()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/params/ |
D | CccDecoderTest.java | 117 private UwbInjector mUwbInjector; field in CccDecoderTest 125 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 127 mCccDecoder = new CccDecoder(mUwbInjector); in setUp() 194 .getDecoder(CccParams.PROTOCOL_NAME, mUwbInjector) in testGetCccRangingOpenedViaTlvDecoder() 208 .getDecoder(CccParams.PROTOCOL_NAME, mUwbInjector) in testGetCccSpecificationViaTlvDecoder()
|
D | AliroDecoderTest.java | 117 private UwbInjector mUwbInjector; field in AliroDecoderTest 125 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 127 mAliroDecoder = new AliroDecoder(mUwbInjector); in setUp() 198 .getDecoder(AliroParams.PROTOCOL_NAME, mUwbInjector) in testGetAliroRangingOpenedViaTlvDecoder() 212 .getDecoder(AliroParams.PROTOCOL_NAME, mUwbInjector) in testGetAliroSpecificationViaTlvDecoder()
|
D | AliroEncoderTest.java | 93 private UwbInjector mUwbInjector; field in AliroEncoderTest 101 mAliroEncoder = new AliroEncoder(mUwbInjector); in setUp() 103 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 119 TlvBuffer tlvs = TlvEncoder.getEncoder(AliroParams.PROTOCOL_NAME, mUwbInjector) in testAliroOpenRangingParamsViaTlvEncoder()
|
D | CccEncoderTest.java | 93 private UwbInjector mUwbInjector; field in CccEncoderTest 101 mCccEncoder = new CccEncoder(mUwbInjector); in setUp() 103 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 119 TlvBuffer tlvs = TlvEncoder.getEncoder(CccParams.PROTOCOL_NAME, mUwbInjector) in testCccOpenRangingParamsViaTlvEncoder()
|
D | GenericDecoderTest.java | 80 @Mock private UwbInjector mUwbInjector; field in GenericDecoderTest 90 when(mUwbInjector.getDeviceConfigFacade()).thenReturn(mDeviceConfigFacade); in setUp() 93 when(mUwbInjector.getFeatureFlags()).thenReturn(mFeatureFlags); in setUp() 95 mGenericDecoder = new GenericDecoder(mUwbInjector); in setUp()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/advertisement/ |
D | UwbAdvertiseManager.java | 37 private final UwbInjector mUwbInjector; field in UwbAdvertiseManager 41 this.mUwbInjector = uwbInjector; in UwbAdvertiseManager() 116 long currentTime = mUwbInjector.getElapsedSinceBootMillis(); in isWithinTimeThreshold() 126 long currentTime = mUwbInjector.getElapsedSinceBootMillis(); in updateAdvertiseTargetInfo()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/profile/ |
D | PacsControllerSessionTest.java | 87 private UwbInjector mUwbInjector; field in PacsControllerSessionTest 118 when(mUwbInjector.getUwbServiceCore()).thenReturn(mUwbServiceCore); in setUp() 120 when(mUwbInjector.getMultichipData()).thenReturn(mUwbMultiChipData); in setUp() 139 mUwbInjector, in setUp()
|
D | PacsControleeSessionTest.java | 93 private UwbInjector mUwbInjector; field in PacsControleeSessionTest 118 when(mUwbInjector.getUwbServiceCore()).thenReturn(mUwbServiceCore); in setUp() 120 when(mUwbInjector.getMultichipData()).thenReturn(mUwbMultichipData); in setUp() 137 mUwbInjector, in setUp()
|