Searched refs:NEARBY_SERVICE (Results 1 – 8 of 8) sorted by relevance
52 assertThat(appContext.getSystemService(Context.NEARBY_SERVICE)).isNotNull() in testContextGetNearbyService_fromUnTrustedApp_returnsNotNull()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()187 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerGetPoweredOffFindingMode_fromUnTrustedApp_throwsException()
49 assertThat(appContext.getSystemService(Context.NEARBY_SERVICE)).isNotNull() in testContextGetNearbySystemService_fromPrivilegedApp_returnsNoneNull()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()120 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetPoweredOffFindingEphemeralIds_wrongSize_throwsException()136 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerSetGetPoweredOffMode_fromPrivilegedApp_succeed()
89 Log.i(TAG, "Registering " + ConstantsShim.NEARBY_SERVICE); in onStart()90 publishBinderService(ConstantsShim.NEARBY_SERVICE, mNearbyService, in onStart()153 Log.i(TAG, "Skipping unsupported service " + ConstantsShim.NEARBY_SERVICE); in createNearbyService()
42 Context.NEARBY_SERVICE, in registerServiceWrappers()
60 @SystemService(Context.NEARBY_SERVICE)
57 public static final String NEARBY_SERVICE = "nearby"; field in ConstantsShim
41 assertThat(ctx.getSystemService(Context.NEARBY_SERVICE)).isNotNull(); in testServicesRegistered()
132 .getSystemService(Context.NEARBY_SERVICE); in getNearbyManager()