Searched defs:table (Results 1 - 25 of 31) sorted by relevance

12

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DRomkanFullKatakana.java163 * @param table HashMap for Romaji-to-Kana conversion
166 public static boolean convert(ComposingText text, HashMap<String, String> table) { argument
187 String match = table.get(key.toString().toLowerCase());
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDatabaseModifier.java35 public abstract long insert(String table, String nullColumnHack, ContentValues values); argument
42 * Use this method to update a table which you would otherwise do using the
45 public abstract int update(Uri uri, String table, ContentValues values, argument
48 * Use this method to delete entries from a table which you would otherwise do using the
51 public abstract int delete(String table, String whereClause, String[] whereArgs); argument
H A DCallLogDatabaseHelper.java106 // The CALLS and VOICEMAIL_STATUS table used to be in the contacts2.db. So we need to
364 static boolean tableExists(SQLiteDatabase db, String table) { argument
366 "select count(*) from sqlite_master where type='table' and name=?",
367 new String[] {table}) > 0;
376 public ArraySet<String> selectDistinctColumn(String table, String column) { argument
381 + " FROM " + table, null);
H A DDbModifierWithNotification.java101 public long insert(String table, String nullColumnHack, ContentValues values) { argument
106 long rowId = mDb.insert(table, nullColumnHack, values);
157 public int update(Uri uri, String table, ContentValues values, String whereClause, argument
170 updateLastModified(table, whereClause, whereArgs);
198 int count = mDb.update(table, values, whereClause, whereArgs);
216 private void updateLastModified(String table, String whereClause, String[] whereArgs) { argument
220 mDb.update(table, values,
226 public int delete(String table, String whereClause, String[] whereArgs) { argument
235 // removing the rows from the table.
244 count = mDb.update(table, value
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
H A DDatabaseAnalyzer.java31 * Class to extract table/view/column names from databases.
43 * Find and return all table/view names in a db.
48 "SELECT name FROM sqlite_master WHERE type in (\"table\", \"view\")", null)) {
57 * Find all columns in a table/view.
59 private static List<String> findColumns(SQLiteDatabase db, String table) { argument
62 // Open the table/view but requests 0 rows.
63 final Cursor c = db.rawQuery("SELECT * FROM " + table + " WHERE 0 LIMIT 0", null);
76 * Return all table/view names that clients shouldn't use in their queries -- basically the
77 * result contains all table/view names, except for the names that are column names of any
86 final List<String> ret = new ArrayList<>(tables); // Start with the table/vie
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DEdgeSwipeDetector.java34 public EdgeSwipeDetector(Context context, PhotoTable table) { argument
35 mTable = table;
H A DKeyboardInterpreter.java33 public KeyboardInterpreter(PhotoTable table) { argument
35 mTable = table;
H A DDragGestureDetector.java36 public DragGestureDetector(Context context, PhotoTable table) { argument
39 mTable = table;
H A DPhotoTouchListener.java55 public PhotoTouchListener(Context context, PhotoTable table) { argument
56 mTable = table;
H A DPhotoTable.java461 private static View applyFrame(final PhotoTable table, final BitmapFactory.Options options, argument
463 LayoutInflater inflater = (LayoutInflater) table.getContext()
474 layers[0] = new BitmapDrawable(table.mResources, decodedPhoto);
475 layers[1] = table.mResources.getDrawable(R.drawable.frame);
477 layerList.setLayerInset(0, table.mInset, table.mInset,
478 table.mInset, table.mInset);
484 photo.setOnTouchListener(new PhotoTouchListener(table.getContext(),
485 table));
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
H A DMoreDatabaseUtils.java30 * Builds a CREATE INDEX ddl statement for a given table and field.
32 * @param table The table name.
36 public static String buildCreateIndexSql(String table, String field) { argument
37 return "CREATE INDEX " + buildIndexName(table, field) + " ON " + table
42 * Builds a DROP INDEX ddl statement for a given table and field.
44 * @param table The table name that was originally used to create the index.
49 public static String buildDropIndexSql(String table, Strin argument
58 buildIndexName(String table, String field) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
H A DFilterStackDBHelper.java32 /** The table name */
69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) { argument
71 create.append(table).append('(');
92 protected static void dropTable(SQLiteDatabase db, String table) { argument
95 db.execSQL("drop table if exists " + table);
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoDatabase.java136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { argument
138 create.append(table).append('(');
186 protected static void dropTable(SQLiteDatabase db, String table) { argument
189 db.execSQL("drop table if exists " + table);
H A DPhotoProvider.java71 * Internal database table used for account information
94 /** Internal database table used for basic photo information. */
133 /** Internal database table used album information. */
170 /** Internal database table used metadata information. */
295 String table = getTableFromMatch(match, uri);
298 long id = db.insert(table, null, values);
300 // uri already matches the table.
320 String table = getTableFromMatch(match, uri);
321 Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal);
339 String table
455 nestWhere(String matchColumn, String table, String nestedWhere) argument
518 query(String table, String[] columns, String selection, String[] selectionArgs, String orderBy, CancellationSignal cancellationSignal) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DSyncMessageBatch.java181 // Inserting sms content into messages table
271 // Inserting mms content into messages table
357 * @param table
362 private static int batchDelete(final DatabaseWrapper db, final String table, argument
376 table,
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDatabaseWrapper.java301 public long queryNumEntries(final String table, final String selection, argument
309 DatabaseUtils.queryNumEntries(mDatabase, table, selection, selectionArgs);
313 String.format(Locale.US, "queryNumEntries %s with %s ==> %d", table,
337 public int update(final String table, final ContentValues values, argument
346 count = mDatabase.update(table, values, selection, selectionArgs);
353 table, selection, count));
358 public int delete(final String table, final String whereClause, final String[] whereArgs) { argument
366 count = mDatabase.delete(table, whereClause, whereArgs);
373 String.format(Locale.US, "delete from %s with %s ==> %d", table,
379 public long insert(final String table, fina argument
399 replace(final String table, final String nullColumnHack, final ContentValues values) argument
[all...]
H A DBugleDatabaseOperations.java409 LogUtil.e(TAG, "BugleDatabaseOperations : failed to insert conversation into table");
425 // if the participant already exists in the participant table. For example, say you have
428 // group conversation, we see that he's already in the participant table, therefore we
432 // hand, will fill out all the info for each participant from the participants table.
1159 * Insert a message and its parts into the table
1182 * Update a message and add its parts into the table
1562 // Now add draft to message table
1638 // Add the participant to the conversation participants table
1760 // Insert the participant into the participants table
1893 public static boolean updateRowIfExists(final DatabaseWrapper db, final String table, argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharMatcher.java367 @Override protected void setBits(LookupTable table) {
398 @Override protected void setBits(LookupTable table) {
399 table.set(match);
448 @Override protected void setBits(LookupTable table) {
449 table.set(match1);
450 table.set(match2);
465 @Override protected void setBits(LookupTable table) {
467 table.set(c);
495 @Override protected void setBits(LookupTable table) {
498 table
624 setBits(LookupTable table) argument
683 setBits(LookupTable table) argument
[all...]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java80 * Return the proper view of "pdu" table for the current access status.
83 * @return the table/view name of the mms data
92 // First check if a restricted view of the "pdu" table should be used based on the
315 String table = TABLE_PDU;
341 table = TABLE_PART;
345 table = TABLE_ADDR;
349 table = TABLE_RATE;
353 table = TABLE_DRM;
365 if (table.equals(TABLE_PDU)) {
407 if ((rowId = db.insert(table, nul
731 deleteDataRows(SQLiteDatabase db, String table, String selection, String[] selectionArgs) argument
[all...]
H A DTelephonyProvider.java385 // Try to access the table and create it if "no such table"
387 if (DBG) log("dbh.onOpen: ok, queried table=" + SIMINFO_TABLE);
390 if (e.getMessage().startsWith("no such table")) {
396 if (DBG) log("dbh.onOpen: ok, queried table=" + CARRIERS_TABLE);
399 if (e.getMessage().startsWith("no such table")) {
653 // Try to update the siminfo table. It might not be there.
661 " The table will get created in onOpen.");
668 // Try to update the siminfo table. It might not be there.
674 " The table wil
1442 mergeFieldsAndUpdateDb(SQLiteDatabase db, String table, Cursor oldRow, ContentValues newRow, ContentValues mergedValues, boolean onUpgrade, Context context) argument
1529 separateRowsNeeded(SQLiteDatabase db, String table, Cursor oldRow, ContentValues newRow, Context context, String[] oldTypes, String[] newTypes) argument
1623 selectConflictingRow(SQLiteDatabase db, String table, ContentValues row) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java112 return "vnd.android.cursor.dir/" + args.table;
114 return "vnd.android.cursor.item/" + args.table;
124 qb.setTables(args.table);
134 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) {
138 return db.insert(table, nullColumnHack, values);
144 db.delete(args.table, args.where, args.args);
152 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues);
170 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) {
188 int count = db.delete(args.table, args.where, args.args);
199 int count = db.update(args.table, value
133 dbInsertAndCheck(DatabaseHelper helper, SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) argument
1280 public final String table; field in class:LauncherProvider.SqlArguments
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java141 return "vnd.android.cursor.dir/" + args.table;
143 return "vnd.android.cursor.item/" + args.table;
179 qb.setTables(args.table);
189 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) {
196 helper.checkId(table, values);
197 return db.insert(table, nullColumnHack, values);
223 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues);
310 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) {
342 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) {
345 int count = db.delete(args.table, arg
188 dbInsertAndCheck(DatabaseHelper helper, SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) argument
1049 checkId(String table, ContentValues values) argument
1110 getMaxId(SQLiteDatabase db, String table) argument
1129 public final String table; field in class:LauncherProvider.SqlArguments
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnJAJP.java154 /** H/W 12Keyboard keycode replace table */
2353 * @param table Table of toggle characters
2355 private void processSoftKeyboardToggleChar(String[] table) { argument
2356 if (table == null) {
2368 String c = searchToggleCharacter(prevChar, table, false);
2382 String str = table[0];
2385 char top = table[0].charAt(0);
/packages/providers/TvProvider/src/com/android/providers/tv/
H A DTvProvider.java101 // The internal column in the watched programs table to indicate whether the current log entry
978 private static void migrateIntegerColumnToTextColumn(SQLiteDatabase db, String table, argument
980 db.execSQL("ALTER TABLE " + table + " ADD " + textColumn + " TEXT;");
981 db.execSQL("UPDATE " + table + " SET " + textColumn + " = CAST(" + integerColumn
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java174 * The cached copy of the CalendarMetaData database table.
576 * the timezone dependent fields in the Instances table if the timezone
602 * then the Instances table will be regenerated.
708 Log.v(TAG, "Could not update Events table with values " + values);
753 // Regenerate the Instances table for this month. Include events
795 * ALERT table is maintained locally so don't request a sync for changes in it
1043 * Fills the Instances table, if necessary, for the given range and then
1044 * queries the Instances table.
1302 * table. Acquires the database lock and calls
1327 * table
3308 deleteFromEventRelatedTable(String table, Uri uri, String selection, String[] selectionArgs) argument
3465 updateEventRelatedTable(Uri uri, String table, boolean byId, ContentValues updateValues, String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
[all...]

Completed in 919 milliseconds

12