Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/os/
DWorkSourceTest.java149 WorkSource ws = new WorkSource(); in testWorkSourceParcelling() local
151 WorkChain wc = ws.createWorkChain(); in testWorkSourceParcelling()
154 WorkChain wc2 = ws.createWorkChain(); in testWorkSourceParcelling()
159 ws.writeToParcel(p, 0); in testWorkSourceParcelling()
164 assertEquals(unparcelled, ws); in testWorkSourceParcelling()
197 WorkSource ws = new WorkSource(); in testSet_nullWorkChain() local
198 ws.add(60); in testSet_nullWorkChain()
199 WorkChain wc = ws.createWorkChain(); in testSet_nullWorkChain()
202 ws.set(null); in testSet_nullWorkChain()
203 assertEquals(0, ws.getWorkChains().size()); in testSet_nullWorkChain()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl81 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStartWakelockFromSource() argument
83 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName, in noteChangeWakelockFromSource() argument
86 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource() argument
113 void noteWifiRunning(in WorkSource ws); in noteWifiRunning() argument
115 void noteWifiStopped(in WorkSource ws); in noteWifiStopped() argument
125 void noteFullWifiLockAcquiredFromSource(in WorkSource ws); in noteFullWifiLockAcquiredFromSource() argument
126 void noteFullWifiLockReleasedFromSource(in WorkSource ws); in noteFullWifiLockReleasedFromSource() argument
127 void noteWifiScanStartedFromSource(in WorkSource ws); in noteWifiScanStartedFromSource() argument
128 void noteWifiScanStoppedFromSource(in WorkSource ws); in noteWifiScanStoppedFromSource() argument
129 void noteWifiBatchedScanStartedFromSource(in WorkSource ws, int csph); in noteWifiBatchedScanStartedFromSource() argument
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java185 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock() argument
189 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock()
255 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource() argument
266 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource()
444 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList() argument
445 int wsSize = ws.size(); in addWsToLlWatchList()
447 final int uid = ws.get(i); in addWsToLlWatchList()
451 final List<WorkChain> workChains = ws.getWorkChains(); in addWsToLlWatchList()
461 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList() argument
462 int wsSize = ws.size(); in removeWsFromLlWatchList()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java342 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource() local
343 ws.add(100); in testAlarmStartAndFinishLocked_workSource()
344 ws.createWorkChain().addNode(500, "tag"); in testAlarmStartAndFinishLocked_workSource()
345 bi.noteAlarmStartLocked("foo", ws, UID); in testAlarmStartAndFinishLocked_workSource()
347 bi.noteAlarmFinishLocked("foo", ws, UID); in testAlarmStartAndFinishLocked_workSource()
405 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() local
406 ws.add(100); in testNoteWakupAlarmLocked_workSource_uid()
410 bi.noteWakupAlarmLocked("com.foo.bar", UID, ws, "tag"); in testNoteWakupAlarmLocked_workSource_uid()
418 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
419 ws.add(100, "com.foo.baz_alternate"); in testNoteWakupAlarmLocked_workSource_uid()
[all …]
DBatteryStatsBackgroundStatsTest.java204 WorkSource ws = new WorkSource(); in testAppBluetoothScan_workChain() local
205 ws.createWorkChain().addNode(UID, "foo"); in testAppBluetoothScan_workChain()
206 doTestAppBluetoothScanInternal(ws); in testAppBluetoothScan_workChain()
209 private void doTestAppBluetoothScanInternal(WorkSource ws) throws Exception { in doTestAppBluetoothScanInternal() argument
223 bi.noteBluetoothScanStartedFromSourceLocked(ws, false); in doTestAppBluetoothScanInternal()
235 bi.noteBluetoothScanStartedFromSourceLocked(ws, true); in doTestAppBluetoothScanInternal()
247 bi.noteBluetoothScanStoppedFromSourceLocked(ws, false); in doTestAppBluetoothScanInternal()
251 bi.noteBluetoothScanStoppedFromSourceLocked(ws, true); in doTestAppBluetoothScanInternal()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java135 WorkSource ws = deriveWorkSource(job.getSourceUid(), job.getSourcePackageName()); in maybeStartTrackingJobLocked() local
142 maybeUpdateDelayAlarmLocked(delayExpiredElapsed, ws); in maybeStartTrackingJobLocked()
145 maybeUpdateDeadlineAlarmLocked(deadlineExpiredElapsed, ws); in maybeStartTrackingJobLocked()
148 maybeUpdateDelayAlarmLocked(delayExpiredElapsed, ws); in maybeStartTrackingJobLocked()
149 maybeUpdateDeadlineAlarmLocked(deadlineExpiredElapsed, ws); in maybeStartTrackingJobLocked()
352 WorkSource ws = new WorkSource(); in deriveWorkSource() local
353 ws.createWorkChain() in deriveWorkSource()
356 return ws; in deriveWorkSource()
372 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked() argument
374 setDelayExpiredAlarmLocked(delayExpiredElapsed, ws); in maybeUpdateDelayAlarmLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java538 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, in noteStartWakelockFromSource() argument
542 mStats.noteStartWakeFromSourceLocked(ws, pid, name, historyName, in noteStartWakelockFromSource()
547 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, in noteChangeWakelockFromSource() argument
552 mStats.noteChangeWakelockFromSourceLocked(ws, pid, name, historyName, type, in noteChangeWakelockFromSource()
557 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource() argument
561 mStats.noteStopWakeFromSourceLocked(ws, pid, name, historyName, type); in noteStopWakelockFromSource()
885 public void noteWifiRunning(WorkSource ws) { in noteWifiRunning() argument
888 mStats.noteWifiRunningLocked(ws); in noteWifiRunning()
892 ws, StatsLog.WIFI_RUNNING_STATE_CHANGED__STATE__ON); in noteWifiRunning()
906 public void noteWifiStopped(WorkSource ws) { in noteWifiStopped() argument
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java736 private boolean isRequestorSpamming(WorkSource ws) { in isRequestorSpamming() argument
737 if (VDBG) Log.v(TAG, "isRequestorSpamming: ws" + ws); in isRequestorSpamming()
756 for (int i = 0; i < ws.size(); ++i) { in isRequestorSpamming()
757 if (counts.get(ws.get(i)) < MAX_QUEUED_PER_UID) { in isRequestorSpamming()
762 final ArrayList<WorkChain> workChains = ws.getWorkChains(); in isRequestorSpamming()
773 Log.v(TAG, "isRequestorSpamming: ws=" + ws + ", someone is spamming: " + counts); in isRequestorSpamming()
885 private boolean preExecThrottleCheck(WorkSource ws) { in preExecThrottleCheck() argument
886 if (VDBG) Log.v(TAG, "preExecThrottleCheck: ws=" + ws); in preExecThrottleCheck()
890 for (int i = 0; i < ws.size(); ++i) { in preExecThrottleCheck()
891 int uidImportance = mActivityManager.getUidImportance(ws.get(i)); in preExecThrottleCheck()
[all …]
DRttMetrics.java129 public void recordRequest(WorkSource ws, RangingRequest requests) { in recordRequest() argument
147 updatePeerInfoWithRequestInfo(mPerPeerTypeInfo[PEER_AP], ws, numApRequests); in recordRequest()
148 updatePeerInfoWithRequestInfo(mPerPeerTypeInfo[PEER_AWARE], ws, numAwareRequests); in recordRequest()
206 private void updatePeerInfoWithRequestInfo(PerPeerTypeInfo peerInfo, WorkSource ws, in updatePeerInfoWithRequestInfo() argument
219 for (int i = 0; i < ws.size(); ++i) { in updatePeerInfoWithRequestInfo()
220 int uid = ws.get(i); in updatePeerInfoWithRequestInfo()
/frameworks/base/tools/bit/
Dprint.cpp136 struct winsize ws; in print_one_line() local
137 ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws); in print_one_line()
138 int size = ws.ws_col + 1; in print_one_line()
/frameworks/base/core/java/android/os/
DStatsLogEventWrapper.java75 public void setWorkSource(WorkSource ws) { in setWorkSource() argument
76 if (ws.getWorkChains() == null || ws.getWorkChains().size() == 0) { in setWorkSource()
80 mWorkSource = ws; in setWorkSource()
DIPowerManager.aidl33 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument
42 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument
DPowerManager.java2256 public void setWorkSource(WorkSource ws) { in setWorkSource() argument
2258 if (ws != null && ws.isEmpty()) { in setWorkSource()
2259 ws = null; in setWorkSource()
2263 if (ws == null) { in setWorkSource()
2268 mWorkSource = new WorkSource(ws); in setWorkSource()
2270 changed = !mWorkSource.equals(ws); in setWorkSource()
2272 mWorkSource.set(ws); in setWorkSource()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfacePlacer.java144 final WindowState ws = mService.mForceRemoves.remove(0); in performSurfacePlacementLoop() local
145 Slog.i(TAG, "Force removing: " + ws); in performSurfacePlacementLoop()
146 ws.removeImmediately(); in performSurfacePlacementLoop()
DDragState.java208 for (WindowState ws : mNotifiedWindows) { in closeLocked()
211 if (!mDragResult && (ws.mSession.mPid == mPid)) { in closeLocked()
219 ws.mClient.dispatchDragEvent(evt); in closeLocked()
221 Slog.w(TAG_WM, "Unable to drag-end window " + ws); in closeLocked()
225 if (myPid != ws.mSession.mPid) { in closeLocked()
459 for (WindowState ws : mNotifiedWindows) { in isWindowNotified()
460 if (ws == newWin) { in isWindowNotified()
DTaskSnapshotController.java239 ws -> ws.mWinAnimator != null && ws.mWinAnimator.getShown() in findAppTokenForSnapshot()
240 && ws.mWinAnimator.mLastAlpha > 0f, true /* traverseTopToBottom */); in findAppTokenForSnapshot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSignalTileView.java86 int ws = MeasureSpec.makeMeasureSpec(mIconFrame.getMeasuredHeight(), MeasureSpec.AT_MOST); in onMeasure() local
87 mIn.measure(ws, hs); in onMeasure()
88 mOut.measure(ws, hs); in onMeasure()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java559 WorkSource ws = new WorkSource(100); in testBinderDeathWithWorkSource() local
566 mDut.startRanging(mockIbinder, mPackageName, ws, request, mockCallback); in testBinderDeathWithWorkSource()
585 verify(mockMetrics).recordRequest(eq(ws), eq(request)); in testBinderDeathWithWorkSource()
1172 WorkSource ws = new WorkSource(10); in testDontRejectFloodingRequestsVariousUids() local
1175 mDut.startRanging(mockIbinder, mPackageName, ws, request, mockCallback); in testDontRejectFloodingRequestsVariousUids()
1183 WorkSource wsExtra = new WorkSource(ws); in testDontRejectFloodingRequestsVariousUids()
1226 WorkSource ws = new WorkSource(); in runFloodRequestsTest() local
1228 ws.createWorkChain().addNode(10, "foo"); in runFloodRequestsTest()
1229 ws.createWorkChain().addNode(20, "bar"); in runFloodRequestsTest()
1230 ws.createWorkChain().addNode(30, "baz"); in runFloodRequestsTest()
[all …]
/frameworks/base/opengl/java/android/opengl/
DVisibility.java49 public static native int visibilityTest(float[] ws, int wsOffset, in visibilityTest() argument
/frameworks/base/tests/CoreTests/android/core/
DTestWebServer.java266 Worker ws = new Worker(); in run() local
267 ws.setSocket(s); in run()
268 activeThreads.addElement(ws); in run()
269 (new Thread(ws, "additional worker")).start(); in run()
/frameworks/base/location/java/com/android/internal/location/
DILocationProvider.aidl36 oneway void setRequest(in ProviderRequest request, in WorkSource ws); in setRequest() argument
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java330 public void setRequest(ProviderRequest request, WorkSource ws) { in setRequest() argument
331 onSetRequest(new ProviderRequestUnbundled(request), ws); in setRequest()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1053 WorkSource ws, String historyTag, int uid, int pid) { in acquireWakeLockInternal() argument
1058 + ", tag=\"" + tag + "\", ws=" + ws + ", uid=" + uid + ", pid=" + pid); in acquireWakeLockInternal()
1066 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { in acquireWakeLockInternal()
1069 uid, pid, ws, historyTag); in acquireWakeLockInternal()
1070 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal()
1081 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal()
1225 private void updateWakeLockWorkSourceInternal(IBinder lock, WorkSource ws, String historyTag, in updateWakeLockWorkSourceInternal() argument
1232 + " [not found], ws=" + ws); in updateWakeLockWorkSourceInternal()
1241 + " [" + wakeLock.mTag + "], ws=" + ws); in updateWakeLockWorkSourceInternal()
1244 if (!wakeLock.hasSameWorkSource(ws)) { in updateWakeLockWorkSourceInternal()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl122 boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws); in acquireWifiLock() argument
124 void updateWifiLockWorkSource(IBinder lock, in WorkSource ws); in updateWifiLockWorkSource() argument
/frameworks/base/wifi/java/com/android/server/wifi/
DBaseWifiService.java237 public boolean acquireWifiLock(IBinder lock, int lockType, String tag, WorkSource ws) { in acquireWifiLock() argument
242 public void updateWifiLockWorkSource(IBinder lock, WorkSource ws) { in updateWifiLockWorkSource() argument

12