Home
last modified time | relevance | path

Searched refs:activity (Results 1 – 25 of 183) sorted by relevance

12345678

/external/deqp/framework/platform/android/
DtcuAndroidNativeActivity.cpp29 static void onStartCallback (ANativeActivity* activity) in onStartCallback() argument
31 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStart(); in onStartCallback()
34 static void onResumeCallback (ANativeActivity* activity) in onResumeCallback() argument
36 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onResume(); in onResumeCallback()
39 static void* onSaveInstanceStateCallback (ANativeActivity* activity, size_t* outSize) in onSaveInstanceStateCallback() argument
41 …return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onSaveInstanceState(outSize… in onSaveInstanceStateCallback()
44 static void onPauseCallback (ANativeActivity* activity) in onPauseCallback() argument
46 return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onPause(); in onPauseCallback()
49 static void onStopCallback (ANativeActivity* activity) in onStopCallback() argument
51 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStop(); in onStopCallback()
[all …]
DtcuAndroidUtil.cpp163 string getIntentStringExtra (JNIEnv* env, jobject activity, const char* name) in getIntentStringExtra() argument
167 const jclass activityCls = getObjectClass(env, activity); in getIntentStringExtra()
168 …const LocalRef intent (env, env->CallObjectMethod(activity, getMethodID(env, activityCls, "getIn… in getIntentStringExtra()
186 void setRequestedOrientation (JNIEnv* env, jobject activity, ScreenOrientation orientation) in setRequestedOrientation() argument
188 const jclass activityCls = getObjectClass(env, activity); in setRequestedOrientation()
191 env->CallVoidMethod(activity, setOrientationId, (int)orientation); in setRequestedOrientation()
377 bool supportsAny64BitABI (ANativeActivity* activity) in supportsAny64BitABI() argument
379 const ScopedJNIEnv env(activity->vm); in supportsAny64BitABI()
384 jobject getPackageManager (JNIEnv* env, jobject activity) in getPackageManager() argument
386 const jclass activityCls = getObjectClass(env, activity); in getPackageManager()
[all …]
DtcuAndroidTestActivity.cpp41 TestThread::TestThread (NativeActivity& activity, const CommandLine& cmdLine) in TestThread() argument
42 : RenderThread (activity) in TestThread()
44 , m_platform (activity) in TestThread()
45 , m_archive (activity.getNativeActivity()->assetManager) in TestThread()
87 TestActivity::TestActivity (ANativeActivity* activity) in TestActivity() argument
88 : RenderActivity (activity) in TestActivity()
89 , m_cmdLine (getIntentStringExtra(activity, "cmdLine")) in TestActivity()
97 ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_KEEP_SCREEN_ON | in TestActivity()
DtcuAndroidUtil.hpp48 std::string getIntentStringExtra (ANativeActivity* activity, const char* name);
49 void setRequestedOrientation (ANativeActivity* activity, ScreenOrientation orientation);
53 void describePlatform (ANativeActivity* activity, std::ostream& dst);
55 bool hasSystemFeature (ANativeActivity* activity, const char* name);
82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
86 size_t getCDDRequiredSystemMemory (ANativeActivity* activity);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DActivityTest.java41 DialogLifeCycleActivity activity = new DialogLifeCycleActivity(); in shouldComplainIfActivityIsDestroyedWithRegisteredBroadcastReceivers() local
42 activity.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldComplainIfActivityIsDestroyedWithRegisteredBroadcastReceivers()
43 activity.onDestroy(); in shouldComplainIfActivityIsDestroyedWithRegisteredBroadcastReceivers()
48 DialogLifeCycleActivity activity = new DialogLifeCycleActivity(); in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers() local
53 activity.onDestroy(); // should not throw exception in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers()
58 DialogLifeCycleActivity activity = new DialogLifeCycleActivity(); in shouldNotRegisterNullBroadcastReceiver() local
59 activity.registerReceiver(null, new IntentFilter()); in shouldNotRegisterNullBroadcastReceiver()
61 activity.onDestroy(); in shouldNotRegisterNullBroadcastReceiver()
67 Activity activity = new Activity() { in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity() local
73 activity.startActivityForResult(new Intent().setType("audio/*"), 123); in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
[all …]
DFragmentActivityTest.java26 private TestFragmentActivity activity; field in FragmentActivityTest
31 activity = new TestFragmentActivity(); in setUp()
32 activity.onCreate(null); in setUp()
33 … fragment = (TestFragment) activity.getSupportFragmentManager().findFragmentByTag("fragment_tag"); in setUp()
38 assertNotNull(activity.getSupportFragmentManager()); in shouldHaveAFragmentManager()
48 … Fragment fragmentById = activity.getSupportFragmentManager().findFragmentById(R.id.fragment); in viewLoader_shouldSetFragmentId()
54 …assertSame(fragment.onCreateViewReturnValue, activity.findViewById(TestFragment.FRAGMENT_VIEW_ID)); in viewLoader_shouldInsertFragmentViewIntoLayout()
59 assertSame(activity, fragment.getActivity()); in viewLoader_shouldSetFragmentsActivity()
64 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment); in viewLoader_shouldCreateContainerView()
70 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment); in viewLoader_shouldInsertFragmentViewIntoContainer()
[all …]
DAlarmManagerTest.java25 private MyActivity activity; field in AlarmManagerTest
31 activity = new MyActivity(); in setUp()
32 alarmManager = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); in setUp()
43 …Manager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in shouldSupportSet()
53 … PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in shouldSupportSetRepeating()
60 …Manager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in setShouldReplaceDuplicates()
61 …Manager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in setShouldReplaceDuplicates()
66 … AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in setRepeatingShouldReplaceDuplicates()
67 … AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in setRepeatingShouldReplaceDuplicates()
76 …endingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity.… in shouldSupportGetNextScheduledAlarm()
[all …]
DContextWrapperTest.java114 Activity activity = new Activity(); in shouldReturnSameApplicationEveryTime() local
115 assertThat(activity.getApplication(), sameInstance(activity.getApplication())); in shouldReturnSameApplicationEveryTime()
117 assertThat(activity.getApplication(), sameInstance(new Activity().getApplication())); in shouldReturnSameApplicationEveryTime()
122 Activity activity = new Activity(); in shouldReturnSameApplicationContextEveryTime() local
123 … assertThat(activity.getApplicationContext(), sameInstance(activity.getApplicationContext())); in shouldReturnSameApplicationContextEveryTime()
125 …assertThat(activity.getApplicationContext(), sameInstance(new Activity().getApplicationContext())); in shouldReturnSameApplicationContextEveryTime()
130 Activity activity = new Activity(); in shouldReturnSameContentResolverEveryTime() local
131 assertThat(activity.getContentResolver(), sameInstance(activity.getContentResolver())); in shouldReturnSameContentResolverEveryTime()
133 … assertThat(activity.getContentResolver(), sameInstance(new Activity().getContentResolver())); in shouldReturnSameContentResolverEveryTime()
172 Activity activity = new Activity(); in assertSameInstanceEveryTime() local
[all …]
DPreferenceActivityTest.java24 private TestPreferenceActivity activity; field in PreferenceActivityTest
29 activity = new TestPreferenceActivity(); in setUp()
30 shadow = Robolectric.shadowOf(activity); in setUp()
36 assertThat( activity.getListView(), notNullValue() ); in shouldGetListView()
46 assertThat(activity.getPreferenceScreen(), nullValue()); in shouldNotInitializePreferenceScreen()
52 activity.addPreferencesFromResource(R.xml.preferences); in shouldRecordPreferencesResourceId()
58 activity.addPreferencesFromResource(R.xml.preferences); in shouldLoadPreferenceScreen()
59 assertThat( activity.getPreferenceScreen().getPreferenceCount(), equalTo(6)); in shouldLoadPreferenceScreen()
DViewInnerTextTest.java18 private Context activity; field in ViewInnerTextTest
22 activity = new Activity(); in setUp()
27 LinearLayout top = new LinearLayout(activity); in testInnerText()
29 top.addView(new View(activity)); in testInnerText()
32 LinearLayout innerLayout = new LinearLayout(activity); in testInnerText()
48 LinearLayout top = new LinearLayout(activity); in shouldOnlyIncludeViewTextViewsText()
58 LinearLayout top = new LinearLayout(activity); in shouldNotPrefixBogusSpaces()
71 TextView textView = new TextView(activity); in textView()
DFragmentManagerTest.java35 private TestFragmentActivity activity; field in FragmentManagerTest
40 activity = new TestFragmentActivity(); in setUp()
41 activity.onCreate(null); in setUp()
42 manager = (TestFragmentManager) activity.getSupportFragmentManager(); in setUp()
44 containerView = (ViewGroup) activity.findViewById(CONTAINER_VIEW_ID); in setUp()
70 assertSame(activity, fragment.onAttachActivity); in addFragment_shouldCallLifecycleMethods()
71 assertSame(activity, fragment.getActivity()); in addFragment_shouldCallLifecycleMethods()
87 assertEquals(fragment.onCreateViewInflater, activity.getLayoutInflater()); in startFragment_shouldCallLifecycleMethods()
110 … View fragmentViewParent = (View) activity.findViewById(TestFragment.FRAGMENT_VIEW_ID).getParent(); in startFragment_shouldInsertTheFragmentViewIntoTheContainerView()
111 …assertThat(activity.findViewById(TestFragment.FRAGMENT_VIEW_ID), sameInstance(fragment.onCreateVie… in startFragment_shouldInsertTheFragmentViewIntoTheContainerView()
[all …]
DTabActivityTest.java20 TabActivity activity = new TabActivity(); in tabActivityShouldNotMakeNewTabHostEveryGet() local
21 TabHost tabHost1 = activity.getTabHost(); in tabActivityShouldNotMakeNewTabHostEveryGet()
22 TabHost tabHost2 = activity.getTabHost(); in tabActivityShouldNotMakeNewTabHostEveryGet()
29 TabActivity activity = new TabActivity(); in shouldGetTabWidget() local
30 activity.setContentView(R.layout.tab_activity); in shouldGetTabWidget()
31 assertThat(activity.getTabWidget(), instanceOf(TabWidget.class)); in shouldGetTabWidget()
DAccountManagerTest.java28 private Activity activity; field in AccountManagerTest
35 activity = new Activity(); in setUp()
36 accountManager = AccountManager.get(activity); in setUp()
46 …untManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null… in testGetAuthTokenByFeatures_isCancelled()
56 …untManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null… in testGetAuthTokenByFeatures_isDoneWithCancel()
66 …untManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null… in testGetAuthTokenByFeatures_isDoneWithGetResult()
82 …untManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null… in testGetAuthTokenByFeatures_getResult()
93 accountManager.getAuthToken(ACCOUNT, authTokenType, null, activity, null, null); in testGetAuthToken_getResult()
102 AccountManager ref = AccountManager.get(activity); in testAccountManagerIsSingleton()
/external/skia/platform_tools/android/third_party/native_app_glue/
Dandroid_native_app_glue.c134 android_app->activity->assetManager); in android_app_pre_exec_cmd()
211 AConfiguration_fromAssetManager(android_app->config, android_app->activity->assetManager); in android_app_entry()
242 static struct android_app* android_app_create(ANativeActivity* activity, in android_app_create() argument
246 android_app->activity = activity; in android_app_create()
335 static void onDestroy(ANativeActivity* activity) { in onDestroy() argument
336 LOGV("Destroy: %p\n", activity); in onDestroy()
337 android_app_free((struct android_app*)activity->instance); in onDestroy()
340 static void onStart(ANativeActivity* activity) { in onStart() argument
341 LOGV("Start: %p\n", activity); in onStart()
342 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_START); in onStart()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowFragment.java20 protected FragmentActivity activity; field in ShadowFragment
34 public void setActivity(FragmentActivity activity) { in setActivity() argument
35 this.activity = activity; in setActivity()
45 return activity; in getActivity()
55 activity.startActivityForResult(intent, requestCode); in startActivityForResult()
60 return activity.getSupportFragmentManager(); in getFragmentManager()
77 if (activity == null) { in getResources()
80 return activity.getResources(); in getResources()
123 if (activity == null) { in getString()
126 return activity.getString(resId); in getString()
[all …]
/external/droiddriver/src/io/appium/droiddriver/runner/
DTestRunner.java97 for (Activity activity : activitiesCopy) { in onStart()
98 if (!activity.isFinishing()) { in onStart()
100 Logs.log(Log.INFO, "Stopping activity: " + activity); in onStart()
101 activity.finish(); in onStart()
175 public void callActivityOnDestroy(Activity activity) { in callActivityOnDestroy() argument
176 super.callActivityOnDestroy(activity); in callActivityOnDestroy()
178 activities.remove(activity); in callActivityOnDestroy()
183 public void callActivityOnCreate(Activity activity, Bundle bundle) { in callActivityOnCreate() argument
184 super.callActivityOnCreate(activity, bundle); in callActivityOnCreate()
186 activities.add(activity); in callActivityOnCreate()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/matchers/
DStartedMatcherTest.java24 private Activity activity; field in StartedMatcherTest
32 activity = new Activity(); in setUp()
39 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but d… in shouldSayDidntStartAnythingIfNothingWasStarted()
42 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class, "view") + … in shouldSayDidntStartAnythingIfNothingWasStarted()
45 …givesFailureMessage((Context) activity, "to start " + intentWithExtra + ", but didn't start anythi… in shouldSayDidntStartAnythingIfNothingWasStarted()
52 activity.startActivity(actualIntent); in shouldSayStartedSomethingIfWrongThingWasStarted()
54 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but s… in shouldSayStartedSomethingIfWrongThingWasStarted()
56 activity.startActivity(actualIntent); in shouldSayStartedSomethingIfWrongThingWasStarted()
58 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class, "view") + … in shouldSayStartedSomethingIfWrongThingWasStarted()
60 activity.startActivity(actualIntent); in shouldSayStartedSomethingIfWrongThingWasStarted()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/
Dandroid_browser_backend_settings.py13 def __init__(self, activity, cmdline_file, package, pseudo_exec_name, argument
15 self._activity = activity
22 def activity(self): member in AndroidBrowserBackendSettings
62 activity='com.google.android.apps.chrome.Main',
75 activity='org.chromium.content_shell_apk.ContentShellActivity',
88 activity='org.chromium.webview_shell.TelemetryActivity', argument
91 activity=activity,
112 self.activity)
127 activity='org.chromium.android_webview.shell.AwShellActivity',
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
DActivityModule.java27 private final Activity activity; field in ActivityModule
29 public ActivityModule(Activity activity) { in ActivityModule() argument
30 this.activity = activity; in ActivityModule()
36 @Provides @PerActivity Activity activity() { in activity() method in ActivityModule
37 return activity; in activity()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DCaptureActivityHandler.java40 private final CaptureActivity activity; field in CaptureActivityHandler
51 CaptureActivityHandler(CaptureActivity activity, in CaptureActivityHandler() argument
54 this.activity = activity; in CaptureActivityHandler()
55 decodeThread = new DecodeThread(activity, characterSet, in CaptureActivityHandler()
56 new ViewfinderResultPointCallback(activity.getViewfinderView())); in CaptureActivityHandler()
84 activity.handleDecode((Result) message.obj, barcode); in handleMessage()
91 activity.setResult(Activity.RESULT_OK, (Intent) message.obj); in handleMessage()
92 activity.finish(); in handleMessage()
98 activity.startActivity(intent); in handleMessage()
124 activity.drawViewfinder(); in restartPreviewAndDecode()
DInactivityTimer.java41 private final Activity activity; field in InactivityTimer
45 InactivityTimer(Activity activity) { in InactivityTimer() argument
46 this.activity = activity; in InactivityTimer()
54 inactivityFuture = inactivityTimer.schedule(new FinishListener(activity), in onActivity()
66 activity.unregisterReceiver(powerStatusReceiver); in onPause()
70 activity.registerReceiver(powerStatusReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in onResume()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DUnhandledExceptionHandler.java35 private final Activity activity; field in UnhandledExceptionHandler
37 public UnhandledExceptionHandler(final Activity activity) { in UnhandledExceptionHandler() argument
38 this.activity = activity; in UnhandledExceptionHandler()
42 activity.runOnUiThread(new Runnable() { in uncaughtException()
46 TextView errorView = new TextView(activity); in uncaughtException()
49 ScrollView scrollingContainer = new ScrollView(activity); in uncaughtException()
61 new AlertDialog.Builder(activity); in uncaughtException()
/external/chromium-trace/catapult/devil/devil/android/
Dapk_helper.py86 activity = (
91 if '.' not in activity:
92 activity = '%s.%s' % (self.GetPackageName(), activity)
93 elif activity.startswith('.'):
94 activity = '%s%s' % (self.GetPackageName(), activity)
95 return activity
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ui/
DActivityTitleController.java32 private final Activity activity; field in ActivityTitleController
34 @Inject public ActivityTitleController(Activity activity) { in ActivityTitleController() argument
35 this.activity = activity; in ActivityTitleController()
39 activity.setTitle(title); in setTitle()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DRequestManagerRetriever.java97 public RequestManager get(FragmentActivity activity) { in get() argument
99 return get(activity.getApplicationContext()); in get()
101 assertNotDestroyed(activity); in get()
102 FragmentManager fm = activity.getSupportFragmentManager(); in get()
103 return supportFragmentGet(activity, fm); in get()
123 public RequestManager get(Activity activity) { in get() argument
125 return get(activity.getApplicationContext()); in get()
127 assertNotDestroyed(activity); in get()
128 android.app.FragmentManager fm = activity.getFragmentManager(); in get()
129 return fragmentGet(activity, fm); in get()
[all …]

12345678