Lines Matching refs:toString16
202 if (name != toString16(kAppopsServiceName)) { in onServiceRegistration()
239 sp<IBinder> binder = sm->checkService(toString16(kAppopsServiceName)); in onFirstRef()
241 sm->registerForNotifications(toString16(kAppopsServiceName), this); in onFirstRef()
1150 if (!checkCallingPermission(toString16(sCameraInjectExternalCameraPermission))) { in injectSessionParams()
2380 sp<IBinder> binder = sm->getService(toString16(kPermissionServiceName)); in getPackageNameFromUid()
2663 toString16(client->getPackageName()), cameraId, packagePid, packageUid); in connectHelper()
3119 if (!checkCallingPermission(toString16(sCameraSendSystemEventsPermission))) { in notifySystemEvent()
3193 if (!checkCallingPermission(toString16(sCameraSendSystemEventsPermission))) { in notifyDeviceStateChange()
3224 if (!checkCallingPermission(toString16(sCameraSendSystemEventsPermission))) { in notifyDisplayConfigurationChange()
3632 if (!checkCallingPermission(toString16(sCameraInjectExternalCameraPermission))) { in injectCamera()
4278 toString16(mClientPackageName), std::string(), mClientPid, mClientUid); in handleAppOpMode()
4313 toString16(mClientPackageName), in startCameraOps()
4317 toString16(mClientPackageName), mOpsCallback); in startCameraOps()
4323 toString16(mClientPackageName)); in startCameraOps()
4360 toString16(mClientPackageName), /*startIfModeDefault*/ false, in startCameraStreamingOps()
4361 toString16(mClientFeatureId), in startCameraStreamingOps()
4362 toString16("start camera ") + toString16(mCameraIdStr)); in startCameraStreamingOps()
4384 toString16(mClientPackageName), toString16(mClientFeatureId), in noteAppOp()
4385 toString16("start camera ") + toString16(mCameraIdStr)); in noteAppOp()
4409 toString16(mClientPackageName), toString16(mClientFeatureId)); in finishCameraStreamingOps()
4465 mClientUid, toString16(mClientPackageName)); in opChanged()
4487 toString16(mClientPackageName),std::string(),mClientPid,mClientUid); in opChanged()
4584 toString16(kServiceName), emptyUidArray, 0, mObserverToken); in registerWithActivityManager()
4594 if (name != toString16(kActivityServiceName)) { in onServiceRegistration()
4606 sp<IBinder> binder = sm->checkService(toString16(kActivityServiceName)); in registerSelf()
4608 sm->registerForNotifications(toString16(kActivityServiceName), this); in registerSelf()
4727 status_t res = mAm.addUidToObserver(mObserverToken, toString16(kServiceName), uid); in registerMonitorUid()
4748 status_t res = mAm.removeUidFromObserver(mObserverToken, toString16(kServiceName), uid); in unregisterMonitorUid()
4795 if (!active) active = am.isUidActive(uid, toString16(callingPackage)); in isUidActiveLocked()
4902 if (name != toString16(kSensorPrivacyServiceName)) { in onServiceRegistration()
4913 sp<IBinder> binder = sm->checkService(toString16(kSensorPrivacyServiceName)); in registerSelf()
4915 sm->registerForNotifications(toString16(kSensorPrivacyServiceName),this); in registerSelf()
5355 if (checkCallingPermission(toString16(sDumpPermission)) == false) { in dump()
5404 if (args[i] == toString16(TagMonitor::kMonitorOption)) { in dump()
5905 mSensorPrivacyPolicy->isCameraPrivacyEnabled(toString16(pkgName)); in blockPrivacyEnabledClients()
5916 if (!checkCallingPermission(toString16(sManageCameraPermission), nullptr, nullptr)) { in shellCommand()
5922 if (args.size() >= 3 && args[0] == toString16("set-uid-state")) { in shellCommand()
5924 } else if (args.size() >= 2 && args[0] == toString16("reset-uid-state")) { in shellCommand()
5926 } else if (args.size() >= 2 && args[0] == toString16("get-uid-state")) { in shellCommand()
5928 } else if (args.size() >= 2 && args[0] == toString16("set-rotate-and-crop")) { in shellCommand()
5930 } else if (args.size() >= 1 && args[0] == toString16("get-rotate-and-crop")) { in shellCommand()
5932 } else if (args.size() >= 2 && args[0] == toString16("set-autoframing")) { in shellCommand()
5934 } else if (args.size() >= 1 && args[0] == toString16("get-autoframing")) { in shellCommand()
5936 } else if (args.size() >= 2 && args[0] == toString16("set-image-dump-mask")) { in shellCommand()
5938 } else if (args.size() >= 1 && args[0] == toString16("get-image-dump-mask")) { in shellCommand()
5940 } else if (args.size() >= 2 && args[0] == toString16("set-camera-mute")) { in shellCommand()
5942 } else if (args.size() >= 2 && args[0] == toString16("set-stream-use-case-override")) { in shellCommand()
5944 } else if (args.size() >= 1 && args[0] == toString16("clear-stream-use-case-override")) { in shellCommand()
5947 } else if (args.size() >= 1 && args[0] == toString16("set-zoom-override")) { in shellCommand()
5949 } else if (args.size() >= 2 && args[0] == toString16("watch")) { in shellCommand()
5951 } else if (args.size() >= 2 && args[0] == toString16("set-watchdog")) { in shellCommand()
5953 } else if (args.size() == 1 && args[0] == toString16("help")) { in shellCommand()
5965 if (args[2] == toString16("active")) { in handleSetUidState()
5967 } else if ((args[2] != toString16("idle"))) { in handleSetUidState()
5973 if (args.size() >= 5 && args[3] == toString16("--user")) { in handleSetUidState()
5990 if (args.size() >= 4 && args[2] == toString16("--user")) { in handleResetUidState()
6007 if (args.size() >= 4 && args[2] == toString16("--user")) { in handleGetUidState()
6221 if (args.size() >= 3 && args[1] == toString16("start")) { in handleWatchCommand()
6223 } else if (args.size() == 2 && args[1] == toString16("stop")) { in handleWatchCommand()
6225 } else if (args.size() == 2 && args[1] == toString16("dump")) { in handleWatchCommand()
6227 } else if (args.size() >= 2 && args[1] == toString16("live")) { in handleWatchCommand()
6229 } else if (args.size() == 2 && args[1] == toString16("clear")) { in handleWatchCommand()
6250 for (tagsIdx = 2; tagsIdx < args.size() && args[tagsIdx] != toString16("-m"); tagsIdx++); in startWatchingTags()
6260 String16 clients = toString16(kWatchAllClientsFlag); in startWatchingTags()
6261 for (clientsIdx = 2; clientsIdx < args.size() && args[clientsIdx] != toString16("-c"); in startWatchingTags()
6477 for (intervalIdx = 2; intervalIdx < args.size() && toString16("-n") != args[intervalIdx]; in printWatchedTagsUntilInterrupt()