/frameworks/base/core/tests/coretests/src/android/os/ |
D | WorkSourceTest.java | 149 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/ |
D | IBatteryStats.aidl | 81 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/ |
D | WifiLockManager.java | 185 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock() argument 193 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock() 259 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource() argument 270 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource() 442 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList() argument 443 int wsSize = ws.size(); in addWsToLlWatchList() 445 final int uid = ws.get(i); in addWsToLlWatchList() 449 final List<WorkChain> workChains = ws.getWorkChains(); in addWsToLlWatchList() 459 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList() argument 460 int wsSize = ws.size(); in removeWsFromLlWatchList() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 135 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() 353 WorkSource ws = new WorkSource(); in deriveWorkSource() local 354 ws.createWorkChain() in deriveWorkSource() 357 return ws; in deriveWorkSource() 373 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked() argument 375 setDelayExpiredAlarmLocked(delayExpiredElapsed, ws); in maybeUpdateDelayAlarmLocked() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 342 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 …]
|
D | BatteryStatsBackgroundStatsTest.java | 204 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/am/ |
D | BatteryStatsService.java | 538 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/ |
D | RttServiceImpl.java | 736 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 …]
|
D | RttMetrics.java | 129 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/ |
D | print.cpp | 136 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/services/core/java/com/android/server/wm/ |
D | WindowSurfacePlacer.java | 144 final WindowState ws = mService.mForceRemoves.remove(0); in performSurfacePlacementLoop() local 145 Slog.i(TAG, "Force removing: " + ws); in performSurfacePlacementLoop() 146 ws.removeImmediately(); in performSurfacePlacementLoop()
|
D | DragState.java | 210 for (WindowState ws : mNotifiedWindows) { in closeLocked() 213 if (!mDragResult && (ws.mSession.mPid == mPid)) { in closeLocked() 221 ws.mClient.dispatchDragEvent(evt); in closeLocked() 223 Slog.w(TAG_WM, "Unable to drag-end window " + ws); in closeLocked() 227 if (myPid != ws.mSession.mPid) { in closeLocked() 461 for (WindowState ws : mNotifiedWindows) { in isWindowNotified() 462 if (ws == newWin) { in isWindowNotified()
|
D | TaskSnapshotController.java | 239 ws -> ws.mWinAnimator != null && ws.mWinAnimator.getShown() in findAppTokenForSnapshot() 240 && ws.mWinAnimator.mLastAlpha > 0f, true /* traverseTopToBottom */); in findAppTokenForSnapshot()
|
/frameworks/base/core/java/android/os/ |
D | StatsLogEventWrapper.java | 75 public void setWorkSource(WorkSource ws) { in setWorkSource() argument 76 if (ws.getWorkChains() == null || ws.getWorkChains().size() == 0) { in setWorkSource() 80 mWorkSource = ws; in setWorkSource()
|
D | IPowerManager.aidl | 33 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
|
D | PowerManager.java | 2276 public void setWorkSource(WorkSource ws) { in setWorkSource() argument 2278 if (ws != null && ws.isEmpty()) { in setWorkSource() 2279 ws = null; in setWorkSource() 2283 if (ws == null) { in setWorkSource() 2288 mWorkSource = new WorkSource(ws); in setWorkSource() 2290 changed = !mWorkSource.equals(ws); in setWorkSource() 2292 mWorkSource.set(ws); in setWorkSource()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SignalTileView.java | 86 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/ |
D | RttServiceImplTest.java | 559 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/ |
D | Visibility.java | 49 public static native int visibilityTest(float[] ws, int wsOffset, in visibilityTest() argument
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProviderBase.java | 323 public void setRequest(ProviderRequest request, WorkSource ws) { in setRequest() argument 324 onSetRequest(new ProviderRequestUnbundled(request), ws); in setRequest()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | ILocationProvider.aidl | 34 oneway void setRequest(in ProviderRequest request, in WorkSource ws); in setRequest() argument
|
/frameworks/base/tests/CoreTests/android/core/ |
D | TestWebServer.java | 266 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/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 1043 WorkSource ws, String historyTag, int uid, int pid) { in acquireWakeLockInternal() argument 1048 + ", tag=\"" + tag + "\", ws=" + ws + ", uid=" + uid + ", pid=" + pid); in acquireWakeLockInternal() 1056 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { in acquireWakeLockInternal() 1059 uid, pid, ws, historyTag); in acquireWakeLockInternal() 1060 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal() 1071 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal() 1215 private void updateWakeLockWorkSourceInternal(IBinder lock, WorkSource ws, String historyTag, in updateWakeLockWorkSourceInternal() argument 1222 + " [not found], ws=" + ws); in updateWakeLockWorkSourceInternal() 1231 + " [" + wakeLock.mTag + "], ws=" + ws); in updateWakeLockWorkSourceInternal() 1234 if (!wakeLock.hasSameWorkSource(ws)) { in updateWakeLockWorkSourceInternal() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | IWifiManager.aidl | 122 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/ml/nn/common/operations/ |
D | RoiAlign.cpp | 149 T_Roi ws[] = {dx2 * dy2, dx1 * dy2, dx2 * dy1, dx1 * dy1}; in roiAlignNhwc() local 158 interpolation += ws[c] * batchBase[offsets[c] + k]; in roiAlignNhwc() 276 float ws[] = {dx2 * dy2, dx1 * dy2, dx2 * dy1, dx1 * dy1}; in roiAlignNhwc() local 285 int32_t wQuant = static_cast<int32_t>(std::round(ws[c] / wScale)); in roiAlignNhwc()
|