Home
last modified time | relevance | path

Searched refs:mWorkDatabase (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkerWrapper.java68 private WorkDatabase mWorkDatabase; field in WorkerWrapper
84 mWorkDatabase = builder.mWorkDatabase; in WorkerWrapper()
85 mWorkSpecDao = mWorkDatabase.workSpecDao(); in WorkerWrapper()
86 mDependencyDao = mWorkDatabase.dependencyDao(); in WorkerWrapper()
87 mWorkTagDao = mWorkDatabase.workTagDao(); in WorkerWrapper()
163 mWorkDatabase.beginTransaction(); in run()
177 mWorkDatabase.setTransactionSuccessful(); in run()
180 mWorkDatabase.endTransaction(); in run()
272 mWorkDatabase.beginTransaction(); in trySetRunning()
278 mWorkDatabase.setTransactionSuccessful(); in trySetRunning()
[all …]
DWorkManagerImpl.java70 private WorkDatabase mWorkDatabase; field in WorkManagerImpl
166 mWorkDatabase = WorkDatabase.create(context, useTestDatabase); in WorkManagerImpl()
171 mWorkDatabase, in WorkManagerImpl()
195 return mWorkDatabase; in getWorkDatabase()
396 WorkSpecDao dao = mWorkDatabase.workSpecDao(); in getStatusById()
417 mWorkDatabase.workSpecDao().getWorkStatusPojoForId(id.toString());
427 WorkSpecDao workSpecDao = mWorkDatabase.workSpecDao();
436 WorkSpecDao workSpecDao = mWorkDatabase.workSpecDao();
443 WorkSpecDao workSpecDao = mWorkDatabase.workSpecDao();
452 WorkSpecDao workSpecDao = mWorkDatabase.workSpecDao();
[all …]
DProcessor.java44 private WorkDatabase mWorkDatabase; field in Processor
61 mWorkDatabase = workDatabase; in Processor()
95 new WorkerWrapper.Builder(mAppContext, mConfiguration, mWorkDatabase, id) in startWork()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DForceStopRunnableTest.java49 private WorkDatabase mWorkDatabase; field in ForceStopRunnableTest
58 mWorkDatabase = mock(WorkDatabase.class); in setUp()
61 when(mWorkManager.getWorkDatabase()).thenReturn(mWorkDatabase); in setUp()
62 when(mWorkDatabase.workSpecDao()).thenReturn(mWorkSpecDao); in setUp()