Lines Matching refs:now

111     public void setMemFactor(int memFactor, long now) {
113 setRestarting(true, memFactor, now);
116 setStarted(true, memFactor, now);
119 setBound(true, memFactor, now);
122 setExecuting(true, memFactor, now);
137 long now = SystemClock.uptimeMillis();
142 setStarted(false, 0, now);
148 setBound(false, 0, now);
154 setExecuting(false, 0, now);
165 long now = SystemClock.uptimeMillis();
172 setStarted(false, 0, now);
180 setBound(false, 0, now);
188 setExecuting(false, 0, now);
211 public void resetSafely(long now) {
217 mRunStartTime = mStartedStartTime = mBoundStartTime = mExecStartTime = now;
220 public void writeToParcel(Parcel out, long now) {
239 public void commitStateTime(long now) {
242 now - mRunStartTime);
243 mRunStartTime = now;
247 now - mStartedStartTime);
248 mStartedStartTime = now;
252 now - mBoundStartTime);
253 mBoundStartTime = now;
257 now - mExecStartTime);
258 mExecStartTime = now;
262 private void updateRunning(int memFactor, long now) {
268 now - mRunStartTime);
273 mRunStartTime = now;
277 public void setStarted(boolean started, int memFactor, long now) {
282 updateStartedState(memFactor, now);
285 public void setRestarting(boolean restarting, int memFactor, long now) {
287 updateStartedState(memFactor, now);
290 public void updateStartedState(int memFactor, long now) {
297 now - mStartedStartTime);
302 mStartedStartTime = now;
306 mProc.incStartedServices(memFactor, now, mName);
308 mProc.decStartedServices(memFactor, now, mName);
311 updateRunning(memFactor, now);
315 public void setBound(boolean bound, int memFactor, long now) {
323 now - mBoundStartTime);
328 mBoundStartTime = now;
329 updateRunning(memFactor, now);
333 public void setExecuting(boolean executing, int memFactor, long now) {
341 now - mExecStartTime);
346 mExecStartTime = now;
347 updateRunning(memFactor, now);
352 long now) {
356 time += now - startTime;
362 long now, long totalTime, boolean dumpSummary, boolean dumpAll) {
365 mRunStartTime, now, totalTime, !dumpSummary || dumpAll);
368 mStartedStartTime, now, totalTime, !dumpSummary || dumpAll);
371 mBoundStartTime, now, totalTime, !dumpSummary || dumpAll);
374 mExecStartTime, now, totalTime, !dumpSummary || dumpAll);
388 int count, int serviceType, int state, long startTime, long now, long totalTime,
394 dumpTime(pw, prefixInner, serviceType, state, startTime, now);
396 long myTime = dumpTime(null, null, serviceType, state, startTime, now);
407 int serviceType, int curState, long curStartTime, long now) {
414 long time = getDuration(serviceType, curState, curStartTime, state, now);
445 String serviceName, long now) {
447 ServiceState.SERVICE_RUN, mRunCount, mRunState, mRunStartTime, now);
449 ServiceState.SERVICE_STARTED, mStartedCount, mStartedState, mStartedStartTime, now);
451 ServiceState.SERVICE_BOUND, mBoundCount, mBoundState, mBoundStartTime, now);
453 ServiceState.SERVICE_EXEC, mExecCount, mExecState, mExecStartTime, now);
458 int curState, long curStartTime, long now) {
486 time += now - curStartTime;
491 DumpUtils.printAdjTagAndValue(pw, curState, now - curStartTime);