Home
last modified time | relevance | path

Searched refs:SpaEnvironmentFactory (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/
DSpaEnvironmentTest.kt40 SpaEnvironmentFactory.reset() in testSpaEnvironmentFactory()
41 Truth.assertThat(SpaEnvironmentFactory.isReady()).isFalse() in testSpaEnvironmentFactory()
43 SpaEnvironmentFactory.instance in testSpaEnvironmentFactory()
46 SpaEnvironmentFactory.reset(spaEnvironment) in testSpaEnvironmentFactory()
47 Truth.assertThat(SpaEnvironmentFactory.isReady()).isTrue() in testSpaEnvironmentFactory()
48 Truth.assertThat(SpaEnvironmentFactory.instance).isEqualTo(spaEnvironment) in testSpaEnvironmentFactory()
53 SpaEnvironmentFactory.reset() in testSpaEnvironmentFactoryForPreview()
55 Truth.assertThat(SpaEnvironmentFactory.isReady()).isFalse() in testSpaEnvironmentFactoryForPreview()
56 SpaEnvironmentFactory.resetForPreview() in testSpaEnvironmentFactoryForPreview()
57 Truth.assertThat(SpaEnvironmentFactory.isReady()).isTrue() in testSpaEnvironmentFactoryForPreview()
DSettingsEntryTest.kt132 SpaEnvironmentFactory.reset(spaEnvironment) in testSetAttributes()
175 SpaEnvironmentFactory.reset() in testSetAttributes()
189 SpaEnvironmentFactory.reset(spaEnvironment) in testSetMarco()
214 SpaEnvironmentFactory.reset(spaEnvironment) in testSetSliceDataFn()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/
DSliceUtil.kt28 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
97 val context = SpaEnvironmentFactory.instance.appContext in createBroadcastPendingIntent()
99 SpaEnvironmentFactory.instance.sliceBroadcastReceiverClass ?: return null in createBroadcastPendingIntent()
105 val context = SpaEnvironmentFactory.instance.appContext in createBrowsePendingIntent()
106 val browseActivityClass = SpaEnvironmentFactory.instance.browseActivityClass ?: return null in createBrowsePendingIntent()
113 val context = SpaEnvironmentFactory.instance.appContext in createBrowsePendingIntent()
114 val browseActivityClass = SpaEnvironmentFactory.instance.browseActivityClass ?: return null in createBrowsePendingIntent()
DSpaSliceProvider.kt25 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
34 if (!SpaEnvironmentFactory.isReady()) return null in getOrPutSliceData()
35 val sliceRepository by SpaEnvironmentFactory.instance.sliceDataRepository in getOrPutSliceData()
DSpaSliceBroadcastReceiver.kt22 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
26 val sliceRepository by SpaEnvironmentFactory.instance.sliceDataRepository in onReceive()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/
DGalleryApplication.kt20 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
25 SpaEnvironmentFactory.reset(GallerySpaEnvironment(this)) in onCreate()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DSpaIntent.kt23 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
42 val context = SpaEnvironmentFactory.instance.appContext in createBaseIntent()
43 val browseActivityClass = SpaEnvironmentFactory.instance.browseActivityClass ?: return null in createBaseIntent()
DEntryLogger.kt26 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory in <lambda>()
33 SpaEnvironmentFactory.instance.logger.event( in <lambda>()
DPageLogger.kt27 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
42 SpaEnvironmentFactory.instance.logger.event( in SettingsPage()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/
DSpaBaseDialogActivity.kt24 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
28 private val spaEnvironment get() = SpaEnvironmentFactory.instance
DSpaDialogWindowTypeActivity.kt26 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
35 private val spaEnvironment get() = SpaEnvironmentFactory.instance
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/
DBrowseActivityTest.kt31 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
60 SpaEnvironmentFactory.reset(spaEnvironment) in browseContent_onNavigate_logPageEvent()
96 SpaEnvironmentFactory.reset(spaEnvironment) in browseContent_whenDisabled_noLogPageEvent()
120 SpaEnvironmentFactory.reset(spaEnvironment) in browseContent_dialog()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/slice/
DSliceUtilTest.kt25 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
62 SpaEnvironmentFactory.reset(spaEnvironment) in createBroadcastPendingIntentTest()
79 SpaEnvironmentFactory.reset(spaEnvironment) in createBrowsePendingIntentTest()
DSettingsSliceDataRepositoryTest.kt26 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
48 SpaEnvironmentFactory.reset(spaEnvironment) in getOrBuildSliceDataTest()
73 SpaEnvironmentFactory.reset(spaEnvironment) in getActiveSliceDataTest()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/provider/
DDemo.kt28 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
43 val context = SpaEnvironmentFactory.instance.appContext in createDemoSlice()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/common/
DSettingsPageProvider.kt99 if (!SpaEnvironmentFactory.isReady()) return null in getPageProvider()
100 val pageProviderRepository by SpaEnvironmentFactory.instance.pageProviderRepository in getPageProvider()
DSpaEnvironment.kt29 object SpaEnvironmentFactory { object
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/debug/
DDebugProvider.kt30 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
52 private val spaEnvironment get() = SpaEnvironmentFactory.instance
193 val context = SpaEnvironmentFactory.instance.appContext in createBrowseAdbCommand()
194 val browseActivityClass = SpaEnvironmentFactory.instance.browseActivityClass ?: return null in createBrowseAdbCommand()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/
DSpaIntentTest.kt24 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
39 SpaEnvironmentFactory.reset(spaEnvironment) in setEnvironment()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/preference/
DPreferencePageModel.kt29 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
60 private val spaLogger = SpaEnvironmentFactory.instance.logger
DPreferencePageProvider.kt35 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory in <lambda>()
79 private val spaLogger = SpaEnvironmentFactory.instance.logger in <lambda>()
301 SpaEnvironmentFactory.resetForPreview() in PreferencePagePreview()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/home/
DHomePageProvider.kt25 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
82 return SpaEnvironmentFactory.instance.appContext.getString(R.string.app_name) in getTitle()
104 SpaEnvironmentFactory.resetForPreview() in HomeScreenPreview()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/
DArgumentPageModel.kt26 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
100 SpaEnvironmentFactory.instance.logger.message( in initialize()
DArgumentPage.kt27 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
123 SpaEnvironmentFactory.resetForPreview() in ArgumentPagePreview()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/search/
DSpaSearchProviderTest.kt27 import com.android.settingslib.spa.framework.common.SpaEnvironmentFactory
55 SpaEnvironmentFactory.reset(spaEnvironment) in testQuerySearchStatusData()
109 SpaEnvironmentFactory.reset(spaEnvironment) in testQuerySearchIndexData()
202 SpaEnvironmentFactory.reset(spaEnvironment) in testQuerySearchIndexRow()

12