Home
last modified time | relevance | path

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

1234567891011

/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.cpp33 static string getIntentStringExtra (JNIEnv* env, jobject activity, const char* name) in getIntentStringExtra() argument
37 jclass activityCls = env->GetObjectClass(activity); in getIntentStringExtra()
38 …jobject intent = env->CallObjectMethod(activity, env->GetMethodID(activityCls, "getIntent", "()L… in getIntentStringExtra()
62 string getIntentStringExtra (ANativeActivity* activity, const char* name) in getIntentStringExtra() argument
64 return getIntentStringExtra(activity->env, activity->clazz, name); in getIntentStringExtra()
67 static void setRequestedOrientation (JNIEnv* env, jobject activity, ScreenOrientation orientation) in setRequestedOrientation() argument
69 jclass activityCls = env->GetObjectClass(activity); in setRequestedOrientation()
72 env->CallVoidMethod(activity, setOrientationId, (int)orientation); in setRequestedOrientation()
75 void setRequestedOrientation (ANativeActivity* activity, ScreenOrientation orientation) in setRequestedOrientation() argument
77 setRequestedOrientation(activity->env, activity->clazz, orientation); in setRequestedOrientation()
/external/robolectric/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()
/external/chromium_org/base/android/java/src/org/chromium/base/
DApplicationStatus.java102 public void onActivityStateChange(Activity activity, int newState); in onActivityStateChange() argument
118 public void onWindowFocusChanged(Activity activity, boolean hasFocus) { in initialize()
119 if (!hasFocus || activity == sActivity) return; in initialize()
121 int state = getStateForActivity(activity); in initialize()
124 sActivity = activity; in initialize()
133 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in initialize()
134 onStateChange(activity, ActivityState.CREATED); in initialize()
138 public void onActivityDestroyed(Activity activity) { in initialize()
139 onStateChange(activity, ActivityState.DESTROYED); in initialize()
143 public void onActivityPaused(Activity activity) { in initialize()
[all …]
DBaseChromiumApplication.java25 public void onWindowFocusChanged(Activity activity, boolean hasFocus); in onWindowFocusChanged() argument
38 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in onCreate()
39 Window.Callback callback = activity.getWindow().getCallback(); in onCreate()
40 activity.getWindow().setCallback(new WindowCallbackWrapper(callback) { in onCreate()
46 listener.onWindowFocusChanged(activity, hasFocus); in onCreate()
53 public void onActivityDestroyed(Activity activity) { in onCreate()
54 assert activity.getWindow().getCallback() instanceof WindowCallbackWrapper; in onCreate()
58 public void onActivityPaused(Activity activity) { in onCreate()
59 assert activity.getWindow().getCallback() instanceof WindowCallbackWrapper; in onCreate()
63 public void onActivityResumed(Activity activity) { in onCreate()
[all …]
DMemoryPressureListener.java69 public static boolean handleDebugIntent(Activity activity, String action) { in handleDebugIntent() argument
71 simulateLowMemoryPressureSignal(activity); in handleDebugIntent()
73 simulateTrimMemoryPressureSignal(activity, ComponentCallbacks2.TRIM_MEMORY_COMPLETE); in handleDebugIntent()
75 simulateTrimMemoryPressureSignal(activity, ComponentCallbacks2.TRIM_MEMORY_MODERATE); in handleDebugIntent()
77 simulateTrimMemoryPressureSignal(activity, in handleDebugIntent()
97 private static void simulateLowMemoryPressureSignal(Activity activity) { in simulateLowMemoryPressureSignal() argument
101 activity.getApplication().onLowMemory(); in simulateLowMemoryPressureSignal()
102 activity.onLowMemory(); in simulateLowMemoryPressureSignal()
105 private static void simulateTrimMemoryPressureSignal(Activity activity, int level) { in simulateTrimMemoryPressureSignal() argument
109 activity.getApplication().onTrimMemory(level); in simulateTrimMemoryPressureSignal()
[all …]
/external/chromium_org/athena/activity/
Dactivity_manager_impl.cc23 views::Widget* CreateWidget(Activity* activity) { in CreateWidget() argument
24 ActivityViewModel* view_model = activity->GetActivityViewModel(); in CreateWidget()
32 activity->GetActivityViewModel()->Init(); in CreateWidget()
36 views::Widget* GetWidget(Activity* activity) { in GetWidget() argument
37 CHECK(activity); in GetWidget()
38 CHECK(activity->GetWindow()); in GetWidget()
39 return views::Widget::GetWidgetForNativeWindow(activity->GetWindow()); in GetWidget()
57 void ActivityManagerImpl::AddActivity(Activity* activity) { in AddActivity() argument
59 std::find(activities_.begin(), activities_.end(), activity)); in AddActivity()
60 activities_.push_back(activity); in AddActivity()
[all …]
/external/chromium_org/components/cronet/android/test/javatests/src/org/chromium/cronet_test_apk/
DCronetUrlTest.java30 CronetTestActivity activity = launchCronetTestAppWithUrl(URL); in testLoadUrl() local
33 assertNotNull(activity); in testLoadUrl()
38 assertEquals(URL, activity.getUrl()); in testLoadUrl()
39 assertEquals(200, activity.getHttpStatusCode()); in testLoadUrl()
45 CronetTestActivity activity = launchCronetTestAppWithUrl( in testInvalidUrl() local
49 assertNotNull(activity); in testInvalidUrl()
54 assertEquals(0, activity.getHttpStatusCode()); in testInvalidUrl()
62 CronetTestActivity activity = in testPostData() local
67 assertNotNull(activity); in testPostData()
72 assertEquals(URL, activity.getUrl()); in testPostData()
[all …]
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DActivityLifecycleListener.java21 public void onActivityCreated(Activity activity, Bundle savedInstanceState); in onActivityCreated() argument
23 public boolean onActivityCreatedOptionsMenu(Activity activity, Menu menu); in onActivityCreatedOptionsMenu() argument
25 public void onActivityDestroyed(Activity activity); in onActivityDestroyed() argument
27 public boolean onActivityOptionsItemSelected(Activity activity, MenuItem item); in onActivityOptionsItemSelected() argument
29 public void onActivityPaused(Activity activity); in onActivityPaused() argument
31 public void onActivityResumed(Activity activity); in onActivityResumed() argument
33 public void onActivitySaveInstanceState(Activity activity, Bundle outState); in onActivitySaveInstanceState() argument
35 public void onActivityStarted(Activity activity); in onActivityStarted() argument
37 public void onActivityStopped(Activity activity); in onActivityStopped() argument
DDummyActivityLifecycleListener.java19 public void onActivityCreated (Activity activity, Bundle savedInstanceState) {} in onActivityCreated() argument
22 public void onActivityDestroyed (Activity activity) {} in onActivityDestroyed() argument
25 public void onActivityPaused (Activity activity) {} in onActivityPaused() argument
28 public void onActivityResumed (Activity activity) {} in onActivityResumed() argument
31 public void onActivitySaveInstanceState (Activity activity, Bundle outState) {} in onActivitySaveInstanceState() argument
34 public void onActivityStarted (Activity activity) {} in onActivityStarted() argument
37 public void onActivityStopped (Activity activity) {} in onActivityStopped() argument
40 public boolean onActivityCreatedOptionsMenu(Activity activity, Menu menu) { in onActivityCreatedOptionsMenu() argument
45 public boolean onActivityOptionsItemSelected(Activity activity, MenuItem item) { in onActivityOptionsItemSelected() argument
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/
DActivityWindowAndroid.java29 public ActivityWindowAndroid(Activity activity) { in ActivityWindowAndroid() argument
30 super(activity.getApplicationContext()); in ActivityWindowAndroid()
31 mActivityRef = new WeakReference<Activity>(activity); in ActivityWindowAndroid()
36 Activity activity = mActivityRef.get(); in showCancelableIntent() local
37 if (activity == null) return START_INTENT_FAILURE; in showCancelableIntent()
42 activity.startIntentSenderForResult( in showCancelableIntent()
54 Activity activity = mActivityRef.get(); in showCancelableIntent() local
55 if (activity == null) return START_INTENT_FAILURE; in showCancelableIntent()
60 activity.startActivityForResult(intent, requestCode); in showCancelableIntent()
71 Activity activity = mActivityRef.get(); in cancelIntent() local
[all …]
/external/robolectric/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/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DScreenOrientationProvider.java28 Activity activity) { in getOrientationFromWebScreenOrientations() argument
47 DeviceDisplayInfo displayInfo = DeviceDisplayInfo.create(activity); in getOrientationFromWebScreenOrientations()
71 public static void lockOrientation(byte webScreenOrientation, Activity activity) { in lockOrientation() argument
72 if (activity == null) return; in lockOrientation()
74 int orientation = getOrientationFromWebScreenOrientations(webScreenOrientation, activity); in lockOrientation()
79 activity.setRequestedOrientation(orientation); in lockOrientation()
84 Activity activity = ApplicationStatus.getLastTrackedFocusedActivity(); in unlockOrientation() local
85 if (activity == null) { in unlockOrientation()
93 int orientation = activity.getIntent().getIntExtra( in unlockOrientation()
97 (byte) orientation, activity); in unlockOrientation()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/share/
DShareHelper.java59 public static void share(boolean shareDirectly, Activity activity, String title, String url, in share() argument
62 shareWithLastUsed(activity, title, url, screenshot, extraIntentFlags); in share()
64 showShareDialog(activity, title, url, screenshot, extraIntentFlags); in share()
77 private static void showShareDialog(final Activity activity, final String title, in showShareDialog() argument
80 PackageManager manager = activity.getPackageManager(); in showShareDialog()
87 new ShareDialogAdapter(activity, manager, resolveInfoList); in showShareDialog()
88 AlertDialog.Builder builder = new AlertDialog.Builder(activity); in showShareDialog()
89 builder.setTitle(activity.getString(R.string.share_link_chooser_title)); in showShareDialog()
101 setLastShareComponentName(activity, component); in showShareDialog()
104 activity.startActivity(intent); in showShareDialog()
[all …]
/external/droiddriver/src/com/google/android/droiddriver/runner/
DTestRunner.java87 for (Activity activity : activitiesCopy) { in onStart()
88 if (!activity.isFinishing()) { in onStart()
90 Logs.log(Log.INFO, "Stopping activity: " + activity); in onStart()
91 activity.finish(); in onStart()
162 public void callActivityOnDestroy(Activity activity) { in callActivityOnDestroy() argument
163 super.callActivityOnDestroy(activity); in callActivityOnDestroy()
165 activities.remove(activity); in callActivityOnDestroy()
170 public void callActivityOnCreate(Activity activity, Bundle bundle) { in callActivityOnCreate() argument
171 super.callActivityOnCreate(activity, bundle); in callActivityOnCreate()
173 activities.add(activity); in callActivityOnCreate()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/
DGAEChannelClient.java68 Activity activity, String token, MessageHandler handler) { in GAEChannelClient() argument
69 webView = new WebView(activity); in GAEChannelClient()
87 new ProxyingMessageHandler(activity, handler, token); in GAEChannelClient()
107 private final Activity activity; field in GAEChannelClient.ProxyingMessageHandler
113 ProxyingMessageHandler(Activity activity, MessageHandler handler, in ProxyingMessageHandler() argument
115 this.activity = activity; in ProxyingMessageHandler()
133 activity.runOnUiThread(new Runnable() { in onOpen()
143 activity.runOnUiThread(new Runnable() { in onMessage()
153 activity.runOnUiThread(new Runnable() { in onClose()
164 activity.runOnUiThread(new Runnable() { in onError()
DUnhandledExceptionHandler.java52 private final Activity activity; field in UnhandledExceptionHandler
54 public UnhandledExceptionHandler(final Activity activity) { in UnhandledExceptionHandler() argument
55 this.activity = activity; in UnhandledExceptionHandler()
59 activity.runOnUiThread(new Runnable() { in uncaughtException()
63 TextView errorView = new TextView(activity); in uncaughtException()
66 ScrollView scrollingContainer = new ScrollView(activity); in uncaughtException()
78 new AlertDialog.Builder(activity); in uncaughtException()
/external/robolectric/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/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()
/external/chromium_org/athena/content/
Dcontent_activity_factory.cc23 Activity* activity = new WebActivity(browser_context, title, url); in CreateWebActivity() local
24 ActivityManager::Get()->AddActivity(activity); in CreateWebActivity()
25 return activity; in CreateWebActivity()
31 Activity* activity = new AppActivity(app_window, web_view); in CreateAppActivity() local
32 ActivityManager::Get()->AddActivity(activity); in CreateAppActivity()
33 return activity; in CreateAppActivity()
/external/chromium_org/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/
DCronetSampleTest.java45 CronetSampleActivity activity = launchCronetSampleWithUrl(URL); in testLoadUrl() local
48 assertNotNull(activity); in testLoadUrl()
50 assertEquals(URL, activity.getUrl()); in testLoadUrl()
51 assertEquals(200, activity.getHttpStatusCode()); in testLoadUrl()
98 final CronetSampleActivity activity = getActivity(); in waitForActiveShellToBeDoneLoading() local
109 if (activity != null) { in waitForActiveShellToBeDoneLoading()
117 isLoaded.set(!activity.isLoading() && !TextUtils in waitForActiveShellToBeDoneLoading()
118 .isEmpty(activity.getUrl())); in waitForActiveShellToBeDoneLoading()

1234567891011