/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 630 final ContentProviderOperation.Builder op; in visitFile() local 633 op = scanItem(existingId, realFile, attrs, actualMimeType, actualMediaType, in visitFile() 638 if (op != null) { in visitFile() 640 if (op.build().isInsert() && !attrs.isDirectory() && mOwnerPackage != null) { in visitFile() 641 op.withValue(MediaColumns.OWNER_PACKAGE_NAME, mOwnerPackage); in visitFile() 646 op.withValue(MediaColumns.IS_DRM, 1); in visitFile() 648 addPending(op.build()); in visitFile() 679 private void addPending(ContentProviderOperation op) { in addPending() argument 680 mPending.add(op); in addPending() 682 if (op.isInsert()) mInsertCount++; in addPending() [all …]
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissionUsage.java | 137 (op) -> op.getLastAccessTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessTime() 145 (op) -> op.getLastAccessForegroundTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessForegroundTime() 153 (op) -> op.getLastAccessBackgroundTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessBackgroundTime() 160 return extractAggregate((HistoricalOp op) in getForegroundAccessCount() 161 -> op.getForegroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getForegroundAccessCount() 168 return extractAggregate((HistoricalOp op) in getBackgroundAccessCount() 169 -> op.getBackgroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getBackgroundAccessCount() 176 return extractAggregate((HistoricalOp op) -> in getAccessCount() 177 op.getForegroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED) in getAccessCount() 178 + op.getBackgroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED) in getAccessCount() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | Request.java | 83 ClientOperation op = null; in executeGet() local 86 op = (ClientOperation) session.get(mHeaderSet); in executeGet() 95 op.setGetFinalFlag(true); in executeGet() 101 op.continueOperation(true, false); in executeGet() 103 readResponseHeaders(op.getReceivedHeader()); in executeGet() 105 InputStream is = op.openInputStream(); in executeGet() 109 op.close(); in executeGet() 111 mResponseCode = op.getResponseCode(); in executeGet() 120 Operation op = null; in executePut() local 125 op = session.put(mHeaderSet); in executePut() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | UserPresetsManager.java | 91 SaveOperation op = new SaveOperation(); in save() local 92 op.json = preset.getJsonString(ImagePreset.JASON_SAVED); in save() 93 op.name = name; in save() 94 msg.obj = op; in save() 111 UpdateOperation op = new UpdateOperation(); in update() local 112 op.id = representation.getId(); in update() 113 op.name = representation.getName(); in update() 114 msg.obj = op; in update() 132 SaveOperation op = (SaveOperation) msg.obj; in processSave() local 133 mUserPresets.insertStack(op.name, op.json.getBytes()); in processSave() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 321 public int onPut(final Operation op) { in onPut() argument 395 public int onGet(Operation op) { in onGet() argument 405 request = op.getReceivedHeader(); in onGet() 542 return pullVcardListing(appParam, appParamValue, reply, op, name); in onGet() 545 return pullVcardEntry(appParam, appParamValue, op, reply, name, mCurrentPath); in onGet() 548 return pullPhonebook(appParam, appParamValue, reply, op, name); in onGet() 761 private int sendVcardListingXml(AppParamValue appParamValue, Operation op, int needSendBody, in sendVcardListingXml() argument 809 return pushBytes(op, result.toString()); in sendVcardListingXml() 904 private int pushHeader(final Operation op, final HeaderSet reply) { in pushHeader() argument 916 op.sendHeaders(reply); in pushHeader() [all …]
|
D | BluetoothPbapVcardManager.java | 498 final int composeAndSendSelectedCallLogVcards(final int type, Operation op, in composeAndSendSelectedCallLogVcards() argument 562 return composeCallLogsAndSendSelectedVCards(op, selection, vcardType21, needSendBody, in composeAndSendSelectedCallLogVcards() 566 final int composeAndSendPhonebookVcards(Operation op, final int startPoint, final int endPoint, in composeAndSendPhonebookVcards() argument 602 return composeContactsAndSendSelectedVCards(op, contactIdCursor, vcardType21, in composeAndSendPhonebookVcards() 606 return composeContactsAndSendVCards(op, contactIdCursor, vcardType21, ownerVCard, in composeAndSendPhonebookVcards() 611 final int composeAndSendPhonebookOneVcard(Operation op, final int offset, in composeAndSendPhonebookOneVcard() argument 640 return composeContactsAndSendVCards(op, contactIdCursor, vcardType21, ownerVCard, in composeAndSendPhonebookOneVcard() 709 private int composeContactsAndSendVCards(Operation op, final Cursor contactIdCursor, in composeContactsAndSendVCards() argument 755 buffer = new HandlerForStringBuffer(op, ownerVCard); in composeContactsAndSendVCards() 764 ((ServerOperation) op).isAborted = true; in composeContactsAndSendVCards() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsState.java | 241 public void addOp(AppOpEntry entry, AppOpsManager.OpEntry op) { in addOp() argument 242 mOps.put(op.getOp(), op); in addOp() local 243 mOpSwitches.put(AppOpsManager.opToSwitch(op.getOp()), entry); in addOp() 246 public boolean hasOp(int op) { in hasOp() argument 247 return mOps.indexOfKey(op) >= 0; in hasOp() 250 public AppOpEntry getOpSwitch(int op) { in getOpSwitch() argument 251 return mOpSwitches.get(AppOpsManager.opToSwitch(op)); in getOpSwitch() 317 public AppOpEntry(AppOpsManager.PackageOps pkg, AppOpsManager.OpEntry op, AppEntry app, in AppOpEntry() argument 322 mApp.addOp(this, op); in AppOpEntry() 323 mOps.add(op); in AppOpEntry() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 240 public void addOp(AppOpEntry entry, AppOpsManager.OpEntry op) { in addOp() argument 241 mOps.put(op.getOp(), op); in addOp() local 242 mOpSwitches.put(AppOpsManager.opToSwitch(op.getOp()), entry); in addOp() 245 public boolean hasOp(int op) { in hasOp() argument 246 return mOps.indexOfKey(op) >= 0; in hasOp() 249 public AppOpEntry getOpSwitch(int op) { in getOpSwitch() argument 250 return mOpSwitches.get(AppOpsManager.opToSwitch(op)); in getOpSwitch() 316 public AppOpEntry(AppOpsManager.PackageOps pkg, AppOpsManager.OpEntry op, AppEntry app, in AppOpEntry() argument 321 mApp.addOp(this, op); in AppOpEntry() 322 mOps.add(op); in AppOpEntry() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 243 @NonNull String op, int uid, @NonNull String packageName, in checkAppOp() argument 246 final int mode = appOps.noteOpNoThrow(op, uid, packageName, attributionTag, opMessage); in checkAppOp() 255 throw new IllegalStateException(op + " has unknown mode " + mode); in checkAppOp() 264 @NonNull String op, int pid, int uid, @NonNull String packageName, in checkAppOpAllowingLegacy() argument 267 final int mode = appOps.noteOpNoThrow(op, uid, packageName, attributionTag, opMessage); in checkAppOpAllowingLegacy() 281 throw new IllegalStateException(op + " has unknown mode " + mode); in checkAppOpAllowingLegacy() 399 final String op = AppOpsManager.permissionToOp(permission); in checkAppOpPermission() local 400 if (op == null || packageName == null) { in checkAppOpPermission() 406 ? appOpsManager.noteOpNoThrow(op, uid, packageName, attributionTag, message) in checkAppOpPermission() 407 : appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkAppOpPermission() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapObexServer.java | 453 public int onPut(final Operation op) { in onPut() argument 465 request = op.getReceivedHeader(); in onPut() 523 return pushMessage(op, name, appParams, mMessageVersion); in onPut() 649 private int pushMessage(final Operation op, String folderName, BluetoothMapAppParams appParams, in pushMessage() argument 681 bMsgStream = op.openInputStream(); in pushMessage() 738 op.sendHeaders(replyHeaders); in pushMessage() 989 public int onGet(Operation op) { in onGet() argument 998 request = op.getReceivedHeader(); in onGet() 1027 return sendFolderListingRsp(op, appParams); in onGet() 1057 return sendMessageListingRsp(op, appParams, name); in onGet() [all …]
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkCmdReceiver.java | 55 private void handleAction(Context context, Intent intent, int op) { in handleAction() argument 59 args.putInt(StkAppService.OPCODE, op); in handleAction() 62 if (StkAppService.OP_CMD == op) { in handleAction() 65 } else if (StkAppService.OP_CARD_STATUS_CHANGED == op) { in handleAction() 78 } else if (StkAppService.OP_ALPHA_NOTIFY == op) { in handleAction() 83 CatLog.d(LOG_TAG, "handleAction, op: " + op + in handleAction()
|
/packages/services/Car/cpp/surround_view/service-impl/ |
D | CarModelConfigReader.cpp | 119 bool ReadOp(const XMLElement* opElem, OpType* op) { in ReadOp() argument 121 (void)op; in ReadOp() 221 OpType op; in ReadAllOps() local 222 RETURN_IF_FALSE(ReadOp(elem, &op)); in ReadAllOps() 223 if (mapOps->find(op.vhalProperty) == mapOps->end()) { in ReadAllOps() 224 mapOps->emplace(op.vhalProperty, std::vector<OpType>()); in ReadAllOps() 226 mapOps->at(op.vhalProperty).push_back(op); in ReadAllOps()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MnsObexServer.java | 100 public int onGet(final Operation op) { in onGet() argument 108 public int onPut(final Operation op) { in onPut() argument 115 headerset = op.getReceivedHeader(); in onPut() 124 EventReport ev = EventReport.fromStream(op.openDataInputStream()); in onPut() 125 op.close(); in onPut()
|
/packages/modules/DnsResolver/ |
D | res_mkquery.cpp | 100 int res_nmkquery(int op, // opcode of query in res_nmkquery() argument 113 LOG(DEBUG) << __func__ << ": (" << _res_opcodes[op] << ", " << p_class(cl) << ", " in res_nmkquery() 123 hp->opcode = op; in res_nmkquery() 136 switch (op) { in res_nmkquery() 148 if (op == QUERY || data == NULL) break; in res_nmkquery()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | UpdateInteractAcrossProfilesAppOpTask.java | 81 final String op = in grantNewConfigurableDefaultCrossProfilePackages() local 87 if (appOpIsChangedFromDefault(op, crossProfilePackageName)) { in grantNewConfigurableDefaultCrossProfilePackages() 96 private boolean appOpIsChangedFromDefault(String op, String packageName) { in appOpIsChangedFromDefault() argument 99 return mAppOpsManager.unsafeCheckOpNoThrow(op, uid, packageName) in appOpIsChangedFromDefault()
|
D | CreateManagedProfileTask.java | 118 final String op = in pregrantDefaultInteractAcrossProfilesAppOps() local 121 if (appOpIsChangedFromDefault(op, packageName)) { in pregrantDefaultInteractAcrossProfilesAppOps() 134 private boolean appOpIsChangedFromDefault(String op, String packageName) { in appOpIsChangedFromDefault() argument 137 return mAppOpsManager.unsafeCheckOpNoThrow(op, uid, packageName) in appOpIsChangedFromDefault()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowAppOpsManager.java | 60 int op = ops[i]; in getPackagesForOps() local 61 Map<InternalKey, Integer> keyToModeMap = mOpToKeyToMode.rowMap().get(op); in getPackagesForOps() 68 mode = AppOpsManager.opToDefaultMode(op); in getPackagesForOps() 70 OpEntry opEntry = new OpEntry(op, mode, Collections.emptyMap()); in getPackagesForOps()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantController.java | 82 String op = AppOpsManager.permissionToOp(Manifest.permission.INTERACT_ACROSS_PROFILES); in checkCrossProfileAppsPermissions() local 85 !appOpIsChangedFromDefault(op, crossProfilePackageName)) { in checkCrossProfileAppsPermissions() 92 private boolean appOpIsChangedFromDefault(String op, String packageName) { in appOpIsChangedFromDefault() argument 95 return mAppOpsManager.unsafeCheckOpNoThrow(op, uid, packageName) in appOpIsChangedFromDefault()
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ippstatus_capabilities.c | 136 int op = IPP_GET_PRINTER_ATTRIBUTES; in _get_capabilities() local 155 request = ippNewRequest(op); in _get_capabilities() 163 LOGD("IPP_GET_PRINTER_ATTRIBUTES %s request:", ippOpString(op)); in _get_capabilities() 177 LOGD("%s received, now call parse_printerAttributes:", ippOpString(op)); in _get_capabilities()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSession.java | 185 public int onPut(Operation op) { in onPut() argument 187 Log.d(TAG, "onPut " + op.toString()); in onPut() 208 request = op.getReceivedHeader(); in onPut() 374 status = receiveFile(mFileInfo, op); in onPut() 425 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument 434 is = op.openInputStream(); in receiveFile() 463 int outputBufferSize = op.getMaxPacketSize(); in receiveFile()
|
D | TestActivity.java | 527 public int onPut(Operation op) { in onPut() argument 530 java.io.InputStream is = op.openInputStream(); in onPut() 532 updateStatus("Got data bytes " + is.available() + " name " + op.getReceivedHeader() in onPut() 533 .getHeader(HeaderSet.NAME) + " type " + op.getType()); in onPut() 535 File f = new File((String) op.getReceivedHeader().getHeader(HeaderSet.NAME)); in onPut() 586 public int onGet(Operation op) { in onGet() argument
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/ |
D | RouteUtils.java | 93 public static void modifyRoute(final INetd netd, final ModifyOperation op, final int netId, in modifyRoute() argument 100 switch(op) { in modifyRoute() 108 throw new IllegalStateException("Unsupported modify operation:" + op); in modifyRoute()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 148 int op = PackageUpdatedTask.OP_UPDATE; in onPackageChanged() local 149 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageChanged() 158 int op = PackageUpdatedTask.OP_REMOVE; in onPackagesRemoved() local 160 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packages)); in onPackagesRemoved() 165 int op = PackageUpdatedTask.OP_ADD; in onPackageAdded() local 166 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageAdded()
|
/packages/apps/Car/Radio/src/com/android/car/radio/service/ |
D | RadioAppServiceWrapper.java | 239 private <V> V queryService(@NonNull ServiceOperation<V> op, V defaultResponse) { in queryService() argument 245 return op.execute(service); in queryService() 253 private void callService(@NonNull ServiceVoidOperation op) { in callService() argument 259 op.execute(service); in callService()
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 876 int op; in getOpacity() local 878 op = array[firstIndex].mDrawable.getOpacity(); in getOpacity() 880 op = PixelFormat.TRANSPARENT; in getOpacity() 887 op = Drawable.resolveOpacity(op, dr.getOpacity()); in getOpacity() 891 mOpacity = op; in getOpacity() 893 return op; in getOpacity()
|