/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 | CloneContactsProvider2Test.java | 131 ArrayList<ContentProviderOperation> ops) { in assertRejectedApplyBatchResults() argument 132 assertEquals(ops.size(), res.length); in assertRejectedApplyBatchResults() 133 for (int i = 0;i < ops.size();i++) { in assertRejectedApplyBatchResults() 134 Uri expectedUri = ops.get(i).getUri() in assertRejectedApplyBatchResults() 272 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in testCloneContactsApplyBatch() local 274 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in testCloneContactsApplyBatch() 279 ops.add(ContentProviderOperation in testCloneContactsApplyBatch() 290 ops.add(ContentProviderOperation in testCloneContactsApplyBatch() 300 ContactsContract.AUTHORITY, ops); in testCloneContactsApplyBatch() 301 assertRejectedApplyBatchResults(res, ops); in testCloneContactsApplyBatch()
|
/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/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/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | RecentlyAccessedByUtils.java | 64 AppOpsManager.PackageOps ops = packageOps.get(i); in getAppList() local 67 boolean isSystem = UserHandle.isSameApp(ops.getUid(), Process.SYSTEM_UID) in getAppList() 68 && ANDROID_SYSTEM_PACKAGE_NAME.equals(ops.getPackageName()); in getAppList() 70 UserHandle.getUserHandleForUid(ops.getUid())); in getAppList() 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 89 AppOpsManager.PackageOps ops, IconDrawableFactory iconDrawableFactory) { in getRecentRequestFromOps() argument 90 String packageName = ops.getPackageName(); in getRecentRequestFromOps() 91 List<AppOpsManager.OpEntry> entries = ops.getOps(); in getRecentRequestFromOps()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/ |
D | RecentlyAccessedByUtils.java | 64 AppOpsManager.PackageOps ops = packageOps.get(i); in getAppList() local 67 boolean isSystem = UserHandle.isSameApp(ops.getUid(), Process.SYSTEM_UID) in getAppList() 68 && ANDROID_SYSTEM_PACKAGE_NAME.equals(ops.getPackageName()); in getAppList() 70 UserHandle.getUserHandleForUid(ops.getUid())); in getAppList() 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 89 AppOpsManager.PackageOps ops, IconDrawableFactory iconDrawableFactory) { in getRecentRequestFromOps() argument 90 String packageName = ops.getPackageName(); in getRecentRequestFromOps() 91 List<AppOpsManager.OpEntry> entries = ops.getOps(); in getRecentRequestFromOps()
|
/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/Settings/src/com/android/settings/network/ |
D | MobileNetworkIntentConverter.java | 113 Function<Intent, Intent> ops = Function.identity(); in apply() local 121 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply() 126 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply() 132 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply() 139 ops = ops.andThen(intent -> extractArguments(intent, subId)) in apply() 148 ops = ops.andThen(intent -> configForReRoute(intent)); in apply() 151 Intent result = ops.apply(reqIntent); in apply()
|
/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/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 47 EditOperation[] ops = distance.getTargetOperations(); in verifyTargetOperations() local 48 assertEquals(expectedOps.length, ops.length); in verifyTargetOperations() 49 for (int i = 0; i < ops.length; ++i) { in verifyTargetOperations() 51 expectedOps[i], ops[i].getType()); in verifyTargetOperations() 53 assertEquals(source[ops[i].getPosition()], target[i]); in verifyTargetOperations() 55 assertFalse(source[ops[i].getPosition()].equals(target[i])); in verifyTargetOperations()
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | SimContactDaoTests.java | 506 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in seedCp2() local 508 appendCreateContact("John Smith", sSeedAccount, ops); in seedCp2() 509 appendCreateContact("Marcus Seed", sSeedAccount, ops); in seedCp2() 510 appendCreateContact("Gary Seed", sSeedAccount, ops); in seedCp2() 511 appendCreateContact("Michael Seed", sSeedAccount, ops); in seedCp2() 512 appendCreateContact("Isaac Seed", sSeedAccount, ops); in seedCp2() 513 appendCreateContact("Sean Seed", sSeedAccount, ops); in seedCp2() 514 appendCreateContact("Nate Seed", sSeedAccount, ops); in seedCp2() 515 appendCreateContact("Andrey Seed", sSeedAccount, ops); in seedCp2() 516 appendCreateContact("Cody Seed", sSeedAccount, ops); in seedCp2() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RecentLocationApps.java | 91 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() local 94 String packageName = ops.getPackageName(); in getAppList() 95 int uid = ops.getUid(); in getAppList() 131 RecentLocationApps.Request request = getRequestFromOps(now, ops); in getAppList() 168 AppOpsManager.PackageOps ops) { in getRequestFromOps() argument 169 String packageName = ops.getPackageName(); in getRequestFromOps() 170 List<AppOpsManager.OpEntry> entries = ops.getOps(); in getRequestFromOps() 200 int uid = ops.getUid(); in getRequestFromOps()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | RecentLocationAppsCompat.java | 83 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() local 86 String packageName = ops.getPackageName(); in getAppList() 87 int uid = ops.getUid(); in getAppList() 123 Request request = getRequestFromOps(now, ops); in getAppList() 158 AppOpsManager.PackageOps ops) { in getRequestFromOps() argument 159 String packageName = ops.getPackageName(); in getRequestFromOps() 160 List<AppOpsManager.OpEntry> entries = ops.getOps(); in getRequestFromOps() 190 int uid = ops.getUid(); in getRequestFromOps()
|
/packages/modules/Bluetooth/system/bta/sdp/ |
D | bta_sdp_act.cc | 290 record->ops.hdr.type = SDP_TYPE_OPP_SERVER; in bta_create_ops_sdp_record() 291 record->ops.hdr.service_name_length = 0; in bta_create_ops_sdp_record() 292 record->ops.hdr.service_name = NULL; in bta_create_ops_sdp_record() 293 record->ops.hdr.rfcomm_channel_number = 0; in bta_create_ops_sdp_record() 294 record->ops.hdr.l2cap_psm = -1; in bta_create_ops_sdp_record() 295 record->ops.hdr.profile_version = 0; in bta_create_ops_sdp_record() 296 record->ops.supported_formats_list_len = 0; in bta_create_ops_sdp_record() 302 record->ops.hdr.service_name_length = in bta_create_ops_sdp_record() 304 record->ops.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_ops_sdp_record() 314 record->ops.hdr.profile_version = pversion; in bta_create_ops_sdp_record() [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/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_sdp.cpp | 172 jint formats_list_size = record->ops.supported_formats_list_len; in sdp_search_callback() 178 (jbyte*)record->ops.supported_formats_list); in sdp_search_callback() 182 addr.get(), uuid.get(), (jint)record->ops.hdr.l2cap_psm, in sdp_search_callback() 183 (jint)record->ops.hdr.rfcomm_channel_number, in sdp_search_callback() 184 (jint)record->ops.hdr.profile_version, service_name.get(), in sdp_search_callback() 374 record.ops.hdr.type = SDP_TYPE_OPP_SERVER; in sdpCreateOppOpsRecordNative() 379 record.ops.hdr.service_name = (char*)service_name; in sdpCreateOppOpsRecordNative() 380 record.ops.hdr.service_name_length = strlen(service_name); in sdpCreateOppOpsRecordNative() 382 record.ops.hdr.service_name = NULL; in sdpCreateOppOpsRecordNative() 383 record.ops.hdr.service_name_length = 0; in sdpCreateOppOpsRecordNative() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/ |
D | manager.rs | 103 ops: ControllerOps, field 109 pub fn new(ops: ControllerOps) -> Self { in new() 110 Self { ops, links: Default::default(), procedures: Default::default() } in new() 240 self.ops.send_hci_event(&event.encode_to_vec().unwrap()); in send_command_complete_event() 247 .and_then(|handle| self.ops.get_address(handle)) in ingest_hci() 321 manager.ops.send_hci_event(&event.into().encode_to_vec().unwrap()) in send_hci_event() 328 .ops in send_lmp_packet() 343 manager.ops.get_handle(self.peer_address()) in peer_handle() 351 manager.ops.get_extended_features(features_page) in extended_features()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | SimContactsTestHelper.java | 97 ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in deleteAllSimContacts() local 99 ops.add(ContentProviderOperation in deleteAllSimContacts() 104 return mResolver.applyBatch(SimPhonebookContract.AUTHORITY, ops); in deleteAllSimContacts() 124 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in captureRestoreSnapshot() local 131 ops.add(ContentProviderOperation in captureRestoreSnapshot() 137 return ops; in captureRestoreSnapshot()
|
/packages/modules/Virtualization/pvmfw/avb/src/ |
D | verify.rs | 17 use crate::ops::{Ops, Payload}; 235 ops: &mut Ops, in verify_initrd() 240 ops.verify_partition(partition_name.as_cstr()).map_err(|e| e.without_verify_data())?; in verify_initrd() 255 let mut ops = Ops::new(&payload); in verify_payload() localVariable 256 let kernel_verify_result = ops.verify_partition(PartitionName::Kernel.as_cstr())?; in verify_payload() 284 if verify_initrd(&mut ops, PartitionName::InitrdNormal, initrd).is_ok() { in verify_payload() 286 } else if verify_initrd(&mut ops, PartitionName::InitrdDebug, initrd).is_ok() { in verify_payload()
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PerformanceTest.java | 170 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in doBulk() local 172 ops.add(ContentProviderOperation.newInsert(collection) in doBulk() 182 res = resolver.applyBatch(collection.getAuthority(), ops); in doBulk() 191 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in doBulk() local 193 ops.add(ContentProviderOperation.newUpdate(res[i].uri) in doBulk() 202 resolver.applyBatch(collection.getAuthority(), ops); in doBulk() local 211 final ArrayList<ContentProviderOperation> ops = new ArrayList<>(); in doBulk() local 213 ops.add(ContentProviderOperation.newDelete(res[i].uri) in doBulk() 221 resolver.applyBatch(collection.getAuthority(), ops); in doBulk() local
|
/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()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowAppOpsManager.java | 54 protected List<PackageOps> getPackagesForOps(int[] ops) { in getPackagesForOps() argument 55 if (ops == null) { in getPackagesForOps() 59 for (int i = 0; i < ops.length; i++) { in getPackagesForOps() 60 int op = ops[i]; in getPackagesForOps()
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | ContactUtilTest.java | 71 final ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in addTestContact() local 73 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in addTestContact() 78 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 86 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 97 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addTestContact() 107 mContext.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); in addTestContact()
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/llcp/ |
D | manager.rs | 28 ops: ffi::ControllerOps, field 48 pub fn new(ops: ffi::ControllerOps) -> LinkLayer { in new() 49 let iso = iso::IsoManager::new(ops.clone()); in new() 50 LinkLayer { ops, links: HashMap::new(), iso } in new()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/v31/ |
D | LightPackageOps.kt | 42 ops: Set<String>, 47 createLastPermissionGroupAccessTimesMap(ops, packageOps) 69 for (opEntry in packageOps.ops) { in createLastPermissionGroupAccessTimesMap()
|