Home
last modified time | relevance | path

Searched refs:mPendingIntent (Results 1 – 17 of 17) sorted by relevance

/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java57 private PendingIntent mPendingIntent; field in PendingIntentTest
155 mPendingIntent = null; in testGetActivity()
160 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
162 assertEquals(mContext.getPackageName(), mPendingIntent.getTargetPackage()); in testGetActivity()
164 mPendingIntent.send(ActivityOptions.makeBasic() in testGetActivity()
169 assertNotNull(mPendingIntent); in testGetActivity()
173 mPendingIntent.cancel(); in testGetActivity()
174 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
176 assertNull(mPendingIntent); in testGetActivity()
178 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
[all …]
/cts/tests/autofillservice/TestAutofillService/src/android/autofill/cts2/
DQueryAutofillStatusActivity.java39 private PendingIntent mPendingIntent; field in QueryAutofillStatusActivity
45 mPendingIntent = intent.getParcelableExtra("finishBroadcast"); in onCreate()
60 if (mPendingIntent != null) { in hasEnabledAutofillServicesAndFinish()
63 mPendingIntent.send(resultCode); in hasEnabledAutofillServicesAndFinish()
65 Log.w(TAG, "Pending intent " + mPendingIntent + " canceled"); in hasEnabledAutofillServicesAndFinish()
/cts/tests/autofillservice/TestAutofillServiceWithoutIntentFilter/src/android/autofill/cts2/
DQueryAutofillStatusActivity.java39 private PendingIntent mPendingIntent; field in QueryAutofillStatusActivity
45 mPendingIntent = intent.getParcelableExtra("finishBroadcast"); in onCreate()
60 if (mPendingIntent != null) { in hasEnabledAutofillServicesAndFinish()
63 mPendingIntent.send(resultCode); in hasEnabledAutofillServicesAndFinish()
65 Log.w(TAG, "Pending intent " + mPendingIntent + " canceled"); in hasEnabledAutofillServicesAndFinish()
/cts/tests/tests/textclassifier/QueryTextClassifierServiceActivity/src/com/android/textclassifier/cts2/
DQueryTextClassifierServiceActivity.java35 private PendingIntent mPendingIntent; field in QueryTextClassifierServiceActivity
41 mPendingIntent = intent.getParcelableExtra("finishBroadcast"); in onCreate()
60 if (mPendingIntent != null) { in detectLanguageAndFinish()
62 mPendingIntent.send(); in detectLanguageAndFinish()
64 Log.w(TAG, "Pending intent " + mPendingIntent + " canceled"); in detectLanguageAndFinish()
/cts/tests/location/common/src/android/location/cts/common/
DProximityPendingIntentCapture.java21 private final PendingIntent mPendingIntent; field in ProximityPendingIntentCapture
28 mPendingIntent = PendingIntent.getBroadcast(context, sRequestCode.getAndIncrement(), in ProximityPendingIntentCapture()
39 return mPendingIntent; in getPendingIntent()
53 mLocationManager.removeProximityAlert(mPendingIntent); in close()
54 mPendingIntent.cancel(); in close()
DLocationPendingIntentCapture.java42 private final PendingIntent mPendingIntent; field in LocationPendingIntentCapture
51 mPendingIntent = PendingIntent.getBroadcast(context, sRequestCode.getAndIncrement(), in LocationPendingIntentCapture()
64 return mPendingIntent; in getPendingIntent()
94 mLocationManager.removeUpdates(mPendingIntent); in close()
95 mPendingIntent.cancel(); in close()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBlockingPendingIntent.java33 private PendingIntent mPendingIntent; field in BlockingPendingIntent
48 mPendingIntent = PendingIntent.getBroadcast(TestApis.context().instrumentedContext(), 0, in register()
66 return mPendingIntent; in pendingIntent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java42 private PendingIntent mPendingIntent; field in DeviceSuspendTestActivity
56mPendingIntent = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in activitySetUp()
230 mPendingIntent); in verifyDeviceCanSuspend()
244 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
257 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
339 mPendingIntent); in runAPWakeUpWhenReportLatencyExpires()
344 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenReportLatencyExpires()
385 mPendingIntent); in runAPWakeUpWhenFIFOFull()
391 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenFIFOFull()
473 mPendingIntent); in runAPWakeUpByAlarmNonWakeSensor()
[all …]
DOffBodySensorTestActivity.java88 private PendingIntent mPendingIntent; field in OffBodySensorTestActivity
301mPendingIntent = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in activitySetUp()
313 mPendingIntent); in startTimeoutTimer()
317 mAlarmManager.cancel(mPendingIntent); in stopTimeoutTimer()
/cts/tests/controls/src/android/controls/cts/
DCtsControlBuilderTest.java54 private PendingIntent mPendingIntent; field in CtsControlBuilderTest
62 mPendingIntent = PendingIntent.getActivity(mContext, 1, in setUp()
74 Control control = new Control.StatelessBuilder(CONTROL_ID, mPendingIntent) in testStatelessBuilder()
91 Control control = new Control.StatefulBuilder(CONTROL_ID, mPendingIntent) in testStatefulBuilderAlternateConstructor()
DCtsControlsService.java62 private final PendingIntent mPendingIntent; field in CtsControlsService
68 mPendingIntent = PendingIntent.getActivity(mContext, 1, in CtsControlsService()
92 return new Control.StatefulBuilder("light", mPendingIntent) in buildLight()
107 return new Control.StatefulBuilder("switch", mPendingIntent) in buildSwitch()
123 return new Control.StatefulBuilder("mower", mPendingIntent) in buildMower()
141 return new Control.StatefulBuilder("lock", mPendingIntent) in buildLock()
155 return new Control.StatefulBuilder("gate", mPendingIntent) in buildGate()
176 return new Control.StatefulBuilder("thermostat", mPendingIntent) in buildThermostat()
188 return new Control.StatefulBuilder("routine", mPendingIntent) in buildRoutine()
201 return new Control.StatefulBuilder("camera", mPendingIntent) in buildCamera()
DCtsControlTemplateTest.java56 private PendingIntent mPendingIntent; field in CtsControlTemplateTest
63 mPendingIntent = PendingIntent.getActivity(context, 1, in setUp()
245 Control control = new Control.StatefulBuilder("1", mPendingIntent) in parcelAndUnparcel()
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java49 private PendingIntent mPendingIntent; field in TestTileService
139 if (mPendingIntent == null) { in getValidPendingIntent()
140 mPendingIntent = PendingIntent.getActivity(this, 0, in getValidPendingIntent()
143 return mPendingIntent; in getValidPendingIntent()
/cts/tests/tests/nfc/src/android/nfc/cts/interactive/
DTagVerifierActivity.java53 private PendingIntent mPendingIntent; field in TagVerifierActivity
73 mPendingIntent = PendingIntent.getActivity(this, 0, in onCreate()
88 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0953/src/android/security/cts/CVE_2021_0953/
DPocActivity.java57 PendingIntent mPendingIntent; field in PocActivity
187 mPendingIntent = (PendingIntent) mFldPendingIntent in onActivityResult()
199 mPendingIntent.send(getApplicationContext(), 0, spuriousIntent, null, null); in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DTagVerifierActivity.java78 private PendingIntent mPendingIntent; field in TagVerifierActivity
116 mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()) in onCreate()
143 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DQuickAccessWalletClientTest.java177 assertThat(testPendingIntentListener.mPendingIntent).isNotNull(); in testGetWalletPendingIntent_serviceWithOverride_notNull_ableToSend()
181 testPendingIntentListener.mPendingIntent.send(0, intentSentListener, in testGetWalletPendingIntent_serviceWithOverride_notNull_ableToSend()
205 assertThat(testPendingIntentListener.mPendingIntent).isNull(); in testGetWalletPendingIntent_serviceWithNoOverride_isNull()
599 private PendingIntent mPendingIntent; field in QuickAccessWalletClientTest.TestPendingIntentListener
604 mPendingIntent = walletPendingIntent; in onWalletPendingIntentRetrieved()