Searched refs:application (Results 1 - 25 of 108) sorted by relevance

12345

/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/viewmodeltest/
H A DTestViewModel.java25 public TestViewModel(Application application) { argument
26 super(application);
/frameworks/support/lifecycle/viewmodel/src/main/java/androidx/lifecycle/
H A DAndroidViewModel.java34 public AndroidViewModel(@NonNull Application application) { argument
35 mApplication = application;
39 * Return the application.
H A DViewModelProvider.java172 * @param application an application to pass in {@link AndroidViewModel}
176 public static AndroidViewModelFactory getInstance(@NonNull Application application) { argument
178 sInstance = new AndroidViewModelFactory(application);
188 * @param application an application to pass in {@link AndroidViewModel}
190 public AndroidViewModelFactory(@NonNull Application application) { argument
191 mApplication = application;
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/
H A DSupportAndroidTestAppPlugin.kt30 * Support library specific com.android.application plugin that sets common configurations needed
39 val application = project.extensions.findByType(AppExtension::class.java)
41 application.defaultConfig.minSdkVersion(testAppExtension.minSdkVersion)
44 project.apply(mapOf("plugin" to "com.android.application"))
47 val application = project.extensions.findByType(AppExtension::class.java)
50 application.compileSdkVersion(SupportConfig.CURRENT_SDK_VERSION)
51 application.defaultConfig.targetSdkVersion(SupportConfig.CURRENT_SDK_VERSION)
53 application.buildToolsVersion = SupportConfig.BUILD_TOOLS_VERSION
55 application.defaultConfig.versionCode = 1
56 application
[all...]
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/
H A DSupportAndroidTestAppPlugin.kt30 * Support library specific com.android.application plugin that sets common configurations needed
39 val application = project.extensions.findByType(AppExtension::class.java)
41 application.defaultConfig.minSdkVersion(testAppExtension.minSdkVersion)
44 project.apply(mapOf("plugin" to "com.android.application"))
47 val application = project.extensions.findByType(AppExtension::class.java)
50 application.compileSdkVersion(SupportConfig.CURRENT_SDK_VERSION)
51 application.defaultConfig.targetSdkVersion(SupportConfig.CURRENT_SDK_VERSION)
53 application.buildToolsVersion = SupportConfig.BUILD_TOOLS_VERSION
55 application.defaultConfig.versionCode = 1
56 application
[all...]
/frameworks/support/lifecycle/extensions/src/main/java/androidx/lifecycle/
H A DViewModelProviders.java42 Application application = activity.getApplication();
43 if (application == null) {
47 return application;
101 Application application = checkApplication(checkActivity(fragment));
103 factory = ViewModelProvider.AndroidViewModelFactory.getInstance(application);
122 Application application = checkApplication(activity);
124 factory = ViewModelProvider.AndroidViewModelFactory.getInstance(application);
141 * @param application an application to pass in {@link AndroidViewModel}
146 public DefaultFactory(@NonNull Application application) { argument
[all...]
/frameworks/base/test-mock/src/android/test/mock/
H A DMockService.java36 Application application) {
42 application,
34 attachForTesting(Service service, Context context, String serviceClassName, Application application) argument
/frameworks/base/tools/aapt2/link/
H A DManifestFixer_test.cpp101 <application>
108 </application>
204 <application android:name=".MainApplication" />
213 xml::Element* application_el = manifest_el->FindChild("", "application");
251 <application android:name=".MainApplication" text="hello">
254 </application>
275 xml::Element* application_el = manifest_el->FindChild({}, "application");
426 <application>
427 </application>
433 <application androi
[all...]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
H A DFillContentLayoutTest.java20 import static org.robolectric.RuntimeEnvironment.application;
39 application,
54 View child = new View(application);
56 application,
72 View child = new View(application);
74 application,
H A DRichTextViewTest.java30 import static org.robolectric.RuntimeEnvironment.application;
64 RichTextView textView = new RichTextView(application);
88 RichTextView textView = new RichTextView(application);
110 TestContext context = spy(new TestContext(application));
127 RichTextView textView = new RichTextView(application);
146 RichTextView textView = new RichTextView(application);
165 RichTextView textView = new RichTextView(application);
186 RichTextView view = new RichTextView(application);
196 RichTextView textView = new RichTextView(application);
209 RichTextView textView = new RichTextView(application);
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
H A DServiceListingTest.java45 mServiceListing = new ServiceListing.Builder(RuntimeEnvironment.application)
69 Settings.Secure.putString(RuntimeEnvironment.application.getContentResolver(),
77 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
79 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
86 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
88 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
95 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
97 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(),
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
H A DWizardManagerHelperTest.java22 import static org.robolectric.RuntimeEnvironment.application;
291 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1);
292 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 1);
293 assertTrue(WizardManagerHelper.isUserSetupComplete(application));
295 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 0);
296 assertFalse(WizardManagerHelper.isUserSetupComplete(application));
302 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 1);
303 assertTrue(WizardManagerHelper.isUserSetupComplete(application));
305 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 0);
306 assertFalse(WizardManagerHelper.isUserSetupComplete(application));
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
H A DSimStatusImeiInfoPreferenceControllerTest.java46 RuntimeEnvironment.application) {
57 extract(RuntimeEnvironment.application.getSystemService(UserManager.class));
60 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class));
69 extract(RuntimeEnvironment.application.getSystemService(UserManager.class));
72 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class));
81 extract(RuntimeEnvironment.application.getSystemService(UserManager.class));
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DUtilsTest.java36 final Drawable drawable = Utils.getBluetoothDrawable(RuntimeEnvironment.application,
44 final Drawable drawable = Utils.getBluetoothDrawable(RuntimeEnvironment.application,
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
H A DLinkSpanTest.java22 import static org.robolectric.RuntimeEnvironment.application;
41 final TestContext context = new TestContext(application);
52 final TextView textView = new TextView(application);
63 final TestContext context = new TestContext(application);
75 final TestContext context = new TestContext(application);
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/
H A DSwitchItemTest.java24 import static org.robolectric.RuntimeEnvironment.application;
55 LayoutInflater inflater = LayoutInflater.from(application);
198 View view = LayoutInflater.from(application).inflate(R.layout.suw_items_switch, null);
207 ViewGroup root = new FrameLayout(application);
209 TextView titleView = new TextView(application);
213 TextView summaryView = new TextView(application);
217 FrameLayout iconContainer = new FrameLayout(application);
221 ImageView iconView = new ImageView(application);
225 mSwitch = new SwitchCompat(application);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DCustomEditTextPreferenceTest.java47 mPreference = new TestPreference(RuntimeEnvironment.application);
53 final EditText editText = spy(new EditText(RuntimeEnvironment.application));
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor_test.cpp29 XmlNodeAction& application_action = manifest_action["application"];
38 application_action.Action([&](Element* application) -> bool {
39 application_el = application;
44 test::BuildXmlDom("<manifest><application /></manifest>");
52 EXPECT_EQ(std::string("application"), application_el->name);
57 executor["manifest"]["application"];
62 doc = test::BuildXmlDom("<manifest><application /><activity /></manifest>");
65 doc = test::BuildXmlDom("<manifest><application><activity /></application></manifest>");
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
H A DDimensionConsistencyTest.java20 import static org.robolectric.RuntimeEnvironment.application;
47 mContext = new ContextThemeWrapper(application, R.style.SuwThemeGlif_Light);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/testutils/shadow/
H A DShadowActivityManager.java63 RuntimeEnvironment.application.getSystemService(ActivityManager.class));
/frameworks/base/wifi/tests/assets/hsr1/
H A DHSR1ProfileWithCACert.conf6 Content-Type: application/x-passpoint-profile; charset=UTF-8
50 Content-Type: application/x-x509-ca-cert
/frameworks/opt/car/setupwizard/library/tests/robotests/src/com/android/car/setupwizardlib/util/
H A DCarWizardManagerHelperTest.java143 Context context = RuntimeEnvironment.application;
154 Context context = RuntimeEnvironment.application;
165 Context context = RuntimeEnvironment.application;
176 Context context = RuntimeEnvironment.application;
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
H A DRequireScrollMixinTest.java30 import static org.robolectric.RuntimeEnvironment.application;
66 doReturn(application).when(mTemplateLayout).getContext();
126 final NavigationBar navigationBar = new NavigationBar(application);
148 final Button button = new Button(application);
H A DScrollViewScrollHandlingDelegateTest.java24 import static org.robolectric.RuntimeEnvironment.application;
53 mScrollView = spy(new BottomScrollView(application));
/frameworks/opt/setupwizard/library/recyclerview/test/robotest/src/com/android/setupwizardlib/template/
H A DRecyclerViewScrollHandlingDelegateTest.java25 import static org.robolectric.RuntimeEnvironment.application;
55 mRecyclerView = spy(new RecyclerView(application));

Completed in 421 milliseconds

12345