Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java47 private PendingIntent mPendingIntent; field in PendingIntentTest
144 mPendingIntent = null; in testGetActivity()
149 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
151 assertEquals(mContext.getPackageName(), mPendingIntent.getTargetPackage()); in testGetActivity()
153 mPendingIntent.send(); in testGetActivity()
156 assertNotNull(mPendingIntent); in testGetActivity()
160 mPendingIntent.cancel(); in testGetActivity()
161 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
163 assertNull(mPendingIntent); in testGetActivity()
165 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/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/tests/controls/src/android/controls/cts/
DCtsControlBuilderTest.java54 private PendingIntent mPendingIntent; field in CtsControlBuilderTest
62 mPendingIntent = PendingIntent.getActivity(mContext, 1, new Intent(), in setUp()
72 Control control = new Control.StatelessBuilder(CONTROL_ID, mPendingIntent) in testStatelessBuilder()
89 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, new Intent(), in CtsControlsService()
91 return new Control.StatefulBuilder("light", mPendingIntent) in buildLight()
105 return new Control.StatefulBuilder("switch", mPendingIntent) in buildSwitch()
121 return new Control.StatefulBuilder("mower", mPendingIntent) in buildMower()
139 return new Control.StatefulBuilder("lock", mPendingIntent) in buildLock()
153 return new Control.StatefulBuilder("gate", mPendingIntent) in buildGate()
174 return new Control.StatefulBuilder("thermostat", mPendingIntent) in buildThermostat()
186 return new Control.StatefulBuilder("routine", mPendingIntent) in buildRoutine()
199 return new Control.StatefulBuilder("camera", mPendingIntent) in buildCamera()
DCtsControlTemplateTest.java56 private PendingIntent mPendingIntent; field in CtsControlTemplateTest
63mPendingIntent = PendingIntent.getActivity(context, 1, new Intent(), PendingIntent.FLAG_MUTABLE_UN… in setUp()
244 Control control = new Control.StatefulBuilder("1", mPendingIntent) in parcelAndUnparcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java62 private PendingIntent mPendingIntent; field in DeviceSuspendTestActivity
77mPendingIntent = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in activitySetUp()
253 mPendingIntent); in verifyDeviceCanSuspend()
267 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
280 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
362 mPendingIntent); in runAPWakeUpWhenReportLatencyExpires()
367 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenReportLatencyExpires()
408 mPendingIntent); in runAPWakeUpWhenFIFOFull()
414 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenFIFOFull()
503 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/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNdefPushReceiverActivity.java47 private PendingIntent mPendingIntent; field in NdefPushReceiverActivity
62 mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()) in onCreate()
77 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()
DTagVerifierActivity.java75 private PendingIntent mPendingIntent; field in TagVerifierActivity
104 mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()) in onCreate()
131 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()