/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
IntentFilterTest.java | 3 import android.content.IntentFilter; 15 IntentFilter intentFilter = new IntentFilter(); 16 intentFilter.addDataScheme("http"); 17 intentFilter.addDataScheme("ftp"); 19 assertThat(intentFilter.getDataScheme(0), equalTo("http")); 20 assertThat(intentFilter.getDataScheme(1), equalTo("ftp")); 25 IntentFilter intentFilter = new IntentFilter() [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
DeviceUtils.java | 22 import android.content.IntentFilter; 51 // configure the IntentFilter 52 IntentFilter intentFilter = new IntentFilter(); 53 intentFilter.addAction(AudioManager.ACTION_HDMI_AUDIO_PLUG); 54 Intent intent = context.registerReceiver(null, intentFilter);
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/ |
EditEmergencyContactsFragmentTest.java | 20 import android.content.IntentFilter; 53 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_PICK); 54 intentFilter.addDataType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); 57 getInstrumentation().addMonitor(intentFilter, null, true /* block */);
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
SystemStateProviderTest.java | 27 import android.content.IntentFilter; 88 ArgumentCaptor<IntentFilter> intentFilter = ArgumentCaptor.forClass(IntentFilter.class); 90 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture()); 92 assertEquals(2, intentFilter.getValue().countActions()); 93 assertEquals(UiModeManager.ACTION_ENTER_CAR_MODE, intentFilter.getValue().getAction(0)); 94 assertEquals(UiModeManager.ACTION_EXIT_CAR_MODE, intentFilter.getValue().getAction(1)); 103 verify(mContext).registerReceiver(receiver.capture(), any(IntentFilter.class));
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
FusedLocationProvider.java | 30 import android.content.IntentFilter; 69 IntentFilter intentFilter = new IntentFilter(); 70 intentFilter.addAction(Intent.ACTION_USER_SWITCHED); 79 }, UserHandle.ALL, intentFilter, null, mHandler);
|
/frameworks/base/services/net/java/android/net/util/ |
AvoidBadWifiTracker.java | 23 import android.content.IntentFilter; 73 final IntentFilter intentFilter = new IntentFilter(); 74 intentFilter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); 79 }, UserHandle.ALL, intentFilter, null, null);
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
WiredHeadsetManager.java | 21 import android.content.IntentFilter; 69 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_HEADSET_PLUG); 70 mContext.registerReceiver(mReceiver, intentFilter);
|
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkApp.java | 23 import android.content.IntentFilter; 56 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED); 57 intentFilter.addAction(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED); 58 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); 59 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); 60 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); 61 registerReceiver(mReceiver, intentFilter);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
DockManager.java | 22 import android.content.IntentFilter; 72 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_DOCK_EVENT); 73 context.registerReceiver(mReceiver, intentFilter);
|
SystemStateProvider.java | 23 import android.content.IntentFilter; 64 IntentFilter intentFilter = new IntentFilter(UiModeManager.ACTION_ENTER_CAR_MODE); 65 intentFilter.addAction(UiModeManager.ACTION_EXIT_CAR_MODE); 66 mContext.registerReceiver(mBroadcastReceiver, intentFilter); 67 Log.i(this, "Registering car mode receiver: %s", intentFilter);
|
TtyManager.java | 22 import android.content.IntentFilter; 49 IntentFilter intentFilter = new IntentFilter( 51 mContext.registerReceiver(mReceiver, intentFilter);
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
CrossProfileUtils.java | 24 import android.content.IntentFilter; 70 public IntentFilter getIntentFilter() { 71 IntentFilter intentFilter = new IntentFilter(); 72 intentFilter.addAction(ACTION_READ_FROM_URI); 73 intentFilter.addAction(ACTION_WRITE_TO_URI); 74 intentFilter.addAction(ACTION_TAKE_PERSISTABLE_URI_PERMISSION); 75 intentFilter.addAction(ACTION_COPY_TO_CLIPBOARD); 76 return intentFilter; [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
AlarmOperation.java | 24 import android.content.IntentFilter; 81 IntentFilter intentFilter = new IntentFilter(ACTION); 88 mContext.registerReceiver(receiver, intentFilter);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
RatRatcheter.java | 21 import android.content.IntentFilter; 56 IntentFilter intentFilter = new IntentFilter(); 57 intentFilter.addAction(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); 59 intentFilter, null, null);
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/ |
ContactPreferenceTest.java | 20 import android.content.IntentFilter; 78 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_VIEW); 79 intentFilter.addDataType(ContactsContract.Contacts.CONTENT_ITEM_TYPE); 81 getInstrumentation().addMonitor(intentFilter, null, true /* block */); 88 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_CALL); 89 intentFilter.addDataScheme("tel") [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
ConfirmConnectToWifiNetworkActivity.java | 9 import android.content.IntentFilter; 47 IntentFilter intentFilter = new IntentFilter(); 48 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 49 registerReceiver(mBroadcastReceiver, intentFilter);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
InstallAppProgress.java | 31 import android.content.IntentFilter; 205 IntentFilter intentFilter = new IntentFilter(); 206 intentFilter.addAction(BROADCAST_ACTION); 208 mBroadcastReceiver, intentFilter, BROADCAST_SENDER_PERMISSION, null /*scheduler*/);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
TtyManager.java | 22 import android.content.IntentFilter; 76 IntentFilter intentFilter = new IntentFilter( 78 intentFilter.addAction(TelecomManager.ACTION_TTY_PREFERRED_MODE_CHANGED); 79 context.registerReceiver(mReceiver, intentFilter);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
ConnectionAccessServerActivity.java | 28 import android.content.IntentFilter; 79 IntentFilter intentFilter = new IntentFilter(ACTION_CONNECTION_ACCESS_REQUEST); 80 registerReceiver(mConnectionAccessRequestReceiver, intentFilter);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/ |
ChargingConstraintTestActivity.java | 9 import android.content.IntentFilter; 76 IntentFilter intentFilter = new IntentFilter(); 77 intentFilter.addAction(Intent.ACTION_POWER_CONNECTED); 78 intentFilter.addAction(Intent.ACTION_POWER_DISCONNECTED); 79 intentFilter.addAction(BatteryManager.ACTION_CHARGING); 80 intentFilter.addAction(BatteryManager.ACTION_DISCHARGING); 82 registerReceiver(mChargingChangedReceiver, intentFilter); 92 IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED) [all...] |
ConnectivityConstraintTestActivity.java | 8 import android.content.IntentFilter; 50 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); 51 registerReceiver(mConnectivityChangedReceiver, intentFilter);
|
IdleConstraintTestActivity.java | 26 import android.content.IntentFilter; 108 IntentFilter intentFilter = new IntentFilter(); 109 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); 113 registerReceiver(mScreenOffReceiver, intentFilter);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
SensorTestScreenManipulator.java | 30 import android.content.IntentFilter; 109 IntentFilter intentFilter = new IntentFilter(); 110 intentFilter.addAction(Intent.ACTION_POWER_DISCONNECTED); 111 mActivity.registerReceiver(mBroadcastReceiver, intentFilter); 141 screenOffBroadcastReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF));
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
ExternalStorageTest.java | 31 import android.content.IntentFilter; 123 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); 124 mContext.registerReceiver(receiver, intentFilter);
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.java | 24 import android.content.IntentFilter; 176 IntentFilter intentFilter = new IntentFilter(); 177 intentFilter.addAction(action); 178 mContext.registerReceiver(mBroadcastReceiver, intentFilter);
|