Lines Matching refs:operation

57  * perform a database operation and are then returned to the pool.  At any
548 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
552 * @throws OperationCanceledException if the operation was canceled.
589 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
595 * @throws OperationCanceledException if the operation was canceled.
632 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
638 * @throws OperationCanceledException if the operation was canceled.
676 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
683 * @throws OperationCanceledException if the operation was canceled.
724 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
729 * @throws OperationCanceledException if the operation was canceled.
773 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
778 * @throws OperationCanceledException if the operation was canceled.
826 * @param cancellationSignal A signal to cancel the operation in progress, or null if none.
832 * @throws OperationCanceledException if the operation was canceled.
1102 * Describes the currently executing operation, in the case where the
1112 * @return A description of the current operation including how long it has been running,
1323 Operation operation = mOperations[index];
1324 if (operation == null) {
1325 operation = new Operation();
1326 mOperations[index] = operation;
1328 operation.mFinished = false;
1329 operation.mException = null;
1330 if (operation.mBindArgs != null) {
1331 operation.mBindArgs.clear();
1334 operation.mStartWallTime = System.currentTimeMillis();
1335 operation.mStartTime = SystemClock.uptimeMillis();
1336 operation.mKind = kind;
1337 operation.mSql = sql;
1339 if (operation.mBindArgs == null) {
1340 operation.mBindArgs = new ArrayList<Object>();
1342 operation.mBindArgs.clear();
1348 operation.mBindArgs.add(EMPTY_BYTE_ARRAY);
1350 operation.mBindArgs.add(arg);
1354 operation.mCookie = newOperationCookieLocked(index);
1356 Trace.asyncTraceBegin(Trace.TRACE_TAG_DATABASE, operation.getTraceMethodName(),
1357 operation.mCookie);
1360 return operation.mCookie;
1366 final Operation operation = getOperationLocked(cookie);
1367 if (operation != null) {
1368 operation.mException = ex;
1394 final Operation operation = getOperationLocked(cookie);
1395 if (operation != null) {
1397 Trace.asyncTraceEnd(Trace.TRACE_TAG_DATABASE, operation.getTraceMethodName(),
1398 operation.mCookie);
1400 operation.mEndTime = SystemClock.uptimeMillis();
1401 operation.mFinished = true;
1402 final long execTime = operation.mEndTime - operation.mStartTime;
1411 final Operation operation = getOperationLocked(cookie);
1413 operation.describe(msg, false);
1427 final Operation operation = mOperations[index];
1428 return operation.mCookie == cookie ? operation : null;
1433 final Operation operation = mOperations[mIndex];
1434 if (operation != null && !operation.mFinished) {
1436 operation.describe(msg, false);
1447 Operation operation = mOperations[index];
1448 if (operation != null) {
1457 String formattedStartTime = opDF.format(new Date(operation.mStartWallTime));
1460 operation.describe(msg, verbose);
1469 operation = mOperations[index];
1470 } while (operation != null && n < MAX_RECENT_OPERATIONS);