Searched defs:application (Results 1 - 21 of 21) sorted by relevance

/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/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
H A DMockContext.java723 public Context createApplicationContext(ApplicationInfo application, int flags) argument
/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/services/robotests/src/com/android/server/backup/testing/
H A DBackupManagerServiceTestUtils.java61 public static PowerManager.WakeLock createBackupWakeLock(Application application) { argument
63 (PowerManager) application.getSystemService(Context.POWER_SERVICE);
/frameworks/support/room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/
H A DCustomerViewModel.java46 public CustomerViewModel(Application application) { argument
47 super(application);
/frameworks/base/test-runner/src/android/test/
H A DServiceTestCase.java37 * <p>For more information about application testing, read the
213 * object refers to a communication channel between the application and
222 * method. An example of this is in the ApiDemos sample application, in the
295 * Sets the application that is used during the test. If you do not call this method,
298 * @param application The Application object that is used by the service under test.
302 public void setApplication(Application application) { argument
303 mApplication = application;
309 * @return The application object.
H A DActivityUnitTestCase.java187 * Set the application for use during the test. You must call this function before calling
189 * @param application The Application object that will be injected into the Activity under test.
191 public void setApplication(Application application) { argument
192 mApplication = application;
/frameworks/base/cmds/app_process/
H A Dapp_main.cpp4 * Starts the interpreted runtime, then starts up the application.
215 // --application : Start in application (stand alone, non zygote) mode.
273 bool application = false; local
285 } else if (strcmp(arg, "--application") == 0) {
286 application = true;
301 // to RuntimeInit is the application argument.
305 args.add(application ? String8("application") : String8("tool"));
/frameworks/base/core/java/android/app/
H A DService.java38 * A Service is an application component representing either an application's desire
48 * <p>Note that services, like other application objects, run in the main
83 * it runs in the same process as the application it is part of.
91 * <li>A facility for the application to tell the system <em>about</em>
93 * directly interacting with the application). This corresponds to calls to
97 * <li>A facility for an application to expose some of its functionality to
228 * foreground application, but in practice this should not be a concern.)
240 * <p>Other application components running in the same process as the service
249 * running alongside other parts of an application, i
753 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
H A DInstrumentation.java63 * Base class for implementing application instrumentation code. When running
65 * before any of the application code, allowing you to monitor all of the
66 * interaction the system has with the application. An Instrumentation
133 * Called when the instrumentation is starting, before any application code
140 * loop so that the application can run), you can simply begin your
142 * begin the appropriate first activity of the application.
166 * application, so that it can perform blocking operation such as
177 * was thrown by the application. The default implementation simply
194 * Provide a status report about the application.
224 * Terminate instrumentation of the application
1178 newActivity(Class<?> clazz, Context context, IBinder token, Application application, Intent intent, ActivityInfo info, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstance) argument
[all...]
H A DContextImpl.java144 * context object for Activity and other application components.
383 // At least one application in the world actually passes in a null
2062 public Context createApplicationContext(ApplicationInfo application, int flags) argument
2064 LoadedApk pi = mMainThread.getPackageInfo(application, mResources.getCompatibilityInfo(),
2068 new UserHandle(UserHandle.getUserId(application.uid)), flags, null);
2081 "Application package " + application.packageName + " not found");
2094 // The system resources are loaded in every application, so we can safely copy
2405 // location for application.
H A DActivity.java187 * <p>The Activity class is an important part of an application's overall lifecycle,
189 * part of the platform's application model. For a detailed perspective on the structure of an
190 * Android application and how activities behave, please read the
206 * screens, and help scale their application between small and large screens.</p>
425 * vs. those targeting prior platforms. Starting with Honeycomb, an application
428 * safely called after {@link #onPause()}) and allows an application to safely
433 * will always be called after {@link #onStop}, so an application may safely
463 * <p>This is done because any application resource,
595 * preferences that are shared across multiple application components
600 * (Note that it is not possible to share settings data across application
7044 attach(Context context, ActivityThread aThread, Instrumentation instr, IBinder token, int ident, Application application, Intent intent, ActivityInfo info, CharSequence title, Activity parent, String id, NonConfigurationInstances lastNonConfigurationInstances, Configuration config, String referrer, IVoiceInteractor voiceInteractor, Window window, ActivityConfigCallback activityConfigCallback) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContextWrapper.java864 public Context createApplicationContext(ApplicationInfo application, argument
866 return mBase.createApplicationContext(application, flags);
H A DContext.java84 * Interface to global information about an application environment. This is
87 * allows access to application-specific resources and classes, as well as
88 * up-calls for application-level operations such as launching activities,
125 * be accessed by the calling application (or all applications sharing the
182 * sometimes desired in cases where the application has multiple
285 * Flag for {@link #bindService}: indicates that the client application
307 * just like a regular application process in the background.
344 * @hide Flag for {@link #bindService}: allows application hosting service to manage whitelists
406 * calling application's package, rather than the package in which the service is declared.
409 * application'
4726 createApplicationContext(ApplicationInfo application, @CreatePackageOptions int flags) argument
[all...]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java217 * @param targetSdkVersion the targetSdkVersion of the application.
1350 public Context createApplicationContext(ApplicationInfo application, int flags) argument
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java2205 * @param application The application whose content is shown by the views.
2210 protected RemoteViews(ApplicationInfo application, int layoutId) { argument
2211 mApplication = application;
3313 // RemoteViews may be built by an application installed in another
3677 // Get the application for the passed in package and user.
3678 Application application = ActivityThread.currentApplication();
3679 if (application == null) {
3683 ApplicationInfo applicationInfo = application.getApplicationInfo();
3687 Context context = application
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java219 InputApplicationHandle application);
622 "Injecting to another application requires INJECT_EVENTS permission");
1482 public void setFocusedApplication(InputApplicationHandle application) { argument
1483 nativeSetFocusedApplication(mPtr, application);
218 nativeSetFocusedApplication(long ptr, InputApplicationHandle application) argument
/frameworks/base/tools/aapt/
H A DResource.cpp952 sp<XMLNode> application = root->getChildElement(String16(), String16("application")); local
953 if (application != NULL) {
954 if (!addTagAttribute(application, RESOURCES_ANDROID_NAMESPACE, "debuggable", "true",
978 sp<XMLNode> application = root->getChildElement(String16(), String16("application")); local
979 if (application != NULL) {
980 fullyQualifyClassName(origPackage, application, String16("name"));
981 fullyQualifyClassName(origPackage, application, String16("backupAgent"));
983 Vector<sp<XMLNode> >& children = const_cast<Vector<sp<XMLNode> >&>(application
1015 sp<XMLNode> application = root->getChildElement(String16(), String16("application")); local
[all...]

Completed in 384 milliseconds