/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);
|
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/ |
MyInteractionService.java | 22 import android.content.IntentFilter; 41 IntentFilter intentFilter = new IntentFilter(); 42 intentFilter.addAction(ACTION_CHECK_IS_READY); 43 intentFilter.addAction(ACTION_SHOW_SESSION); 44 registerReceiver(mReceiver, intentFilter);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
TestUtils.java | 24 import android.content.IntentFilter; 57 IntentFilter intentFilter = new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 71 mContext.registerReceiver(broadcastReceiver, intentFilter);
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
CrossProfileUtils.java | 24 import android.content.IntentFilter; 74 public IntentFilter getIntentFilter() { 75 IntentFilter intentFilter = new IntentFilter(); 76 intentFilter.addAction(ACTION_READ_FROM_URI); 77 intentFilter.addAction(ACTION_WRITE_TO_URI); 78 intentFilter.addAction(ACTION_TAKE_PERSISTABLE_URI_PERMISSION); 79 intentFilter.addAction(ACTION_COPY_TO_CLIPBOARD); 80 intentFilter.addAction(ACTION_NOTIFY_URI_CHANGE) [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
TestAppInterface.java | 27 import android.content.IntentFilter; 53 final IntentFilter intentFilter = new IntentFilter(); 54 intentFilter.addAction(ACTION_JOB_STARTED); 55 intentFilter.addAction(ACTION_JOB_STOPPED); 56 mContext.registerReceiver(mReceiver, intentFilter);
|
JobThrottlingTest.java | 32 import android.content.IntentFilter; 123 final IntentFilter intentFilter = new IntentFilter(); 124 intentFilter.addAction(ACTION_DEVICE_IDLE_MODE_CHANGED); 125 intentFilter.addAction(ACTION_LIGHT_DEVICE_IDLE_MODE_CHANGED); 126 mContext.registerReceiver(mReceiver, intentFilter);
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
AlarmOperation.java | 24 import android.content.IntentFilter; 81 IntentFilter intentFilter = new IntentFilter(ACTION); 88 mContext.registerReceiver(receiver, intentFilter);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowIntentFilterTest.java | 5 import android.content.IntentFilter; 16 IntentFilter intentFilter = new IntentFilter(action); 17 IntentFilter copy = new IntentFilter(intentFilter); 23 IntentFilter filter = new IntentFilter(); 30 IntentFilter intentFilter = new IntentFilter() [all...] |
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/ |
ShadowLocalBroadcastManagerTest.java | 13 import android.content.IntentFilter; 45 instance.registerReceiver(receiver, new IntentFilter("com.foo")); 63 IntentFilter intentFilter = new IntentFilter("com.foo"); 64 intentFilter.addDataScheme("http"); 65 instance.registerReceiver(receiver, intentFilter); 83 instance.registerReceiver(receiver, new IntentFilter("com.foo")); 96 }, IntentFilter.create("foo", "application/blatz")); 116 IntentFilter filter = new IntentFilter("foo") [all...] |
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/ |
NetworkSuggestionTestCase.java | 26 import android.content.IntentFilter; 112 IntentFilter intentFilter = 113 new IntentFilter(WifiManager.ACTION_WIFI_NETWORK_SUGGESTION_POST_CONNECTION); 128 mContext.registerReceiver(mBroadcastReceiver, intentFilter);
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
ExternalStorageTest.java | 31 import android.content.IntentFilter; 122 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); 123 mContext.registerReceiver(receiver, intentFilter);
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
LockTaskHostDrivenTest.java | 27 import android.content.IntentFilter; 89 IntentFilter filter = new IntentFilter(); 170 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MAIN); 171 intentFilter.addCategory(Intent.CATEGORY_HOME); 172 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); 174 BasicAdminReceiver.getComponentName(mContext), intentFilter,
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.java | 24 import android.content.IntentFilter; 147 IntentFilter intentFilter = new IntentFilter(); 148 intentFilter.addAction(action); 149 mContext.registerReceiver(mBroadcastReceiver, intentFilter);
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
BackgroundRestrictedAlarmsTest.java | 29 import android.content.IntentFilter; 90 final IntentFilter intentFilter = new IntentFilter(); 91 intentFilter.addAction(TestAlarmReceiver.ACTION_REPORT_ALARM_EXPIRED); 92 mContext.registerReceiver(mAlarmStateReceiver, intentFilter);
|
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/ |
DropBoxTests.java | 27 import android.content.IntentFilter; 118 final IntentFilter intentFilter = new IntentFilter(); 119 intentFilter.addAction(DropBoxManager.ACTION_DROPBOX_ENTRY_ADDED); 120 mContext.registerReceiver(mDropBoxEntryAddedReceiver, intentFilter);
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
DownloadManagerApi28Test.java | 25 import android.content.IntentFilter; 50 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); 51 mContext.registerReceiver(receiver, intentFilter); 76 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); 77 mContext.registerReceiver(receiver, intentFilter); 104 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE) [all...] |
/cts/tests/tests/net/src/android/net/wifi/rtt/cts/ |
TestBase.java | 22 import android.content.IntentFilter; 101 IntentFilter intentFilter = new IntentFilter(); 102 intentFilter.addAction(WifiRttManager.ACTION_WIFI_RTT_STATE_CHANGED); 104 mContext.registerReceiver(receiver, intentFilter); 199 IntentFilter intentFilter = new IntentFilter(); 200 intentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION) [all...] |
/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/ |
MainActivity.java | 23 import android.content.IntentFilter; 55 private final IntentFilter intentFilter = new IntentFilter(); 73 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION); 74 intentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION); 75 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION); 76 intentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION); 89 registerReceiver(receiver, intentFilter);
|
/development/apps/Development/src/com/android/development/ |
MediaScannerActivity.java | 24 import android.content.IntentFilter; 67 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_STARTED); 68 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); 69 intentFilter.addDataScheme("file"); 70 registerReceiver(mReceiver, intentFilter);
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
WiFiDirectActivity.java | 24 import android.content.IntentFilter; 61 private final IntentFilter intentFilter = new IntentFilter(); 92 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION); 93 intentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION); 94 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION); 95 intentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION); 115 registerReceiver(receiver, intentFilter);
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
BluetoothMapClientFacade.java | 29 import android.content.IntentFilter; 79 IntentFilter intentFilter = new IntentFilter(); 80 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_RECEIVED); 81 intentFilter.addAction( 83 intentFilter.addAction( 85 mService.registerReceiver(mNotificationReceiver, intentFilter);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
VpnTestHelper.java | 35 import android.content.IntentFilter; 116 final IntentFilter intentFilter = new IntentFilter(ACTION_VPN_IS_UP); 129 context.registerReceiver(receiver, intentFilter);
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
BasePackageInstallTest.java | 24 import android.content.IntentFilter; 189 IntentFilter intentFilter = new IntentFilter(); 190 intentFilter.addAction(action); 191 mContext.registerReceiver(mBroadcastReceiver, intentFilter);
|