Lines Matching refs:activity
212 Activity activity = mActivityReference.get();
213 if (activity != null) {
214 activity.finish();
220 Activity activity = mActivityReference.get();
221 if (activity != null) {
222 activity.runOnUiThread(runnable);
274 // Only change the state if the activity is still around.
275 Activity activity = mActivityReference.get();
276 if (activity != null && activity instanceof ProximitySensorAware) {
277 ((ProximitySensorAware) activity).enableProximitySensor();
283 // Only change the state if the activity is still around.
284 Activity activity = mActivityReference.get();
285 if (activity != null && activity instanceof ProximitySensorAware) {
286 ((ProximitySensorAware) activity).disableProximitySensor(true);
408 Activity activity = mActivityReference.get();
409 if (activity != null) {
410 activity.setVolumeControlStream(streamType);