/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | ContactsPermissions.java | 39 boolean ok = false; in hasCallerOrSelfPermission() 42 ok = true; // Called by self; always allow. in hasCallerOrSelfPermission() 44 ok = context.checkCallingOrSelfPermission(permission) in hasCallerOrSelfPermission() 52 + " ok=" + ok); in hasCallerOrSelfPermission() 54 return ok; in hasCallerOrSelfPermission() 58 final boolean ok = hasCallerOrSelfPermission(context, permission); in enforceCallingOrSelfPermission() 59 if (!ok) { in enforceCallingOrSelfPermission() 66 boolean ok = false; in hasPackagePermission() 68 ok = true; // Called by self; always allow. in hasPackagePermission() 70 ok = context.getPackageManager().checkPermission(permission, pkg) in hasPackagePermission() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | OveruseConfigurationXmlHelper.cpp | 115 if (const auto result = readExactlyOneElement(kTagComponentType, rootElement); result.ok()) { in readComponentType() 271 result.ok()) { in readComponentLevelThresholds() 279 if (const auto result = readPerStateBytes(componentLevelThresholdElement); result.ok()) { in readComponentLevelThresholds() 301 if (const auto result = readPerStateBytes(childElement); result.ok()) { in readPerStateThresholds() 319 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readPackageSpecificThresholds() 336 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readAppCategorySpecificThresholds() 393 if (!result.ok()) { in readSystemWideThresholds() 407 result.ok()) { in readIoOveruseConfiguration() 415 result.ok()) { in readIoOveruseConfiguration() 420 if (const auto result = readPackageSpecificThresholds(childElement); result.ok()) { in readIoOveruseConfiguration() [all …]
|
D | WatchdogInternalHandler.cpp | 58 return Status::ok(); in checkSystemUser() 77 !result.ok()) { in checkAndRegisterIoOveruseMonitor() 181 return Status::ok(); in notifySystemStateChange() 195 if (const auto result = mWatchdogPerfService->onBootFinished(); !result.ok()) { in notifySystemStateChange() 199 return Status::ok(); in notifySystemStateChange() 226 return Status::ok(); in handlePowerCycleChange() 238 !result.ok()) { in updateResourceOveruseConfigurations() 241 return Status::ok(); in updateResourceOveruseConfigurations() 253 !result.ok()) { in getResourceOveruseConfigurations() 256 return Status::ok(); in getResourceOveruseConfigurations() [all …]
|
D | ServiceManager.cpp | 49 if (const auto result = startProcessAnrMonitor(looper); !result.ok()) { in startServices() 52 if (const auto result = startPerfService(); !result.ok()) { in startServices() 56 if (const auto result = sWatchdogServiceHelper->init(sWatchdogProcessService); !result.ok()) { in startServices() 60 !result.ok()) { in startServices() 88 if (const auto result = service->start(); !result.ok()) { in startProcessAnrMonitor() 99 !result.ok()) { in startPerfService() 102 if (const auto result = service->start(); !result.ok()) { in startPerfService() 114 if (const auto result = sWatchdogBinderMediator->init(); !result.ok()) { in startBinderMediator()
|
D | IoOveruseConfigs.cpp | 143 !result.ok()) { in isValidIoOveruseConfiguration() 159 if (auto result = containsValidThreshold(threshold); !result.ok()) { in isValidIoOveruseConfiguration() 189 if (!filter.ok()) { in isValidResourceOveruseConfig() 216 !result.ok()) { in isValidResourceOveruseConfig() 233 if (const auto result = isValidResourceOveruseConfig(resourceOveruseConfig); !result.ok()) { in isValidResourceOveruseConfigs() 262 if (auto result = containsValidThresholds(packageThreshold); !result.ok()) { in updatePerPackageThresholds() 306 if (const auto result = this->updateFromXml(filename); !result.ok()) { in __anon129d16f60302() 363 if (auto result = containsValidThresholds(categoryThreshold); !result.ok()) { in updatePerCategoryThresholds() 389 if (auto result = containsValidThreshold(alertThreshold); !result.ok()) { in updateAlertThresholds() 408 if (const auto result = isValidResourceOveruseConfigs(resourceOveruseConfigs); !result.ok()) { in update() [all …]
|
D | WatchdogBinderMediator.cpp | 123 if (const auto result = mAddServiceHandler(kCarWatchdogServerInterface, this); !result.ok()) { in init() 128 !result.ok()) { in init() 144 if (auto result = mWatchdogPerfService->onCustomCollection(fd, args); !result.ok()) { in dump() 165 if (auto result = mIoOveruseMonitor->resetIoOveruseStats(packageNames); !result.ok()) { in dump() 178 if (auto result = mWatchdogProcessService->dump(fd, args); !result.ok()) { in dumpServices() 182 if (auto result = mWatchdogPerfService->onDump(fd); !result.ok()) { in dumpServices() 243 if (const auto result = mIoOveruseMonitor->addIoOveruseListener(listener); !result.ok()) { in addResourceOveruseListener() 248 return Status::ok(); in addResourceOveruseListener() 257 if (const auto result = mIoOveruseMonitor->removeIoOveruseListener(listener); !result.ok()) { in removeResourceOveruseListener() 262 return Status::ok(); in removeResourceOveruseListener() [all …]
|
D | WatchdogPerfService.cpp | 151 if (const auto result = processor->init(); !result.ok()) { in registerDataProcessor() 314 if (!result.ok()) { in onCustomCollection() 324 if (!result.ok()) { in onCustomCollection() 350 !result.ok()) { in onCustomCollection() 383 if (const auto& result = dumpCollectorsStatusLocked(fd); !result.ok()) { in onDump() 401 if (const auto result = processor->onDump(fd); !result.ok()) { in onDump() 488 if (const auto result = dumpCollectorsStatusLocked(fd); !result.ok()) { in endCustomCollection() 500 if (const auto result = processor->onCustomCollectionDump(fd); !result.ok()) { in endCustomCollection() 539 if (result = processCollectionEvent(&mBoottimeCollection); result.ok()) { in handleMessage() 576 if (!result.ok()) { in handleMessage() [all …]
|
D | WatchdogProcessService.cpp | 195 return Status::ok(); in registerMonitor() 206 return Status::ok(); in registerMonitor() 223 return Status::ok(); in unregisterMonitor() 269 return Status::ok(); in tellDumpFinished() 302 return Status::ok(); in notifyUserStateChange() 425 return Status::ok(); in registerClientLocked() 444 return Status::ok(); in registerClientLocked() 465 return Status::ok(); in unregisterClientLocked() 476 return Status::ok(); in tellClientAliveLocked() 633 if (!ret.ok()) { in reportWatchdogAliveToVhal() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PolicyManagerTest.cpp | 166 ASSERT_FALSE(policyManager.getPowerPolicy(kNonExistingPowerPolicyId).ok()); in checkPolicies() 170 ASSERT_TRUE(policyMeta.ok()); in checkPolicies() 174 ASSERT_TRUE(policyMeta.ok()); in checkPolicies() 178 ASSERT_TRUE(policyMeta.ok()); in checkPolicies() 182 ASSERT_TRUE(policyMeta.ok()); in checkPolicies() 189 ASSERT_TRUE(policy.ok()); in checkPowerPolicyGroups() 194 .ok()); in checkPowerPolicyGroups() 204 ASSERT_FALSE(policyManager.getPowerPolicy(kExistingPowerPolicyId).ok()); in checkInvalidPolicies() 205 ASSERT_FALSE(policyManager.getPowerPolicy(kNonExistingPowerPolicyId).ok()); in checkInvalidPolicies() 209 .ok()); in checkInvalidPolicies() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.cpp | 103 return Status::ok(); in checkSystemPermission() 131 if (!ret.ok()) { in onPropertyEvent() 139 if (!ret.ok()) { in onPropertyEvent() 200 if (!ret.ok()) { in startService() 235 return Status::ok(); in getCurrentPowerPolicy() 240 if (!ret.ok()) { in getPowerComponentState() 247 return Status::ok(); in getPowerComponentState() 277 return Status::ok(); in registerPowerPolicyChangeCallback() 301 return Status::ok(); in unregisterPowerPolicyChangeCallback() 316 return Status::ok(); in notifyCarServiceReady() [all …]
|
D | PolicyManager.cpp | 266 if (!ret.ok()) { in readPolicies() 271 if (!ret.ok()) { in readPolicies() 344 if (!policyGroup.ok()) { in readPolicyGroups() 369 if (!systemPolicyOverrides.ok()) { in readSystemPolicyOverrides() 378 if (!ret.ok()) { in readSystemPolicyOverrides() 382 if (!ret.ok()) { in readSystemPolicyOverrides() 505 if (!ret.ok()) { in definePowerPolicy() 509 if (!ret.ok()) { in definePowerPolicy() 565 if (!registeredPolicies.ok()) { in readPowerPolicyFromXml() 575 if (!policyGroups.ok()) { in readPowerPolicyFromXml() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiVendorHal.java | 144 private boolean ok(WifiStatus status) { in ok() method in WifiVendorHal 649 return ok(iWifiChipV15.removeIfaceInstanceFromBridgedApIface( in removeIfaceInstanceFromBridgedApIface() 730 return ok(iWifiChipV15.setCoexUnsafeChannels( in setCoexUnsafeChannels() 769 return ok(status); in registerStaIfaceCallback() 795 return ok(status); in registerChipCallback() 853 if (!ok(status)) return; in getBgScanCapabilities() 1018 ok(iface.stopBackgroundScan(mScan.cmdId)); in startBgScan() 1024 if (!ok(status)) return false; in startBgScan() 1048 ok(iface.stopBackgroundScan(mScan.cmdId)); in stopBgScan() 1070 if (!ok(status)) return; in pauseBgScan() [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.cpp | 77 return Status::ok(); in checkUid() 949 return Status::ok(); in informAllUidData() 963 return Status::ok(); in informOnePackage() 973 return Status::ok(); in informOnePackageRemoved() 979 return Status::ok(); in informAnomalyAlarmFired() 995 return Status::ok(); in informAlarmForSubscriberTriggeringFired() 1004 return Status::ok(); in informPollAlarmFired() 1013 return Status::ok(); in systemRunning() 1023 return Status::ok(); in informDeviceShutdown() 1051 return Status::ok(); in statsCompanionReady() [all …]
|
/packages/modules/DnsResolver/tests/dns_metrics_listener/ |
D | base_metrics_listener.cpp | 28 return ::ndk::ScopedAStatus::ok(); in onDnsEvent() 35 return ::ndk::ScopedAStatus::ok(); in onPrivateDnsValidationEvent() 43 return ::ndk::ScopedAStatus::ok(); in onConnectEvent() 57 return ::ndk::ScopedAStatus::ok(); in onWakeupEvent() 65 return ::ndk::ScopedAStatus::ok(); in onTcpSocketStatsEvent() 72 return ::ndk::ScopedAStatus::ok(); in onNat64PrefixEvent()
|
/packages/modules/Virtualization/microdroid/signature/ |
D | mk_payload.cc | 103 if (auto res = (expr); !res.ok()) return res.error() 212 if (!file_size.ok()) { in MakeSignature() 241 if (!file_size.ok()) { in GenerateFiller() 278 if (auto ret = GenerateFiller(file_path, filler_path); !ret.ok()) { in MakePayload() 295 !ret.ok()) { in MakePayload() 303 if (auto ret = add_partition("microdroid-apk", apk_path); !ret.ok()) { in MakePayload() 321 if (!config.ok()) { in main() 326 if (const auto res = LoadSystemApexes(*config); !res.ok()) { in main() 334 if (const auto res = MakeSignature(*config, signature_file); !res.ok()) { in main() 338 if (const auto res = MakePayload(*config, signature_file, output_file); !res.ok()) { in main()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | IoOveruseMonitorTest.cpp | 176 if (const auto result = mIoOveruseMonitor->init(); !result.ok()) { in init() 279 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 317 .WillOnce(DoAll(SaveArg<0>(&actualOverusingNativeStats), Return(Status::ok()))); in TEST_F() 319 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 369 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 419 .WillOnce(DoAll(SaveArg<0>(&actualOverusingNativeStats), Return(Status::ok()))); in TEST_F() 422 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 496 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 528 .WillOnce(DoAll(SaveArg<0>(&actualIoOveruseStats), Return(Status::ok()))); in TEST_F() 688 ASSERT_FALSE(mIoOveruseMonitor->addIoOveruseListener(mockResourceOveruseListener).ok()); in TEST_F() [all …]
|
D | WatchdogServiceHelperTest.cpp | 123 .WillOnce(Return(Status::ok())); in registerCarWatchdogService() 158 ASSERT_FALSE(result.ok()) << "Watchdog service helper init should fail on error from " in TEST_F() 167 ASSERT_FALSE(result.ok()) in TEST_F() 187 .WillOnce(Return(Status::ok())); in TEST_F() 247 .WillOnce(Return(Status::ok())); in TEST_F() 285 .WillOnce(Return(Status::ok())); in TEST_F() 338 .WillOnce(DoAll(SetArgPointee<2>(expectedPackageInfo), Return(Status::ok()))); in TEST_F() 392 .WillOnce(Return(Status::ok())); in TEST_F() 427 .WillOnce(Return(Status::ok())); in TEST_F()
|
D | ProcStatTest.cpp | 157 EXPECT_FALSE(procStat.collect().ok()) << "No error returned for corrupted file"; in TEST() 180 EXPECT_FALSE(procStat.collect().ok()) << "No error returned due to missing cpu line"; in TEST() 203 EXPECT_FALSE(procStat.collect().ok()) << "No error returned due to missing procs_running line"; in TEST() 226 EXPECT_FALSE(procStat.collect().ok()) << "No error returned due to missing procs_blocked line"; in TEST() 251 EXPECT_FALSE(procStat.collect().ok()) << "No error returned due to unknown procs line"; in TEST()
|
D | WatchdogBinderMediatorTest.cpp | 144 EXPECT_FALSE(mediator->init().ok()) << "No error returned on nullptr watchdog process service"; in TEST_F() 150 EXPECT_FALSE(mediator->init().ok()) << "No error returned on nullptr watchdog perf service"; in TEST_F() 156 EXPECT_FALSE(mediator->init().ok()) << "No error returned on nullptr watchdog service helper"; in TEST_F() 161 EXPECT_FALSE(mediator->init().ok()) << "No error returned on null services"; in TEST_F() 239 .WillOnce(Return(Status::ok())); in TEST_F() 247 .WillOnce(Return(Status::ok())); in TEST_F() 255 .WillOnce(Return(Status::ok())); in TEST_F()
|
/packages/services/Car/cpp/telemetry/cartelemetryd/src/ |
D | CarTelemetryInternalImpl.cpp | 44 if (!result.ok()) { in setListener() 54 return ndk::ScopedAStatus::ok(); in setListener() 65 return ndk::ScopedAStatus::ok(); in setListener() 72 return ndk::ScopedAStatus::ok(); in clearListener() 81 return ndk::ScopedAStatus::ok(); in clearListener()
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriver.cpp | 72 return ndk::ScopedAStatus::ok(); in getVersionString() 78 return ndk::ScopedAStatus::ok(); in getType() 86 return ndk::ScopedAStatus::ok(); in getSupportedExtensions() 96 return ndk::ScopedAStatus::ok(); in getNumberOfCacheFilesNeeded() 214 return ndk::ScopedAStatus::ok(); in allocate() 254 return ndk::ScopedAStatus::ok(); in copyTo() 295 return ndk::ScopedAStatus::ok(); in copyFrom() 406 if (!validationResult.ok()) { in executeSynchronously() 471 return ndk::ScopedAStatus::ok(); in executeSynchronously() 496 if (!validationResult.ok()) { in executeFenced() [all …]
|
D | SampleDriverUtils.cpp | 50 return ndk::ScopedAStatus::ok(); in toAStatus() 57 return ndk::ScopedAStatus::ok(); in toAStatus() 103 return ndk::ScopedAStatus::ok(); in prepareModelBase() 114 return ndk::ScopedAStatus::ok(); in prepareModelBase() 132 return ndk::ScopedAStatus::ok(); in prepareModelBase()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 282 return ndk::ScopedAStatus::ok(); in copyFrom() 306 return ndk::ScopedAStatus::ok(); in copyTo() 458 return ndk::ScopedAStatus::ok(); in allocate() 463 return ndk::ScopedAStatus::ok(); in getCapabilities() 468 return ndk::ScopedAStatus::ok(); in getNumberOfCacheFilesNeeded() 473 return ndk::ScopedAStatus::ok(); in getSupportedExtensions() 498 return ndk::ScopedAStatus::ok(); in getSupportedOperations() 506 return ndk::ScopedAStatus::ok(); in getType() 515 return ndk::ScopedAStatus::ok(); in getVersionString() 576 return ndk::ScopedAStatus::ok(); in prepareModel() [all …]
|
/packages/services/Car/cpp/computepipe/example/ |
D | FaceTracker.cpp | 69 return ndk::ScopedAStatus::ok(); in handleState() 118 return ndk::ScopedAStatus::ok(); in setupConfig() 149 return ndk::ScopedAStatus::ok(); in deliverPacket() 154 return ndk::ScopedAStatus::ok(); in deliverPacket() 163 return ndk::ScopedAStatus::ok(); in deliverPacket()
|
/packages/modules/DnsResolver/ |
D | PrivateDnsConfigurationTest.cpp | 120 return mPdc.getPrivateDns(identity, netId).ok(); in hasPrivateDnsServer() 194 EXPECT_TRUE(mPdc.requestValidation(kNetId, ServerIdentity(server), kMark).ok()); in TEST_F() 339 EXPECT_TRUE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F() 342 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F() 344 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F() 348 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F() 349 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark + 1).ok()); in TEST_F() 350 EXPECT_FALSE(mPdc.requestValidation(kNetId + 1, identity, kMark).ok()); in TEST_F()
|