Home
last modified time | relevance | path

Searched refs:tracker (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java271 WifiTracker tracker = createMockedWifiTracker(); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() local
273 startTracking(tracker); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
275 tracker.mReceiver.onReceive(mContext, intent); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
278 sendScanResultsAndProcess(tracker); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
279 waitForHandlersToProcessCurrentlyEnqueuedMessages(tracker); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
281 return tracker; in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
285 WifiTracker tracker = in createMockedWifiTracker() local
299 return tracker; in createMockedWifiTracker()
302 private void startTracking(WifiTracker tracker) throws InterruptedException { in startTracking() argument
307 tracker.startTracking(); in startTracking()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSMSDispatcher.java127 SmsTracker tracker = deliveryPendingList.get(i); in handleStatusReport() local
128 if (tracker.mMessageRef == messageRef) { in handleStatusReport()
133 tracker.updateSentMessageStatus(mContext, tpStatus); in handleStatusReport()
135 PendingIntent intent = tracker.mDeliveryIntent; in handleStatusReport()
159 SmsTracker tracker = getSmsTracker(map, sentIntent, deliveryIntent, getFormat(), in sendData() local
166 DataSmsSender smsSender = new DataSmsSender(tracker); in sendData()
170 sendRawPdu(tracker); in sendData()
187 SmsTracker tracker = getSmsTracker(map, sentIntent, deliveryIntent, getFormat(), in sendText() local
194 TextSmsSender smsSender = new TextSmsSender(tracker); in sendText()
198 sendRawPdu(tracker); in sendText()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSMSDispatcher.java88 SmsTracker tracker = deliveryPendingList.get(i); in handleCdmaStatusReport() local
89 if (tracker.mMessageRef == sms.mMessageRef) { in handleCdmaStatusReport()
93 tracker.updateSentMessageStatus(mContext, Sms.STATUS_COMPLETE); in handleCdmaStatusReport()
95 PendingIntent intent = tracker.mDeliveryIntent; in handleCdmaStatusReport()
115 SmsTracker tracker = getSmsTracker(map, sentIntent, deliveryIntent, getFormat(), in sendData() local
122 DataSmsSender smsSender = new DataSmsSender(tracker); in sendData()
126 sendSubmitPdu(tracker); in sendData()
149 SmsTracker tracker = getSmsTracker(map, sentIntent, deliveryIntent, getFormat(), in sendText() local
155 TextSmsSender smsSender = new TextSmsSender(tracker); in sendText()
159 sendSubmitPdu(tracker); in sendText()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsBroadcastUndelivered.java162 InboundSmsTracker tracker; in scanRawTable() local
164 tracker = TelephonyComponentFactory.getInstance().makeInboundSmsTracker(cursor, in scanRawTable()
171 if (tracker.getMessageCount() == 1) { in scanRawTable()
173 broadcastSms(tracker); in scanRawTable()
175 SmsReferenceKey reference = new SmsReferenceKey(tracker); in scanRawTable()
179 if (tracker.getTimestamp() < in scanRawTable()
186 if (newCount == tracker.getMessageCount()) { in scanRawTable()
190 broadcastSms(tracker); in scanRawTable()
225 private void broadcastSms(InboundSmsTracker tracker) { in broadcastSms() argument
227 if (tracker.is3gpp2()) { in broadcastSms()
[all …]
DSMSDispatcher.java301 SmsTracker tracker = (SmsTracker) msg.obj; in handleMessage() local
302 if (tracker.isMultipart()) { in handleMessage()
303 sendMultipartSms(tracker); in handleMessage()
306 tracker.mExpectMore = true; in handleMessage()
308 tracker.mExpectMore = false; in handleMessage()
310 sendSms(tracker); in handleMessage()
318 SmsTracker tracker = (SmsTracker) msg.obj; in handleMessage() local
321 tracker.onFailed(mContext, in handleMessage()
326 tracker.onFailed(mContext, in handleMessage()
332 tracker.onFailed(mContext, RESULT_ERROR_LIMIT_EXCEEDED, 0/*errorCode*/); in handleMessage()
[all …]
DInboundSmsHandler.java737 InboundSmsTracker tracker; in dispatchNormalMessage() local
748 tracker = TelephonyComponentFactory.getInstance().makeInboundSmsTracker(sms.getPdu(), in dispatchNormalMessage()
758 tracker = TelephonyComponentFactory.getInstance().makeInboundSmsTracker(sms.getPdu(), in dispatchNormalMessage()
764 if (VDBG) log("created tracker: " + tracker); in dispatchNormalMessage()
768 return addTrackerToRawTableAndSendMessage(tracker, in dispatchNormalMessage()
769 tracker.getDestPort() == -1 /* de-dup if text message */); in dispatchNormalMessage()
779 protected int addTrackerToRawTableAndSendMessage(InboundSmsTracker tracker, boolean deDup) { in addTrackerToRawTableAndSendMessage() argument
780 switch(addTrackerToRawTable(tracker, deDup)) { in addTrackerToRawTableAndSendMessage()
782 sendMessage(EVENT_BROADCAST_SMS, tracker); in addTrackerToRawTableAndSendMessage()
801 private boolean processMessagePart(InboundSmsTracker tracker) { in processMessagePart() argument
[all …]
DImsSMSDispatcher.java187 protected void sendSms(SmsTracker tracker) { in sendSms() argument
194 protected void sendSmsByPstn(SmsTracker tracker) { in sendSmsByPstn() argument
261 public void sendRetrySms(SmsTracker tracker) { in sendRetrySms() argument
262 String oldFormat = tracker.mFormat; in sendRetrySms()
274 mCdmaDispatcher.sendSms(tracker); in sendRetrySms()
278 mGsmDispatcher.sendSms(tracker); in sendRetrySms()
284 HashMap map = tracker.getData(); in sendRetrySms()
294 tracker.onFailed(mContext, RESULT_ERROR_GENERIC_FAILURE, 0/*errorCode*/); in sendRetrySms()
309 scAddr, destAddr, text, (tracker.mDeliveryIntent != null), null); in sendRetrySms()
313 scAddr, destAddr, text, (tracker.mDeliveryIntent != null), null); in sendRetrySms()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPlatformVelocityTracker.java35 PlatformVelocityTracker tracker = sPool.acquire(); in obtain() local
36 if (tracker == null) { in obtain()
37 tracker = new PlatformVelocityTracker(); in obtain()
39 tracker.setTracker(VelocityTracker.obtain()); in obtain()
40 return tracker; in obtain()
43 public void setTracker(VelocityTracker tracker) { in setTracker() argument
44 mTracker = tracker; in setTracker()
DVelocityTrackerFactory.java32 String tracker = ctx.getResources().getString(R.string.velocity_tracker_impl); in obtain() local
33 switch (tracker) { in obtain()
39 throw new IllegalStateException("Invalid tracker: " + tracker); in obtain()
/frameworks/support/compat/java/android/support/v4/view/
DVelocityTrackerCompat.java36 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() argument
37 return tracker.getXVelocity(pointerId); in getXVelocity()
48 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity() argument
49 return tracker.getYVelocity(pointerId); in getYVelocity()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java84 private void handleAddStrongAuthTracker(IStrongAuthTracker tracker) { in handleAddStrongAuthTracker() argument
86 if (mStrongAuthTrackers.get(i).asBinder() == tracker.asBinder()) { in handleAddStrongAuthTracker()
90 mStrongAuthTrackers.add(tracker); in handleAddStrongAuthTracker()
96 tracker.onStrongAuthRequiredChanged(value, key); in handleAddStrongAuthTracker()
103 private void handleRemoveStrongAuthTracker(IStrongAuthTracker tracker) { in handleRemoveStrongAuthTracker() argument
105 if (mStrongAuthTrackers.get(i).asBinder() == tracker.asBinder()) { in handleRemoveStrongAuthTracker()
173 public void registerStrongAuthTracker(IStrongAuthTracker tracker) { in registerStrongAuthTracker() argument
174 mHandler.obtainMessage(MSG_REGISTER_TRACKER, tracker).sendToTarget(); in registerStrongAuthTracker()
177 public void unregisterStrongAuthTracker(IStrongAuthTracker tracker) { in unregisterStrongAuthTracker() argument
178 mHandler.obtainMessage(MSG_UNREGISTER_TRACKER, tracker).sendToTarget(); in unregisterStrongAuthTracker()
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/
DMainActivity.java72 public VelocityTracker tracker; in onCreate()
93 tracker = VelocityTracker.obtain(); in onCreate()
94 tracker.clear(); in onCreate()
95 tracker.addMovement(motionEvent); in onCreate()
108 tracker.addMovement(motionEvent); in onCreate()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/
DInvalidationTrackerTrojan.java23 public static int countObservers(InvalidationTracker tracker) { in countObservers() argument
24 return tracker.mObserverMap.size(); in countObservers()
/frameworks/base/tools/aapt2/tools/consumers/
Dduplicates.py17 tracker = ResourceDefinitionLocator(parser)
18 parser.StartElementHandler = tracker.start_element
19 parser.EndElementHandler = tracker.end_element
28 for res_name, entries in tracker.resource_definitions.iteritems():
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp232 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked() local
233 int slot = getSlotForOutputLocked(output, tracker.getBuffer()); in outputBufferLocked()
306 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs() local
335 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs()
370 BufferTracker& tracker = *(mBuffers[bufferItem.mGraphicBuffer->getId()]); in onFrameAvailable() local
373 __FUNCTION__, bufferItem.mGraphicBuffer->getId(), tracker.requestedSurfaces().size()); in onFrameAvailable()
374 for (const auto id : tracker.requestedSurfaces()) { in onFrameAvailable()
467 BufferTracker& tracker = *(mBuffers[buffer->getId()]); in onBufferReleasedByOutputLocked() local
471 tracker.mergeFence(fence); in onBufferReleasedByOutputLocked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTrackerFactory.java29 public static void setTestingWifiTracker(WifiTracker tracker) { in setTestingWifiTracker() argument
30 sTestingWifiTracker = tracker; in setTestingWifiTracker()
/frameworks/native/libs/gui/
DStreamSplitter.cpp210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput() local
214 tracker->mergeFence(fence); in onBufferReleasedByOutput()
217 size_t releaseCount = tracker->incrementReleaseCountLocked(); in onBufferReleasedByOutput()
233 status = mInput->attachBuffer(&consumerSlot, tracker->getBuffer()); in onBufferReleasedByOutput()
238 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, tracker->getMergedFence()); in onBufferReleasedByOutput()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNavigationBarFragmentTest.java70 Tracker tracker = mLeakCheck.getTracker("accessibility_manager"); in setup() local
74 tracker.getLeakInfo(listener).addAllocation(new Throwable()); in setup()
79 tracker.getLeakInfo(listener).clearAllocations(); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java51 Tracker tracker = mLeakCheck.getTracker("tuner"); in setup() local
53 tracker.getLeakInfo(invocation.getArguments()[0]).addAllocation(new Throwable()); in setup()
57 tracker.getLeakInfo(invocation.getArguments()[0]).clearAllocations(); in setup()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java92 ServiceState tracker; // tracking service execution, may be null field in ServiceRecord
339 if (tracker != null) { in getTracker()
340 return tracker; in getTracker()
343 tracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, in getTracker()
346 tracker.applyNewOwner(this); in getTracker()
348 return tracker; in getTracker()
352 if (tracker != null) { in forceClearTracker()
353 tracker.clearCurrentOwner(this, true); in forceClearTracker()
354 tracker = null; in forceClearTracker()
DProcessRecord.java458 public void makeActive(IApplicationThread _thread, ProcessStatsService tracker) { in makeActive() argument
463 tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), pkgList); in makeActive()
466 baseProcessTracker = tracker.getProcessStateLocked(info.packageName, uid, in makeActive()
474 holder.state = tracker.getProcessStateLocked(pkgList.keyAt(i), uid, in makeActive()
484 public void makeInactive(ProcessStatsService tracker) { in makeInactive() argument
490 tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), pkgList); in makeInactive()
691 public boolean addPackage(String pkg, int versionCode, ProcessStatsService tracker) { in addPackage() argument
696 holder.state = tracker.getProcessStateLocked( in addPackage()
728 public void resetPackageList(ProcessStatsService tracker) { in resetPackageList() argument
733 tracker.getMemFactorLocked(), now, pkgList); in resetPackageList()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DEventConditionProvider.java227 final CalendarTracker tracker = mTrackers.valueAt(i); in evaluateSubscriptionsW() local
228 final CheckEventResult r = tracker.checkEvent(event, now); in evaluateSubscriptionsW()
239 final CalendarTracker tracker = mTrackers.get(userId); in evaluateSubscriptionsW() local
240 if (tracker == null) { in evaluateSubscriptionsW()
245 result = tracker.checkEvent(event, now); in evaluateSubscriptionsW()
/frameworks/base/core/java/com/android/internal/widget/
DILockSettings.aidl42 void registerStrongAuthTracker(in IStrongAuthTracker tracker); in registerStrongAuthTracker() argument
43 void unregisterStrongAuthTracker(in IStrongAuthTracker tracker); in unregisterStrongAuthTracker() argument
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/
DLowpanServiceImpl.java93 LowpanInterfaceTracker tracker = mInterfaceMap.get(name); in getInterface() local
94 if (tracker != null) { in getInterface()
95 iface = tracker.mILowpanInterface; in getInterface()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java777 … final WrappedMultinetworkPolicyTracker tracker = new WrappedMultinetworkPolicyTracker(c, h, r); in createMultinetworkPolicyTracker() local
778 return tracker; in createMultinetworkPolicyTracker()
2632 final WrappedMultinetworkPolicyTracker tracker = mService.getMultinetworkPolicyTracker(); in testAvoidBadWifiSetting() local
2635 tracker.configRestrictsAvoidBadWifi = false; in testAvoidBadWifiSetting()
2639 tracker.reevaluate(); in testAvoidBadWifiSetting()
2643 assertFalse(msg, tracker.shouldNotifyWifiUnvalidated()); in testAvoidBadWifiSetting()
2646 tracker.configRestrictsAvoidBadWifi = true; in testAvoidBadWifiSetting()
2649 tracker.reevaluate(); in testAvoidBadWifiSetting()
2652 assertFalse(tracker.shouldNotifyWifiUnvalidated()); in testAvoidBadWifiSetting()
2655 tracker.reevaluate(); in testAvoidBadWifiSetting()
[all …]

12