| /expo/android/expoview/src/main/java/host/exp/exponent/kernel/services/sensors/ |
| H A D | SubscribableSensorKernelService.kt | 17 override fun onExperienceForegrounded(experienceKey: ExperienceKey) { in onExperienceForegrounded() 21 override fun onExperienceBackgrounded(experienceKey: ExperienceKey) { in onExperienceBackgrounded() 51 experienceKey: ExperienceKey, in createSubscriptionForListener() 55 SensorKernelServiceSubscription(experienceKey, this, listener) in createSubscriptionForListener() 59 experienceScopeKeySubscriptionsMap[experienceKey.scopeKey]!!.add( in createSubscriptionForListener() 69 val experienceKey = subscriptionToRemove.experienceKey in removeSubscription() constant 72 experienceScopeKeySubscriptionsMap[experienceKey.scopeKey]!! in removeSubscription() 91 val experienceKey = sensorKernelServiceSubscription.experienceKey in onSubscriptionEnabledChanged() constant 98 if (getEnabledListenersForExperienceKey(experienceKey) == 0) { in onSubscriptionEnabledChanged() 114 val mapKey = experienceKey?.scopeKey in getEnabledListenersForExperienceKey() [all …]
|
| /expo/android/expoview/src/main/java/host/exp/exponent/notifications/ |
| H A D | ExponentNotificationManager.kt | 83 channel.group = experienceKey.scopeKey in createNotificationChannel() 91 experienceKey: ExperienceKey, in saveChannelSettings() 118 experienceKey: ExperienceKey, in getNotificationChannel() 125 experienceKey, in getNotificationChannel() 137 getScopedChannelId(experienceKey, channelId) in deleteNotificationChannel() 175 fun cancelAll(experienceKey: ExperienceKey) { in cancelAll() 209 experienceKey: ExperienceKey, in schedule() 216 type = experienceKey.scopeKey in schedule() 246 type = experienceKey.scopeKey in cancelScheduled() 254 cancel(experienceKey, id) in cancelScheduled() [all …]
|
| H A D | ScopedNotificationsUtils.kt | 15 fun shouldHandleNotification(notification: Notification, experienceKey: ExperienceKey): Boolean { in shouldHandleNotification() 16 return shouldHandleNotification(notification.notificationRequest, experienceKey) in shouldHandleNotification() 21 experienceKey: ExperienceKey in shouldHandleNotification() 25 return notificationRequest.checkIfBelongsToExperience(experienceKey) in shouldHandleNotification() 34 …enceIsCurrentExperience = foreignNotificationExperienceKey != null && experienceKey.scopeKey == fo… in shouldHandleNotification()
|
| H A D | NotificationHelper.kt | 176 experienceKey: ExperienceKey, in createChannel() 210 experienceKey, in createChannel() 230 experienceKey: ExperienceKey, in createChannel() 259 experienceKey, in createChannel() 275 experienceKey: ExperienceKey, in createChannel() 330 experienceKey: ExperienceKey, in maybeCreateLegacyStoredChannel() 340 experienceKey, in maybeCreateLegacyStoredChannel() 384 experienceKey, in showNotification() 397 experienceKey, in showNotification() 455 experienceKey, in showNotification() [all …]
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/universal/ |
| H A D | ExpoModuleRegistryAdapter.kt | 23 experienceKey: ExperienceKey, in createNativeModules() 31 moduleRegistry.registerInternalModule(ScopedAccelerometerService(experienceKey)) in createNativeModules() 32 moduleRegistry.registerInternalModule(ScopedGravitySensorService(experienceKey)) in createNativeModules() 33 moduleRegistry.registerInternalModule(ScopedGyroscopeService(experienceKey)) in createNativeModules() 34 moduleRegistry.registerInternalModule(ScopedLinearAccelerationSensorService(experienceKey)) in createNativeModules() 35 moduleRegistry.registerInternalModule(ScopedMagnetometerService(experienceKey)) in createNativeModules() 36 moduleRegistry.registerInternalModule(ScopedMagnetometerUncalibratedService(experienceKey)) in createNativeModules() 37 moduleRegistry.registerInternalModule(ScopedRotationVectorSensorService(experienceKey)) in createNativeModules() 53 moduleRegistry.registerInternalModule(ScopedPermissionsService(scopedContext, experienceKey)) in createNativeModules() 62 moduleRegistry.registerExportedModule(ScopedNotificationsEmitter(scopedContext, experienceKey)) in createNativeModules() [all …]
|
| H A D | ScopedErrorRecoveryModule.kt | 13 val experienceKey: ExperienceKey constant 24 mSharedPreferences.edit().putString(experienceKey.scopeKey, props).commit() in setRecoveryProps() 28 return mSharedPreferences.getString(experienceKey.scopeKey, null)?.let { in consumeRecoveryProps() 29 mSharedPreferences.edit().remove(experienceKey.scopeKey).commit() in consumeRecoveryProps()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/notifications/ |
| H A D | ScopedNotificationsIdUtils.java | 20 …public static String getScopedChannelId(@NonNull ExperienceKey experienceKey, @NonNull String chan… in getScopedChannelId() argument 21 return SCOPED_CHANNEL_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedChannelId() 25 …public static String getScopedGroupId(@NonNull ExperienceKey experienceKey, @NonNull String channe… in getScopedGroupId() argument 26 return SCOPED_GROUP_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedGroupId() 30 …public static String getScopedCategoryId(@NonNull ExperienceKey experienceKey, @NonNull String cat… in getScopedCategoryId() argument 31 return getScopedCategoryIdRaw(experienceKey.getScopeKey(), categoryId); in getScopedCategoryId() 66 return checkIfIdBelongsToExperience(experienceKey, channelGroup.getId()); in checkIfGroupBelongsToExperience() 71 return checkIfIdBelongsToExperience(experienceKey, channel.getId()); in checkIfChannelBelongsToExperience() 75 return checkIfIdBelongsToExperience(experienceKey, category.getIdentifier()); in checkIfCategoryBelongsToExperience() 78 …private static boolean checkIfIdBelongsToExperience(@NonNull ExperienceKey experienceKey, @NonNull… in checkIfIdBelongsToExperience() argument [all …]
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/notifications/ |
| H A D | ScopedNotificationsIdUtils.java | 20 …public static String getScopedChannelId(@NonNull ExperienceKey experienceKey, @NonNull String chan… in getScopedChannelId() argument 21 return SCOPED_CHANNEL_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedChannelId() 25 …public static String getScopedGroupId(@NonNull ExperienceKey experienceKey, @NonNull String channe… in getScopedGroupId() argument 26 return SCOPED_GROUP_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedGroupId() 30 …public static String getScopedCategoryId(@NonNull ExperienceKey experienceKey, @NonNull String cat… in getScopedCategoryId() argument 31 return getScopedCategoryIdRaw(experienceKey.getScopeKey(), categoryId); in getScopedCategoryId() 66 return checkIfIdBelongsToExperience(experienceKey, channelGroup.getId()); in checkIfGroupBelongsToExperience() 71 return checkIfIdBelongsToExperience(experienceKey, channel.getId()); in checkIfChannelBelongsToExperience() 75 return checkIfIdBelongsToExperience(experienceKey, category.getIdentifier()); in checkIfCategoryBelongsToExperience() 78 …private static boolean checkIfIdBelongsToExperience(@NonNull ExperienceKey experienceKey, @NonNull… in checkIfIdBelongsToExperience() argument [all …]
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/notifications/ |
| H A D | ScopedNotificationsIdUtils.java | 20 …public static String getScopedChannelId(@NonNull ExperienceKey experienceKey, @NonNull String chan… in getScopedChannelId() argument 21 return SCOPED_CHANNEL_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedChannelId() 25 …public static String getScopedGroupId(@NonNull ExperienceKey experienceKey, @NonNull String channe… in getScopedGroupId() argument 26 return SCOPED_GROUP_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedGroupId() 30 …public static String getScopedCategoryId(@NonNull ExperienceKey experienceKey, @NonNull String cat… in getScopedCategoryId() argument 31 return getScopedCategoryIdRaw(experienceKey.getScopeKey(), categoryId); in getScopedCategoryId() 66 return checkIfIdBelongsToExperience(experienceKey, channelGroup.getId()); in checkIfGroupBelongsToExperience() 71 return checkIfIdBelongsToExperience(experienceKey, channel.getId()); in checkIfChannelBelongsToExperience() 75 return checkIfIdBelongsToExperience(experienceKey, category.getIdentifier()); in checkIfCategoryBelongsToExperience() 78 …private static boolean checkIfIdBelongsToExperience(@NonNull ExperienceKey experienceKey, @NonNull… in checkIfIdBelongsToExperience() argument [all …]
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/notifications/ |
| H A D | ScopedNotificationsIdUtils.java | 20 …public static String getScopedChannelId(@NonNull ExperienceKey experienceKey, @NonNull String chan… in getScopedChannelId() argument 21 return SCOPED_CHANNEL_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedChannelId() 25 …public static String getScopedGroupId(@NonNull ExperienceKey experienceKey, @NonNull String channe… in getScopedGroupId() argument 26 return SCOPED_GROUP_TAG + SEPARATOR + experienceKey.getScopeKey() + SEPARATOR + channelId; in getScopedGroupId() 30 …public static String getScopedCategoryId(@NonNull ExperienceKey experienceKey, @NonNull String cat… in getScopedCategoryId() argument 31 return getScopedCategoryIdRaw(experienceKey.getScopeKey(), categoryId); in getScopedCategoryId() 66 return checkIfIdBelongsToExperience(experienceKey, channelGroup.getId()); in checkIfGroupBelongsToExperience() 71 return checkIfIdBelongsToExperience(experienceKey, channel.getId()); in checkIfChannelBelongsToExperience() 75 return checkIfIdBelongsToExperience(experienceKey, category.getIdentifier()); in checkIfCategoryBelongsToExperience() 78 …private static boolean checkIfIdBelongsToExperience(@NonNull ExperienceKey experienceKey, @NonNull… in checkIfIdBelongsToExperience() argument [all …]
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/universal/ |
| H A D | ExpoModuleRegistryAdapter.kt | 23 experienceKey: ExperienceKey, in createNativeModules() 31 moduleRegistry.registerInternalModule(ScopedAccelerometerService(experienceKey)) in createNativeModules() 32 moduleRegistry.registerInternalModule(ScopedGravitySensorService(experienceKey)) in createNativeModules() 33 moduleRegistry.registerInternalModule(ScopedGyroscopeService(experienceKey)) in createNativeModules() 34 moduleRegistry.registerInternalModule(ScopedLinearAccelerationSensorService(experienceKey)) in createNativeModules() 35 moduleRegistry.registerInternalModule(ScopedMagnetometerService(experienceKey)) in createNativeModules() 36 moduleRegistry.registerInternalModule(ScopedMagnetometerUncalibratedService(experienceKey)) in createNativeModules() 37 moduleRegistry.registerInternalModule(ScopedRotationVectorSensorService(experienceKey)) in createNativeModules() 50 moduleRegistry.registerInternalModule(ScopedPermissionsService(scopedContext, experienceKey)) in createNativeModules() 56 moduleRegistry.registerExportedModule(ScopedNotificationsEmitter(scopedContext, experienceKey)) in createNativeModules() [all …]
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/universal/ |
| H A D | ExpoModuleRegistryAdapter.kt | 23 experienceKey: ExperienceKey, in createNativeModules() 31 moduleRegistry.registerInternalModule(ScopedAccelerometerService(experienceKey)) in createNativeModules() 32 moduleRegistry.registerInternalModule(ScopedGravitySensorService(experienceKey)) in createNativeModules() 33 moduleRegistry.registerInternalModule(ScopedGyroscopeService(experienceKey)) in createNativeModules() 34 moduleRegistry.registerInternalModule(ScopedLinearAccelerationSensorService(experienceKey)) in createNativeModules() 35 moduleRegistry.registerInternalModule(ScopedMagnetometerService(experienceKey)) in createNativeModules() 36 moduleRegistry.registerInternalModule(ScopedMagnetometerUncalibratedService(experienceKey)) in createNativeModules() 37 moduleRegistry.registerInternalModule(ScopedRotationVectorSensorService(experienceKey)) in createNativeModules() 47 moduleRegistry.registerInternalModule(ScopedPermissionsService(scopedContext, experienceKey)) in createNativeModules() 53 moduleRegistry.registerExportedModule(ScopedNotificationsEmitter(scopedContext, experienceKey)) in createNativeModules() [all …]
|
| /expo/android/expoview/src/main/java/host/exp/exponent/kernel/services/ |
| H A D | ErrorRecoveryManager.kt | 15 class ErrorRecoveryManager(private val experienceKey: ExperienceKey?) { constant in host.exp.exponent.kernel.services.ErrorRecoveryManager 31 if (experienceKey != null) { in markErrored() 32 val metadata = exponentSharedPreferences.getExperienceMetadata(experienceKey) ?: JSONObject() in markErrored() 35 exponentSharedPreferences.updateExperienceMetadata(experienceKey, metadata) in markErrored() 73 @JvmStatic fun getInstance(experienceKey: ExperienceKey): ErrorRecoveryManager { in getInstance() 74 if (!experienceScopeKeyToManager.containsKey(experienceKey.scopeKey)) { in getInstance() 75 experienceScopeKeyToManager[experienceKey.scopeKey] = ErrorRecoveryManager(experienceKey) in getInstance() 77 return experienceScopeKeyToManager[experienceKey.scopeKey]!! in getInstance()
|
| H A D | PermissionsKernelService.kt | 17 fun grantScopedPermissions(permission: String, experienceKey: ExperienceKey) { in grantScopedPermissions() 19 var metadata = exponentSharedPreferences.getExperienceMetadata(experienceKey) in grantScopedPermissions() 28 exponentSharedPreferences.updateExperienceMetadata(experienceKey, metadata) in grantScopedPermissions() 34 fun revokeScopedPermissions(permission: String, experienceKey: ExperienceKey) { in revokeScopedPermissions() 36 val metadata = exponentSharedPreferences.getExperienceMetadata(experienceKey) ?: return in revokeScopedPermissions() 43 exponentSharedPreferences.updateExperienceMetadata(experienceKey, metadata) in revokeScopedPermissions() 51 fun hasGrantedPermissions(permission: String, experienceKey: ExperienceKey): Boolean { in hasGrantedPermissions() 76 experienceKey: ExperienceKey in getPermissions() 88 hasGrantedPermissions(permission, experienceKey) in getPermissions() 102 override fun onExperienceForegrounded(experienceKey: ExperienceKey) {} in onExperienceForegrounded() [all …]
|
| H A D | BaseKernelService.kt | 14 abstract fun onExperienceForegrounded(experienceKey: ExperienceKey) in onExperienceForegrounded() 15 abstract fun onExperienceBackgrounded(experienceKey: ExperienceKey) in onExperienceForegrounded() 19 onExperienceBackgrounded(event.experienceKey) in onExperienceForegrounded() 23 currentExperienceKey = event.experienceKey in onEvent() 24 onExperienceForegrounded(event.experienceKey) in onEvent()
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ |
| H A D | ExpoModuleRegistryAdapter.kt | 35 experienceKey: ExperienceKey, in <lambda>() 43 moduleRegistry.registerInternalModule(ScopedAccelerometerService(experienceKey)) in <lambda>() 44 moduleRegistry.registerInternalModule(ScopedGravitySensorService(experienceKey)) in <lambda>() 45 moduleRegistry.registerInternalModule(ScopedGyroscopeService(experienceKey)) in <lambda>() 47 moduleRegistry.registerInternalModule(ScopedMagnetometerService(experienceKey)) in <lambda>() 49 moduleRegistry.registerInternalModule(ScopedRotationVectorSensorService(experienceKey)) in <lambda>() 100 ScopedNotificationsEmitter(scopedContext, experienceKey), in <lambda>() 101 ScopedNotificationsHandler(scopedContext, experienceKey), in <lambda>() 103 ScopedNotificationScheduler(scopedContext, experienceKey), in <lambda>() 104 ScopedExpoNotificationPresentationModule(scopedContext, experienceKey), in <lambda>() [all …]
|
| /expo/android/expoview/src/main/java/host/exp/exponent/experience/ |
| H A D | BaseExperienceActivity.kt | 20 abstract class ExperienceEvent internal constructor(val experienceKey: ExperienceKey) constant in host.exp.exponent.experience.BaseExperienceActivity.ExperienceEvent 22 class ExperienceForegroundedEvent internal constructor(experienceKey: ExperienceKey) : 23 ExperienceEvent(experienceKey) 25 class ExperienceBackgroundedEvent internal constructor(experienceKey: ExperienceKey) : 26 ExperienceEvent(experienceKey) 28 class ExperienceContentLoaded(experienceKey: ExperienceKey) : ExperienceEvent(experienceKey) 56 return experienceKey != null || this@BaseExperienceActivity is HomeActivity in onResume() 62 experienceKey!! in onResume() 71 if (experienceKey != null) { in onPause() 72 EventBus.getDefault().post(ExperienceBackgroundedEvent(experienceKey!!)) in onPause()
|
| /expo/android/expoview/src/main/java/host/exp/exponent/notifications/managers/ |
| H A D | SchedulerManagerImpl.kt | 33 override fun removeAll(experienceKey: ExperienceKey?) { in removeAll() 36 cancelAlreadyScheduled(experienceKey) in removeAll() 40 if (experienceKey == null || value.ownerExperienceKey == experienceKey) { in removeAll() 51 override fun cancelAlreadyScheduled(experienceKey: ExperienceKey?) { in cancelAlreadyScheduled() 55 if (experienceKey == null || scheduler.ownerExperienceKey == experienceKey) { in cancelAlreadyScheduled()
|
| H A D | SchedulersManagerProxy.kt | 17 override fun removeAll(experienceKey: ExperienceKey?) { in removeAll() 18 singleThreadExecutor.execute { schedulersManager.removeAll(experienceKey) } in removeAll() 21 override fun cancelAlreadyScheduled(experienceKey: ExperienceKey?) { in cancelAlreadyScheduled() 22 singleThreadExecutor.execute { schedulersManager.cancelAlreadyScheduled(experienceKey) } in cancelAlreadyScheduled()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/internal/ |
| H A D | ExponentAsyncStorageModule.kt | 23 private fun experienceKeyToDatabaseName(experienceKey: ExperienceKey): String { in experienceKeyToDatabaseName() 24 return "RKStorage-scoped-experience-" + experienceKey.getUrlEncodedScopeKey() in experienceKeyToDatabaseName() 30 val experienceKey = ExperienceKey.fromManifest(manifest) constant 31 val databaseName = experienceKeyToDatabaseName(experienceKey)
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/notifications/ |
| H A D | ScopedExpoNotificationCategoriesModule.kt | 12 private val experienceKey: ExperienceKey constant in versioned.host.exp.exponent.modules.universal.notifications.ScopedExpoNotificationCategoriesModule 20 …val scopedCategoryIdentifier = ScopedNotificationsIdUtils.getScopedCategoryId(experienceKey, ident… in setNotificationCategoryAsync() 30 …val scopedCategoryIdentifier = ScopedNotificationsIdUtils.getScopedCategoryId(experienceKey, ident… in deleteNotificationCategoryAsync() 36 .filter { ScopedNotificationsIdUtils.checkIfCategoryBelongsToExperience(experienceKey, it) } in serializeCategories()
|
| /expo/android/expoview/src/main/java/host/exp/exponent/notifications/schedulers/ |
| H A D | SchedulerImpl.kt | 22 val experienceKey = schedulerModel.ownerExperienceKey in schedule() constant 27 manager.schedule(experienceKey, notificationId, details, nextAppearanceTime, null) in schedule() 39 val experienceKey = schedulerModel.ownerExperienceKey in cancel() constant 41 manager.cancel(experienceKey, notificationId) in cancel()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/universal/notifications/ |
| H A D | ScopedNotificationsEmitter.kt | 9 class ScopedNotificationsEmitter(context: Context, private val experienceKey: ExperienceKey) : constant 14 if (scopedNotificationsUtils.shouldHandleNotification(notification, experienceKey)) { in onNotificationReceived() 20 …turn if (scopedNotificationsUtils.shouldHandleNotification(response.notification, experienceKey)) { in onNotificationResponseReceived()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/universal/notifications/ |
| H A D | ScopedNotificationsEmitter.kt | 9 class ScopedNotificationsEmitter(context: Context, private val experienceKey: ExperienceKey) : constant 14 if (scopedNotificationsUtils.shouldHandleNotification(notification, experienceKey)) { in onNotificationReceived() 20 …turn if (scopedNotificationsUtils.shouldHandleNotification(response.notification, experienceKey)) { in onNotificationResponseReceived()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/universal/notifications/ |
| H A D | ScopedNotificationsEmitter.kt | 9 class ScopedNotificationsEmitter(context: Context, private val experienceKey: ExperienceKey) : constant 14 if (scopedNotificationsUtils.shouldHandleNotification(notification, experienceKey)) { in onNotificationReceived() 20 …turn if (scopedNotificationsUtils.shouldHandleNotification(response.notification, experienceKey)) { in onNotificationResponseReceived()
|