Home
last modified time | relevance | path

Searched refs:NearbyManager (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/nearby/tests/integration/privileged/src/android/nearby/integration/privileged/
DNearbyManagerTest.kt23 import android.nearby.NearbyManager
55 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartScanStopScan_fromPrivilegedApp_succeed()
78 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartBroadcastStopBroadcast_fromPrivilegedApp_succeed()
104 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetPoweredOffFindingEphemeralIds_fromPrivilegedApp_succeed()
107 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return in testNearbyManagerSetPoweredOffFindingEphemeralIds_fromPrivilegedApp_succeed()
120 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetPoweredOffFindingEphemeralIds_wrongSize_throwsException()
123 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return in testNearbyManagerSetPoweredOffFindingEphemeralIds_wrongSize_throwsException()
136 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetGetPoweredOffMode_fromPrivilegedApp_succeed()
139 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return in testNearbyManagerSetGetPoweredOffMode_fromPrivilegedApp_succeed()
141 nearbyManager.setPoweredOffFindingMode(NearbyManager.POWERED_OFF_FINDING_MODE_DISABLED) in testNearbyManagerSetGetPoweredOffMode_fromPrivilegedApp_succeed()
[all …]
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DNearbyManagerTest.java37 import android.nearby.NearbyManager;
89 private NearbyManager mNearbyManager;
132 mNearbyManager = mContext.getSystemService(NearbyManager.class); in setUp()
204 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return; in testsetPoweredOffFindingEphemeralIds()
215 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return; in testsetPoweredOffFindingEphemeralIds_noPrivilegedPermission()
230 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return; in testSetAndGetPoweredOffFindingMode_enabled()
237 NearbyManager.POWERED_OFF_FINDING_MODE_ENABLED); in testSetAndGetPoweredOffFindingMode_enabled()
239 .isEqualTo(NearbyManager.POWERED_OFF_FINDING_MODE_ENABLED); in testSetAndGetPoweredOffFindingMode_enabled()
248 == NearbyManager.POWERED_OFF_FINDING_MODE_UNSUPPORTED) return; in testSetAndGetPoweredOffFindingMode_disabled()
251 NearbyManager.POWERED_OFF_FINDING_MODE_DISABLED); in testSetAndGetPoweredOffFindingMode_disabled()
[all …]
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/
DNearbyManagerTest.kt23 import android.nearby.NearbyManager
61 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartScan_fromUnTrustedApp_throwsException()
83 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStopScan_fromUnTrustedApp_logsError()
110 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartBroadcast_fromUnTrustedApp_throwsException()
139 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStopBroadcast_fromUnTrustedApp_logsError()
160 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetPoweredOffFindingEphemeralIds_fromUnTrustedApp_throwsException()
174 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetPoweredOffFindingMode_fromUnTrustedApp_throwsException()
177 nearbyManager.setPoweredOffFindingMode(NearbyManager.POWERED_OFF_FINDING_MODE_ENABLED) in testNearbyManagerSetPoweredOffFindingMode_fromUnTrustedApp_throwsException()
187 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerGetPoweredOffFindingMode_fromUnTrustedApp_throwsException()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/
DPresenceManager.java28 import android.nearby.NearbyManager;
83 NearbyManager manager = getNearbyManager();
129 private NearbyManager getNearbyManager() { in getNearbyManager()
130 return (NearbyManager) in getNearbyManager()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DNearbyFrameworkInitializer.java43 NearbyManager.class, in registerServiceWrappers()
46 return new NearbyManager(context, service); in registerServiceWrappers()
DNearbyManager.java61 public class NearbyManager { class
153 NearbyManager(@NonNull Context context, @NonNull INearbyManager service) { in NearbyManager() method in NearbyManager
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/
DDiscoveryManager.java20 import android.nearby.NearbyManager;
35 @NearbyManager.ScanStatus
DDiscoveryProviderManagerLegacy.java30 import android.nearby.NearbyManager;
241 @NearbyManager.ScanStatus
260 return NearbyManager.ScanStatus.SUCCESS; in registerScanListener()
270 return NearbyManager.ScanStatus.UNKNOWN; in registerScanListener()
274 return NearbyManager.ScanStatus.ERROR; in registerScanListener()
281 return NearbyManager.ScanStatus.SUCCESS; in registerScanListener()
DDiscoveryProviderManager.java29 import android.nearby.NearbyManager;
162 @NearbyManager.ScanStatus
169 return NearbyManager.ScanStatus.SUCCESS; in registerScanListener()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/
DNearbyService.java37 import android.nearby.NearbyManager;
107 @NearbyManager.ScanStatus
/packages/modules/Connectivity/framework-t/api/
Dsystem-current.txt61 public class NearbyManager {