Home
last modified time | relevance | path

Searched refs:SQLiteDatabase (Results 1 – 25 of 89) sorted by relevance

1234

/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java21 import android.database.sqlite.SQLiteDatabase.CursorFactory;
58 private SQLiteDatabase mDatabase;
161 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase()
185 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase()
191 private SQLiteDatabase getDatabaseLocked(boolean writable) { in getDatabaseLocked()
206 SQLiteDatabase db = mDatabase; in getDatabaseLocked()
215 db = SQLiteDatabase.create(null); in getDatabaseLocked()
220 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
221 SQLiteDatabase.OPEN_READONLY, mErrorHandler); in getDatabaseLocked()
234 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
[all …]
DSQLiteDatabase.java69 public final class SQLiteDatabase extends SQLiteClosable { class
77 private static WeakHashMap<SQLiteDatabase, Object> sActiveDatabases =
78 new WeakHashMap<SQLiteDatabase, Object>();
256 private SQLiteDatabase(String path, int openFlags, CursorFactory cursorFactory, in SQLiteDatabase() method in SQLiteDatabase
670 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags) { in openDatabase()
693 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags, in openDatabase()
695 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler); in openDatabase()
703 public static SQLiteDatabase openOrCreateDatabase(File file, CursorFactory factory) { in openOrCreateDatabase()
710 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory) { in openOrCreateDatabase()
717 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory, in openOrCreateDatabase()
[all …]
DSQLiteDirectCursorDriver.java20 import android.database.sqlite.SQLiteDatabase.CursorFactory;
29 private final SQLiteDatabase mDatabase;
35 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver()
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java23 import android.database.sqlite.SQLiteDatabase;
54 public void createDatabase(SQLiteDatabase db) { in createDatabase()
72 public void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened()
81 public Cursor query(SQLiteDatabase db, String[] projection, in query()
87 public long insert(SQLiteDatabase db, ContentValues values) { in insert()
91 public int delete(SQLiteDatabase db, String userWhere, String[] whereArgs) { in delete()
95 public int update(SQLiteDatabase db, ContentValues values, in update()
100 public int update(SQLiteDatabase db, long rowId, Object data) { in update()
113 public void onAccountsChanged(SQLiteDatabase db, Account[] accounts) { in onAccountsChanged()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java22 import android.database.sqlite.SQLiteDatabase;
66 public void onCreate(SQLiteDatabase db) { in onCreate()
72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
84 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel()
92 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateGenericSoundModel()
107 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel()
135 SQLiteDatabase db = getWritableDatabase(); in deleteGenericSoundModel()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java20 import android.database.sqlite.SQLiteDatabase;
33 private SQLiteDatabase mDatabase;
46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp()
94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt()
105 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java24 import android.database.sqlite.SQLiteDatabase;
56 public void onCreate(SQLiteDatabase db) { in onCreate()
67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/frameworks/base/test-runner/src/android/test/
DDatabaseTestUtils.java21 import android.database.sqlite.SQLiteDatabase;
38 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { in assertSchemaEquals()
44 private static Set<String> getSchemaSet(SQLiteDatabase db) { in getSchemaSet()
DRenamingDelegatingContext.java25 import android.database.sqlite.SQLiteDatabase;
145 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase()
146 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase()
156 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase()
157 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase()
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java21 import android.database.sqlite.SQLiteDatabase;
99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query()
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query()
115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update()
122 public int delete(SQLiteDatabase db, String table) { in delete()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorStorage.java21 import android.database.sqlite.SQLiteDatabase;
32 protected SQLiteDatabase mDatabase;
44 public void onCreate(SQLiteDatabase db) { in onCreate()
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
DBordeauxSessionStorage.java23 import android.database.sqlite.SQLiteDatabase;
53 private SQLiteDatabase mDbSessions;
70 public void onCreate(SQLiteDatabase db) { in onCreate()
75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
97 SQLiteDatabase.CONFLICT_REPLACE); in saveSession()
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Ddatabases.jd155 public void onCreate(SQLiteDatabase db) {
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
183 в метод {@link android.database.sqlite.SQLiteDatabase#insert insert()}:</p>
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
203 <p>Первый аргумент {@link android.database.sqlite.SQLiteDatabase#insert insert()}
214 <p>Для чтения из базы данных используйте метод {@link android.database.sqlite.SQLiteDatabase#query …
216 Метод сочетает элементы {@link android.database.sqlite.SQLiteDatabase#insert insert()}
217 и {@link android.database.sqlite.SQLiteDatabase#update update()}, за исключением того, что список с…
222 SQLiteDatabase db = mDbHelper.getReadableDatabase();
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Ddatabases.jd155 public void onCreate(SQLiteDatabase db) {
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
183 对象传递至 {@link android.database.sqlite.SQLiteDatabase#insert insert()} 方法将数据插入数据库:</p>
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
203 <p>{@link android.database.sqlite.SQLiteDatabase#insert insert()}
214 <p>要从数据库中读取信息,请使用 {@link android.database.sqlite.SQLiteDatabase#query query()}
215 方法,将其传递至选择条件和所需列。该方法结合 {@link android.database.sqlite.SQLiteDatabase#insert insert()}
216 和 {@link android.database.sqlite.SQLiteDatabase#update update()} 的元素,除非列列表定义了您希望获取的数据,而不是希望插入的数据。
222 SQLiteDatabase db = mDbHelper.getReadableDatabase();
[all …]
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Ddatabases.jd155 public void onCreate(SQLiteDatabase db) {
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
182 <p>透過將 {@link android.content.ContentValues} 物件傳遞至 {@link android.database.sqlite.SQLiteDatabase#in…
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
203 <p>{@link android.database.sqlite.SQLiteDatabase#insert insert()} 的第一個引數即為表格名稱。
214SQLiteDatabase#query query()} 方法,然後向其傳遞您的選取條件與所需的欄。該方法會合併 {@link android.database.sqlite.SQLiteDat…
222 SQLiteDatabase db = mDbHelper.getReadableDatabase();
294 android.database.sqlite.SQLiteDatabase#update update()} 方法。</p>
297 android.database.sqlite.SQLiteDatabase#insert insert()} 的內容值語法與 {@link android.database.sqlite.SQLi…
[all …]
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/
Ddatabases.jd155 public void onCreate(SQLiteDatabase db) {
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
182 <p>{@link android.content.ContentValues}オブジェクトを {@link android.database.sqlite.SQLiteDatabase#inser…
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
203 <p>{@link android.database.sqlite.SQLiteDatabase#insert insert()}の最初の引数は単なる表の名前です。
214SQLiteDatabase#query query()}メソッドを使用して選択条件および対象となる列をこれに渡します。このメソッドは、{@link android.database.sqlite…
222 SQLiteDatabase db = mDbHelper.getReadableDatabase();
294 android.database.sqlite.SQLiteDatabase#update update()} メソッドを使用します。</p>
297 android.database.sqlite.SQLiteDatabase#insert insert()} のコンテンツ値の構文と、
[all …]
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
Ddatabases.jd155 public void onCreate(SQLiteDatabase db) {
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
183 개체를 {@link android.database.sqlite.SQLiteDatabase#insert insert()} 메서드에 전달하여 데이터를 데이터베이스에 삽입합니다.</p>
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
203 <p>{@link android.database.sqlite.SQLiteDatabase#insert insert()}의
214 <p>데이터베이스로부터 정보를 읽어오려면 {@link android.database.sqlite.SQLiteDatabase#query query()}
216 이 메서드는 {@link android.database.sqlite.SQLiteDatabase#insert insert()}
217 및 {@link android.database.sqlite.SQLiteDatabase#update update()} 요소를 결합합니다. 단, 삽입하려는 데이터보다는 가져오려는 데…
222 SQLiteDatabase db = mDbHelper.getReadableDatabase();
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java22 import android.database.sqlite.SQLiteDatabase;
53 public void onCreate(SQLiteDatabase db) { in onCreate()
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
103 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
134 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java28 import android.database.sqlite.SQLiteDatabase;
73 public void onCreate(SQLiteDatabase db) { in onCreate()
92 public void onUpgrade(SQLiteDatabase db, in onUpgrade()
118 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp()
186 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage()
247 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage()
307 SQLiteDatabase db = dbh.getWritableDatabase(); in updatePackage()
342 SQLiteDatabase db = dbh.getWritableDatabase(); in deletePackage()
396 SQLiteDatabase db = dbh.getReadableDatabase(); in verifyData()
430 SQLiteDatabase db = dbh.getReadableDatabase(); in isDataExist()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java22 import android.database.sqlite.SQLiteDatabase;
74 public void onCreate(SQLiteDatabase db) { in onCreate()
80 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
93 SQLiteDatabase db = getWritableDatabase(); in updateKeyphraseSoundModel()
109 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateKeyphraseSoundModel()
132 SQLiteDatabase db = getWritableDatabase(); in deleteKeyphraseSoundModel()
158 SQLiteDatabase db = getReadableDatabase(); in getKeyphraseSoundModel()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMapper.java23 import android.database.sqlite.SQLiteDatabase;
62 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDeviceDocument()
95 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putStorageDocuments()
163 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in clearMapping()
200 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in startAddingDocuments()
245 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDocuments()
329 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in stopAddingDocuments()
380 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in cancelAddingDocuments()
434 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in queryCandidate()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DPreNTestDatabaseHelper.java20 import android.database.sqlite.SQLiteDatabase;
39 public void onCreate(SQLiteDatabase db) { in onCreate()
88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
/frameworks/base/core/java/android/database/
DDefaultDatabaseErrorHandler.java21 import android.database.sqlite.SQLiteDatabase;
53 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption()
102 SQLiteDatabase.deleteDatabase(new File(fileName)); in deleteDatabaseFile()
DDatabaseErrorHandler.java19 import android.database.sqlite.SQLiteDatabase;
31 void onCorruption(SQLiteDatabase dbObj); in onCorruption()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java21 import android.database.sqlite.SQLiteDatabase;
137 public void onCreate(SQLiteDatabase db) { in onCreate()
152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()

1234