Searched defs:db (Results 1 - 22 of 22) sorted by relevance

/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/
H A DSelectionBuilder.java23 package com.example.android.common.db;
52 * .query(db, projection, sortOrder)
288 * @param db Database to query.
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { argument
297 return query(db, columns, null, null, orderBy, null);
305 * @param db Database to query.
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, argument
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having,
334 * @param db Database to query.
339 public int update(SQLiteDatabase db, ContentValue argument
351 delete(SQLiteDatabase db) argument
[all...]
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
H A DLocationDbHelper.java17 package com.example.android.wearable.speedtracker.db;
62 public static final String DATABASE_NAME = "Location.db";
69 public void onCreate(SQLiteDatabase db) { argument
70 db.execSQL(SQL_CREATE_ENTRIES);
74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
75 db.execSQL(SQL_DELETE_ENTRIES);
76 onCreate(db);
88 SQLiteDatabase db = getWritableDatabase();
98 return db.insert(TABLE_NAME, "null", values);
107 SQLiteDatabase db
[all...]
H A DUpdateService.java17 package com.example.android.wearable.speedtracker.db;
/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
H A Ddatastore.py19 from google.appengine.ext import db namespace
22 class Contact(db.Model):
25 handle = db.StringProperty(required=True)
26 firstname = db.StringProperty()
27 lastname = db.StringProperty()
28 phone_home = db.PhoneNumberProperty()
29 phone_office = db.PhoneNumberProperty()
30 phone_mobile = db.PhoneNumberProperty()
31 email = db.EmailProperty()
32 status = db
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DColorMatrixSample.java47 float db, float da) {
51 0, 0, 2, 0, db,
46 setTranslate(ColorMatrix cm, float dr, float dg, float db, float da) argument
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
H A Ddashboard.py26 from google.appengine.ext import db namespace
29 from google.appengine.ext.db import djangoforms
103 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
109 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
126 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
143 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
154 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
157 contact.avatar = db.Blob(avatar)
171 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
H A Dweb_services.py31 from google.appengine.ext import db namespace
238 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
261 # New record - add them to db...
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
H A DDictionaryDatabase.java181 public void onCreate(SQLiteDatabase db) { argument
182 mDatabase = db;
237 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
240 db.execSQL("DROP TABLE IF EXISTS " + FTS_VIRTUAL_TABLE);
241 onCreate(db);
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
H A DFeedProvider.java28 import com.example.android.common.db.SelectionBuilder;
94 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase();
106 Cursor c = builder.query(db, projection, sortOrder);
123 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase();
124 assert db != null;
129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values);
150 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase();
157 .delete(db);
164 .delete(db);
182 final SQLiteDatabase db
240 onCreate(SQLiteDatabase db) argument
245 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
[all...]
/development/samples/training/threadsample/src/com/example/android/threadsample/
H A DDataProvider.java152 * @param db A handle to the provider's backing database.
154 private void dropTables(SQLiteDatabase db) { argument
157 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.PICTUREURL_TABLE_NAME);
158 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.DATE_TABLE_NAME);
164 * invoked and no db instance is available.
166 * @param db the database instance in which to create the tables.
169 public void onCreate(SQLiteDatabase db) { argument
171 db.execSQL(CREATE_PICTUREURL_TABLE_SQL);
172 db.execSQL(CREATE_DATE_TABLE_SQL);
180 * @param db Th
185 onUpgrade(SQLiteDatabase db, int version1, int version2) argument
204 onDowngrade(SQLiteDatabase db, int version1, int version2) argument
[all...]
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
H A DNotesDbAdapter.java67 public void onCreate(SQLiteDatabase db) { argument
69 db.execSQL(DATABASE_CREATE);
73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
76 db.execSQL("DROP TABLE IF EXISTS notes");
77 onCreate(db);
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
H A DRssContentProvider.java40 private static final String DATABASE_NAME = "rssitems.db";
72 public void onCreate(SQLiteDatabase db){ argument
82 db.execSQL(sql);
90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ argument
94 db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE_NAME + ";");
/development/samples/NotePad/src/com/example/android/notepad/
H A DNotePadProvider.java61 private static final String DATABASE_NAME = "note_pad.db";
193 public void onCreate(SQLiteDatabase db) { argument
194 db.execSQL("CREATE TABLE " + NotePad.Notes.TABLE_NAME + " ("
211 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
218 db.execSQL("DROP TABLE IF EXISTS notes");
221 onCreate(db);
302 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
310 db, // The database to query
544 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
547 long rowId = db
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/app/
H A DLoaderThrottle.java120 private static final String DATABASE_NAME = "loader_throttle.db";
135 public void onCreate(SQLiteDatabase db) { argument
136 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " ("
150 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
157 db.execSQL("DROP TABLE IF EXISTS notes");
160 onCreate(db);
241 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
243 Cursor c = qb.query(db, projection, selection, selectionArgs,
287 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
289 long rowId = db
[all...]
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderThrottleSupport.java121 private static final String DATABASE_NAME = "loader_throttle.db";
136 public void onCreate(SQLiteDatabase db) { argument
137 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " ("
151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
158 db.execSQL("DROP TABLE IF EXISTS notes");
161 onCreate(db);
242 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
244 Cursor c = qb.query(db, projection, selection, selectionArgs,
288 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
290 long rowId = db
[all...]
/development/ndk/platforms/android-L/arch-x86/include/asm/
H A Dkvm.h149 __u8 present, dpl, db, s, l, g, avl; member in struct:kvm_segment
334 __u64 db[4]; member in struct:kvm_debugregs
/development/ndk/platforms/android-L/arch-x86_64/include/asm/
H A Dkvm.h149 __u8 present, dpl, db, s, l, g, avl; member in struct:kvm_segment
334 __u64 db[4]; member in struct:kvm_debugregs

Completed in 239 milliseconds