/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2TransactionTest.java | 178 private static void addInsertContactOperations(ArrayList<ContentProviderOperation> ops) { in addInsertContactOperations() argument 183 ops.add(b.build()); in addInsertContactOperations() 186 b.withValueBackReference(Data.RAW_CONTACT_ID, ops.size() - 1); in addInsertContactOperations() 191 ops.add(b.build()); in addInsertContactOperations() 207 private static void addInsertProfileOperations(ArrayList<ContentProviderOperation> ops) { in addInsertProfileOperations() argument 212 ops.add(b.build()); in addInsertProfileOperations() 215 b.withValueBackReference(Data.RAW_CONTACT_ID, ops.size() - 1); in addInsertProfileOperations() 220 ops.add(b.build()); in addInsertProfileOperations() 235 final ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testTransactionCallback_contactBatch() local 237 addInsertContactOperations(ops); in testTransactionCallback_contactBatch() [all …]
|
D | ContactMetadataProviderTest.java | 412 ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testBatchOperations() local 413 ops.add(ContentProviderOperation.newInsert(MetadataSync.CONTENT_URI) in testBatchOperations() 422 ops.add(ContentProviderOperation.newInsert(MetadataSync.CONTENT_URI) in testBatchOperations() 431 ops.add(ContentProviderOperation.newDelete(MetadataSync.CONTENT_URI) in testBatchOperations() 437 mResolver.applyBatch(MetadataSync.METADATA_AUTHORITY, ops); in testBatchOperations()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetchHelper.java | 92 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in updateEpgData() local 109 ops.add( in updateEpgData() 119 ops.add( in updateEpgData() 136 ops.add( in updateEpgData() 142 if (ops.size() > BATCH_OPERATION_COUNT || newProgramsIndex >= fetchedProgramsCount) { in updateEpgData() 145 int size = ops.size(); in updateEpgData() 148 Log.d(TAG, "Operation(" + i + "): " + ops.get(i)); in updateEpgData() 151 context.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in updateEpgData() 157 ops.clear(); in updateEpgData() 171 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in updateNetworkAffiliation() local [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrStorageStatusManager.java | 82 List<ContentProviderOperation> ops = getDeleteOps(); in doInBackground() local 83 if (ops == null || ops.isEmpty()) { in doInBackground() 88 "New device storage mounted. # of recordings to be forgotten : " + ops.size()); in doInBackground() 89 for (int i = 0; i < ops.size() && !isCancelled(); i += BATCH_OPERATION_COUNT) { in doInBackground() 91 (i + BATCH_OPERATION_COUNT) > ops.size() in doInBackground() 92 ? ops.size() in doInBackground() 95 new ArrayList<>(ops.subList(i, toIndex)); in doInBackground() 130 List<ContentProviderOperation> ops = new ArrayList<>(); in getDeleteOps() local 145 ops.clear(); in getDeleteOps() 163 ops.add( in getDeleteOps() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/ |
D | ChannelDataManager.java | 295 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in scannedChannelHandlingCompleted() local 297 ops.add( in scannedChannelHandlingCompleted() 303 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in scannedChannelHandlingCompleted() 408 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in handleEvents() local 459 ops.add( in handleEvents() 464 if (ops.size() >= BATCH_OPERATION_COUNT) { in handleEvents() 465 applyBatch(channel.getName(), ops); in handleEvents() local 466 ops.clear(); in handleEvents() 469 applyBatch(channel.getName(), ops); in handleEvents() local 498 ops.add( in handleEvents() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | SimContactDaoTests.java | 504 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in seedCp2() local 506 appendCreateContact("John Smith", sSeedAccount, ops); in seedCp2() 507 appendCreateContact("Marcus Seed", sSeedAccount, ops); in seedCp2() 508 appendCreateContact("Gary Seed", sSeedAccount, ops); in seedCp2() 509 appendCreateContact("Michael Seed", sSeedAccount, ops); in seedCp2() 510 appendCreateContact("Isaac Seed", sSeedAccount, ops); in seedCp2() 511 appendCreateContact("Sean Seed", sSeedAccount, ops); in seedCp2() 512 appendCreateContact("Nate Seed", sSeedAccount, ops); in seedCp2() 513 appendCreateContact("Andrey Seed", sSeedAccount, ops); in seedCp2() 514 appendCreateContact("Cody Seed", sSeedAccount, ops); in seedCp2() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_sdp.cpp | 196 jint formats_list_size = record->ops.supported_formats_list_len; in sdp_search_callback() 202 (jbyte*)record->ops.supported_formats_list); in sdp_search_callback() 206 addr.get(), uuid.get(), (jint)record->ops.hdr.l2cap_psm, in sdp_search_callback() 207 (jint)record->ops.hdr.rfcomm_channel_number, in sdp_search_callback() 208 (jint)record->ops.hdr.profile_version, service_name.get(), in sdp_search_callback() 387 record.ops.hdr.type = SDP_TYPE_OPP_SERVER; in sdpCreateOppOpsRecordNative() 392 record.ops.hdr.service_name = (char*)service_name; in sdpCreateOppOpsRecordNative() 393 record.ops.hdr.service_name_length = strlen(service_name); in sdpCreateOppOpsRecordNative() 395 record.ops.hdr.service_name = NULL; in sdpCreateOppOpsRecordNative() 396 record.ops.hdr.service_name_length = 0; in sdpCreateOppOpsRecordNative() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 62 public final int[] ops; field in AppOpsState.OpsTemplate 66 ops = _ops; in OpsTemplate() 71 ops = src.createIntArray(); in OpsTemplate() 82 dest.writeIntArray(ops); in writeToParcel() 380 private CharSequence getCombinedText(ArrayList<AppOpsManager.OpEntry> ops, in getCombinedText() argument 382 if (ops.size() == 1) { in getCombinedText() 383 return items[ops.get(0).getOp()]; in getCombinedText() 386 for (int i=0; i<ops.size(); i++) { in getCombinedText() 390 builder.append(items[ops.get(i).getOp()]); in getCombinedText() 538 for (int i=0; i<tpl.ops.length; i++) { in buildState() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsState.java | 62 public final int[] ops; field in AppOpsState.OpsTemplate 66 ops = _ops; in OpsTemplate() 71 ops = src.createIntArray(); in OpsTemplate() 82 dest.writeIntArray(ops); in writeToParcel() 380 private CharSequence getCombinedText(ArrayList<AppOpsManager.OpEntry> ops, in getCombinedText() argument 382 if (ops.size() == 1) { in getCombinedText() 383 return items[ops.get(0).getOp()]; in getCombinedText() 386 for (int i=0; i<ops.size(); i++) { in getCombinedText() 390 builder.append(items[ops.get(i).getOp()]); in getCombinedText() 538 for (int i=0; i<tpl.ops.length; i++) { in buildState() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
D | TestSyncAdapter.java | 61 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in onPerformSync() local 73 ops.add(ContentProviderOperation.newUpdate(RawContacts.CONTENT_URI) in onPerformSync() 83 ops.add(ContentProviderOperation.newInsert(dataUri) in onPerformSync() 93 if (ops.isEmpty()) return; in onPerformSync() 99 Log.v(TestauthConstants.LOG_TAG, "Claiming " + ops.size() + " local raw contacts"); in onPerformSync() 100 for (ContentProviderOperation op : ops) { in onPerformSync() 105 contentResolver.applyBatch(ContactsContract.AUTHORITY, ops); in onPerformSync()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 46 EditOperation[] ops = distance.getTargetOperations(); in verifyTargetOperations() local 47 assertEquals(expectedOps.length, ops.length); in verifyTargetOperations() 48 for (int i = 0; i < ops.length; ++i) { in verifyTargetOperations() 50 expectedOps[i], ops[i].getType()); in verifyTargetOperations() 52 assertEquals(source[ops[i].getPosition()], target[i]); in verifyTargetOperations() 54 assertFalse(source[ops[i].getPosition()].equals(target[i])); in verifyTargetOperations()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | SimContactsTestHelper.java | 92 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in deleteAllSimContacts() local 94 ops.add(ContentProviderOperation in deleteAllSimContacts() 99 return mResolver.applyBatch(SimContactDaoImpl.ICC_CONTENT_URI.getAuthority(), ops); in deleteAllSimContacts() 119 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in captureRestoreSnapshot() local 126 ops.add(ContentProviderOperation in captureRestoreSnapshot() 132 return ops; in captureRestoreSnapshot()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissionUsage.java | 174 final List<OpEntry> ops = mLastUsage.getOps(); in isRunning() local 175 final int opCount = ops.size(); in isRunning() 177 final OpEntry op = ops.get(j); in isRunning() 208 final List<OpEntry> ops = mLastUsage.getOps(); in lastAccessAggregate() local 209 final int opCount = ops.size(); in lastAccessAggregate() 211 final OpEntry op = ops.get(opNum); in lastAccessAggregate()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimContact.java | 82 public void appendCreateContactOperations(List<ContentProviderOperation> ops, in appendCreateContactOperations() argument 87 final int rawContactOpIndex = ops.size(); in appendCreateContactOperations() 88 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in appendCreateContactOperations() 95 ops.add(createInsertOp(rawContactOpIndex, StructuredName.CONTENT_ITEM_TYPE, in appendCreateContactOperations() 99 ops.add(createInsertOp(rawContactOpIndex, Phone.CONTENT_ITEM_TYPE, in appendCreateContactOperations() 104 ops.add(createInsertOp(rawContactOpIndex, Email.CONTENT_ITEM_TYPE, in appendCreateContactOperations()
|
D | RawContactDeltaList.java | 212 private static String diffToString(ArrayList<ContentProviderOperation> ops) { in diffToString() argument 215 for (ContentProviderOperation op : ops) { in diffToString() 227 ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in diffToStringWrapper() local 229 ops.add(cpoWrapper.getOperation()); in diffToStringWrapper() 231 return diffToString(ops); in diffToStringWrapper()
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | ContactUtilTest.java | 70 final ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in addTestContact() local 72 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in addTestContact() 77 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 85 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 96 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 106 mContext.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); in addTestContact()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowAppOpsManager.java | 53 protected List<PackageOps> getPackagesForOps(int[] ops) { in getPackagesForOps() argument 54 if (ops == null) { in getPackagesForOps() 58 for (int i = 0; i < ops.length; i++) { in getPackagesForOps() 59 int op = ops[i]; in getPackagesForOps()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 108 final EditOperation[] ops = new EditOperation[trgLen]; in getTargetOperations() local 120 ops[targetPos] = new EditOperation(editType, sourcePos); in getTargetOperations() 126 ops[targetPos] = new EditOperation(editType, sourcePos); in getTargetOperations() 131 return ops; in getTargetOperations()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateAppOpsBridge.java | 124 List<PackageOps> ops = mAppOpsManager.getOpsForPackage(uid, pkg, mAppOpsOpCodes); in getPermissionInfo() local 125 if (ops != null && ops.size() > 0 && ops.get(0).getOps().size() > 0) { in getPermissionInfo() 126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 124 List<PackageOps> ops = mAppOpsManager.getOpsForPackage(uid, pkg, mAppOpsOpCodes); in getPermissionInfo() local 125 if (ops != null && ops.size() > 0 && ops.get(0).getOps().size() > 0) { in getPermissionInfo() 126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations(); in findMatches() local 89 if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) { in findMatches() 90 result[i] = ops[i].getPosition(); in findMatches()
|
/packages/apps/Contacts/src/com/android/contacts/database/ |
D | SimContactDaoImpl.java | 247 final ArrayList<ContentProviderOperation> ops = in importBatch() local 249 return mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in importBatch() 388 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in createImportOperations() local 390 contact.appendCreateContactOperations(ops, targetAccount); in createImportOperations() 392 return ops; in createImportOperations()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelLogoFetcher.java | 181 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in doInBackground() local 183 ops.add( in doInBackground() 189 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in doInBackground()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | CallLogPullRequest.java | 86 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in onPullComplete() local 122 ops.add(ContentProviderOperation.newInsert(CallLog.Calls.CONTENT_URI) in onPullComplete() 127 mContext.getContentResolver().applyBatch(CallLog.AUTHORITY, ops); in onPullComplete()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/ |
D | ReviewAccessibilityServicesActivity.java | 156 List<AppOpsManager.PackageOps> ops = appOpsManager.getOpsForPackage(appInfo.uid, in getLastAccessTime() local 159 int numPkgOps = ops.size(); in getLastAccessTime() 161 AppOpsManager.PackageOps pkgOp = ops.get(pkgOpNum); in getLastAccessTime()
|