Searched refs:NearbyManager (Results 1 – 11 of 11) sorted by relevance
23 import android.nearby.NearbyManager55 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 …]
37 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 …]
23 import android.nearby.NearbyManager61 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()
28 import android.nearby.NearbyManager;83 NearbyManager manager = getNearbyManager();129 private NearbyManager getNearbyManager() { in getNearbyManager()130 return (NearbyManager) in getNearbyManager()
43 NearbyManager.class, in registerServiceWrappers()46 return new NearbyManager(context, service); in registerServiceWrappers()
61 public class NearbyManager { class153 NearbyManager(@NonNull Context context, @NonNull INearbyManager service) { in NearbyManager() method in NearbyManager
20 import android.nearby.NearbyManager;35 @NearbyManager.ScanStatus
30 import android.nearby.NearbyManager;241 @NearbyManager.ScanStatus260 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()
29 import android.nearby.NearbyManager;162 @NearbyManager.ScanStatus169 return NearbyManager.ScanStatus.SUCCESS; in registerScanListener()
37 import android.nearby.NearbyManager;107 @NearbyManager.ScanStatus
61 public class NearbyManager {