/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/ |
ScreenshotCollectorHostTest.java | 77 mTestRunner.addInstrumentationArg("listener", SCREENSHOT_COLLECTOR); 80 CollectingTestListener listener = new CollectingTestListener(); local 102 collector.init(mContext, listener);
|
/platform_testing/libraries/longevity/tests/src/android/longevity/platform/listener/ |
BatteryTerminatorTest.java | 16 package android.longevity.platform.listener; 61 * Unit test the listener's stops on low battery. 72 * Unit test the listener's does not stop on high battery.
|
/system/security/keystore/ |
confirmation_manager.cpp | 54 Status ConfirmationManager::presentConfirmationPrompt(const sp<IBinder>& listener, 97 listener->linkToDeath(mDeathRecipient); 99 mCurrentListener = listener; 107 Status ConfirmationManager::cancelConfirmationPrompt(const sp<IBinder>& listener, 110 if (mCurrentListener != listener) { 148 sp<IBinder> listener = mCurrentListener; local 166 if (listener != nullptr) { 167 sp<BpConfirmationPromptCallback> obj = new BpConfirmationPromptCallback(listener);
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
EmmcPerformanceTest.java | 117 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { 121 listener.testRunStarted(RUN_KEY, 5); 125 runSequentialRead(mIterations, listener, metrics); 126 runSequentialWrite(mIterations, listener, metrics); 128 // runRandomRead(mIterations, listener, metrics); 129 // runRandomWrite(mIterations, listener, metrics); 132 listener.testRunEnded( 143 private void runSequentialRead(int iterations, ITestInvocationListener listener, 147 runTest(SEQUENTIAL_READ_KEY, command, TestType.DD, true, iterations, listener, metrics); 153 private void runSequentialWrite(int iterations, ITestInvocationListener listener, [all...] |
GLBenchmarkTest.java | 132 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { 143 listener.testRunStarted(RUN_KEY, 0); 144 listener.testStarted(testId); 198 listener.testFailed(testId, errMsg); 199 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 200 listener.testRunFailed(errMsg); 203 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 204 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics));
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
StubTest.java | 78 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { 91 listener.testRunStarted("TestStub", 1); 93 listener.testStarted(testId); 94 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); 95 listener.testRunEnded(500, new LinkedHashMap<String, Metric>());
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
EngineJob.java | 30 private final EngineJobListener listener; field in class:EngineJob 51 EngineJobListener listener) { 52 this(key, diskCacheService, sourceService, isCacheable, listener, DEFAULT_FACTORY); 56 EngineJobListener listener, EngineResourceFactory engineResourceFactory) { 61 this.listener = listener; 125 listener.onEngineJobCancelled(this, key); 152 listener.onEngineJobComplete(key, engineResource); 178 listener.onEngineJobComplete(key, null);
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
HtmlChangeReporter.java | 60 HtmlChangeListener<? super T> listener, @Nullable T context) { 62 this.input = new InputChannel<T>(output, listener, context); 81 final HtmlChangeListener<? super T> listener; field in class:HtmlChangeReporter.InputChannel 84 OutputChannel output, HtmlChangeListener<? super T> listener, 88 this.listener = listener; 108 // listener re-entering the stream event receiver. This shouldn't 118 // Dispatch notifications to the listener. 120 listener.discardedTag(context, discardedElementName); 123 listener.discardedAttributes [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
TaskWindowContainerController.java | 51 public TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, 55 this(taskId, listener, stackController, userId, bounds, resizeMode, 60 public TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, 64 super(listener, service); 240 final TaskWindowContainerListener listener = (controller != null) local 242 if (listener == null) { 247 listener.onSnapshotChanged((TaskSnapshot) msg.obj); 250 listener.requestResize((Rect) msg.obj, msg.arg1);
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
Renderer.java | 73 protected List<Listener> mListeners = new ArrayList<Listener>(); 149 public void registerListener(Listener listener) { 150 if (!mListeners.contains(listener)) { 151 mListeners.add(listener); 155 public void unregisterListener(Listener listener) { 156 mListeners.remove(listener); 164 for (Listener listener : mListeners) [all...] |
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/ |
ReportFragment.java | 53 private void dispatchCreate(ActivityInitializationListener listener) { 54 if (listener != null) { 55 listener.onCreate(); 59 private void dispatchStart(ActivityInitializationListener listener) { 60 if (listener != null) { 61 listener.onStart(); 65 private void dispatchResume(ActivityInitializationListener listener) { 66 if (listener != null) { 67 listener.onResume();
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
TaskJpegEncode.java | 203 * Wraps the onResultCompressed listener for ease of use. 213 final ImageProcessorListener listener = mImageTaskManager.getProxyListener(); local 214 listener.onResultCompressed(job, new CompressedPayload(data)); 218 * Wraps the onResultUri listener for ease of use. 229 final ImageProcessorListener listener = mImageTaskManager.getProxyListener(); local 230 listener.onResultUri(job, imageUri);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
SelectAccountDialogFragment.java | 61 * {@link Listener#onAccountChosen}. {@code null} will be converted to 126 final Listener listener = getListener(); local 127 if (listener != null) { 128 listener.onAccountSelectorCancelled(); 133 * Calls {@link Listener#onAccountChosen}. 136 final Listener listener = getListener(); local 137 if (listener != null) { 138 listener.onAccountChosen(account, getArguments().getBundle(KEY_EXTRA_ARGS)) 143 Listener listener = null; local [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
ConnectivityUtil.java | 76 final ConnectivityListener listener = mListener; local 77 if (listener != null) { 78 listener.onPhoneStateChanged(mContext, serviceState); 83 final ConnectivityListener listener = mListener; local 84 if (listener != null) { 85 listener.onConnectivityStateChanged(context, intent); 89 public void register(final ConnectivityListener listener) { 90 Assert.isTrue(mListener == null || mListener == listener); 102 mListener = listener;
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
VvmSimStateTracker.java | 190 ServiceStateListener listener = sListeners.get(phoneAccountHandle); local 191 if (listener != null) { 192 listener.unlisten(); 239 ServiceStateListener listener = new ServiceStateListener(context, phoneAccountHandle); local 240 listener.listen(); 241 sListeners.put(phoneAccountHandle, listener);
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ViewNode.java | 63 private StateListener listener; field in class:ViewNode 124 listener.nodeStateChanged(this); 129 listener.nodeIndexChanged(this); 136 void setStateListener(StateListener listener) { 137 this.listener = listener;
|
/tools/tradefederation/core/prod-tests/src/com/android/fastboot/tests/ |
FastbootTest.java | 110 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { 112 listener.testRunStarted(FASTBOOT_TEST, 1); 115 testFastboot(listener); 119 listener.testRunEnded( 126 * @param listener 129 private void testFastboot(ITestInvocationListener listener) throws DeviceNotAvailableException { 134 listener.testStarted(firstBootTestId); 166 listener.testFailed(firstBootTestId, 196 listener.testRunFailed("Device not online after flashing"); 212 listener.testFailed(firstBootTestId, "Device not available after flashing") [all...] |
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/ |
SkiaTest.java | 87 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { 92 listener.testRunStarted(mSkiaApp, 1); 100 listener.testStarted(testId); 103 listener.testFailed(testId, "Device does not have " + fullPath); 104 listener.testEnded(testId, new HashMap<String, Metric>()); 107 listener.testEnded(testId, new HashMap<String, Metric>()); 110 retrieveFiles(mSkiaApp, listener); 113 listener.testRunEnded(System.currentTimeMillis() - start, new HashMap<String, Metric>()); 166 * Retrieve a file from the device and upload it to the listener. 174 * @param listener Listener for reporting test failure/success and uploading files [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
DeviceTestCaseTest.java | 106 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 107 listener.testRunStarted(MockTest.class.getName(), 2); 110 listener.testStarted(test1); 113 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); 114 listener.testStarted(test2); 115 listener.testEnded(test2, new HashMap<String, Metric>()); 116 listener.testRunEnded(EasyMock.anyLong(), (HashMap<String, Metric>) EasyMock.anyObject()); 117 EasyMock.replay(listener); 119 test.run(listener); 120 EasyMock.verify(listener); 131 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 153 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 175 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 192 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 223 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 242 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 261 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 287 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 307 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local 327 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); local [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
TestSuiteStub.java | 80 private void testAttempt(ITestInvocationListener listener) throws DeviceNotAvailableException { 81 listener.testRunStarted(mModule, 3); 83 listener.testStarted(tid); 85 listener.testLog( 90 listener.testEnded(tid, new HashMap<String, Metric>()); 95 listener.testStarted(tid2); 100 listener.testLog( 105 listener.testEnded(tid2, new HashMap<String, Metric>()); 109 listener.testStarted(tid3); 111 listener.testFailed(tid3, "ouch this is bad.") [all...] |
/packages/apps/Dialer/java/com/android/incallui/ |
CallerInfoAsyncQuery.java | 94 final OnQueryCompleteListener listener, 105 // If there are no other directory queries, make sure that the listener is 108 || !startOtherDirectoriesQuery(token, context, info, listener, cookie)) { 109 if (listener != null && ci != null) { 110 listener.onQueryComplete(token, cookie, ci); 118 listener.onDataLoaded(token, cookie, ci); 129 OnQueryCompleteListener listener, 133 startQueryInternal(token, context, info, listener, cookie, uri); 149 OnQueryCompleteListener listener, 163 cw.listener = listener 272 public OnQueryCompleteListener listener; field in class:CallerInfoAsyncQuery.CookieWrapper 290 private final OnQueryCompleteListener listener; field in class:CallerInfoAsyncQuery.DirectoryQueryCompleteListenerFactory [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioTrack_ListenerTest.java | 116 final MockOnPlaybackPositionUpdateListener listener; local 118 listener = new MockOnPlaybackPositionUpdateListener(track, mHandler); 120 listener = new MockOnPlaybackPositionUpdateListener(track); 163 listener.stop(); 174 listener.release(); 178 final ArrayList<Integer> markerList = listener.getMarkerList(); 179 final ArrayList<Integer> periodicList = listener.getPeriodicList();
|
MediaSessionManagerTest.java | 64 // TODO enable a notification listener, test again, disable, test again 76 MediaSessionManager.OnActiveSessionsChangedListener listener local 84 mSessionManager.addOnActiveSessionsChangedListener(listener, null); 90 // TODO enable a notification listener, test again, disable, verify 122 // Ensure that the listener is called for long-press. 123 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); local 124 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); 126 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); 127 assertEquals(listener.mKeyEvents.size(), 3); 128 assertKeyEventEquals(listener.mKeyEvents.get(0) 172 MediaKeyListener listener = new MediaKeyListener(2, true, handler); local [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteSession.java | 280 * @param transactionListener The transaction listener, or null if none. 332 // Listener might throw a runtime exception. 413 final SQLiteTransactionListener listener = top.mListener; local 414 if (listener != null) { 417 listener.onCommit(); // might throw 419 listener.onRollback(); // might throw 535 final SQLiteTransactionListener listener = mTransactionStack.mListener; local 547 beginTransactionUnchecked(transactionMode, listener, connectionFlags, [all...] |
/frameworks/base/core/java/android/widget/ |
TableRow.java | 89 public void setOnHierarchyChangeListener(OnHierarchyChangeListener listener) { 90 mChildrenTracker.setOnHierarchyChangeListener(listener); 523 // special transparent hierarchy change listener 525 private OnHierarchyChangeListener listener; field in class:TableRow.ChildrenTracker 527 private void setOnHierarchyChangeListener(OnHierarchyChangeListener listener) { 528 this.listener = listener; 535 if (this.listener != null) { 536 this.listener.onChildViewAdded(parent, child); 544 if (this.listener != null) [all...] |