/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyConstantsTest.java | 38 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString(""); in testDefaultValues() local 40 assertEquals(1 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testDefaultValues() 41 assertEquals(24 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testDefaultValues() 42 assertEquals(2.0, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testDefaultValues() 46 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testCustomValues() local 52 assertEquals(10, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testCustomValues() 53 assertEquals(15, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testCustomValues() 54 assertEquals(1.25, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testCustomValues() 58 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testMinMax() local 64 assertEquals(5, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testMinMax() [all …]
|
/frameworks/rs/ |
D | rsProgramVertex.cpp | 43 if (mHal.state.constants[0] == nullptr) { in setup() 49 rsc, mHal.state.constants[0])); in setup() 58 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setup() 72 if (mHal.state.constants[0] == nullptr) { in setProjectionMatrix() 78 rsc, mHal.state.constants[0])); in setProjectionMatrix() 81 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setProjectionMatrix() 90 if (mHal.state.constants[0] == nullptr) { in setModelviewMatrix() 96 rsc, mHal.state.constants[0])); in setModelviewMatrix() 99 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setModelviewMatrix() 108 if (mHal.state.constants[0] == nullptr) { in setTextureMatrix() [all …]
|
D | rsProgram.cpp | 53 mHal.state.constants = new Allocation*[mHal.state.constantsCount]; in Program() 101 delete[] mHal.state.constants; in ~Program() 134 mHal.state.constants = nullptr; in initMemberVars() 174 mHal.state.constants[slot] = alloc; in bindAllocation() 212 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) { in rsi_ProgramBindConstants() argument 214 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot); in rsi_ProgramBindConstants()
|
D | rsProgramFragment.cpp | 48 if (mHal.state.constants[0] == nullptr) { in setConstantColor() 57 void *p = rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0]); in setConstantColor() 60 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setConstantColor()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassificationConstantsTest.java | 40 final TextClassificationConstants constants = new TextClassificationConstants(); in testLoadFromDeviceConfig_booleanValue() local 45 .that(constants.isLocalTextClassifierEnabled()).isFalse(); in testLoadFromDeviceConfig_booleanValue() 59 final TextClassificationConstants constants = new TextClassificationConstants(); in testLoadFromDeviceConfig_IntValue() local 64 .that(constants.getGenerateLinksMaxTextLength()).isEqualTo(8); in testLoadFromDeviceConfig_IntValue() 78 final TextClassificationConstants constants = new TextClassificationConstants(); in testLoadFromDeviceConfig_StringValue() local 85 .that(constants.getTextClassifierServicePackageOverride()).isEqualTo( in testLoadFromDeviceConfig_StringValue()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 67 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument 68 schedule(userId, ctx, 0, constants); in schedule() 72 BackupManagerConstants constants) { in schedule() argument 83 synchronized (constants) { in schedule() 84 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule() 85 fuzz = constants.getKeyValueBackupFuzzMilliseconds(); in schedule() 86 networkType = constants.getKeyValueBackupRequiredNetworkType(); in schedule() 87 needsCharging = constants.getKeyValueBackupRequireCharging(); in schedule()
|
D | FullBackupJob.java | 48 BackupManagerConstants constants) { in schedule() argument 51 synchronized (constants) { in schedule() 53 .setRequiredNetworkType(constants.getFullBackupRequiredNetworkType()) in schedule() 54 .setRequiresCharging(constants.getFullBackupRequireCharging()); in schedule()
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStatsWriter.java | 64 public HealthStatsWriter(HealthKeys.Constants constants) { in HealthStatsWriter() argument 65 mConstants = constants; in HealthStatsWriter() 68 final int timerCount = constants.getSize(HealthKeys.TYPE_TIMER); in HealthStatsWriter() 74 final int measurementCount = constants.getSize(HealthKeys.TYPE_MEASUREMENT); in HealthStatsWriter() 79 final int statsCount = constants.getSize(HealthKeys.TYPE_STATS); in HealthStatsWriter() 83 final int timersCount = constants.getSize(HealthKeys.TYPE_TIMERS); in HealthStatsWriter() 87 final int measurementsCount = constants.getSize(HealthKeys.TYPE_MEASUREMENTS); in HealthStatsWriter()
|
/frameworks/base/services/core/java/com/android/server/appbinding/finders/ |
D | CarrierMessagingClientServiceFinder.java | 57 protected boolean isEnabled(AppBindingConstants constants) { in isEnabled() argument 58 return constants.SMS_SERVICE_ENABLED in isEnabled() 117 public int getBindFlags(AppBindingConstants constants) { in getBindFlags() argument 118 return constants.SMS_APP_BIND_FLAGS; in getBindFlags()
|
D | AppServiceFinder.java | 73 protected boolean isEnabled(AppBindingConstants constants) { in isEnabled() argument 99 AppBindingConstants constants) { in findService() argument 105 if (!isEnabled(constants)) { in findService() 192 public abstract int getBindFlags(AppBindingConstants constants); in getBindFlags() argument
|
/frameworks/base/services/incremental/ |
D | IncrementalService.cpp | 70 static const Constants& constants() { in constants() function 113 return std::string(constants().mountKeyPrefix) += res; in toMountKey() 167 const auto prefixSize = constants().mountpointMdPrefix.size(); in makeBindMdName() 170 name = constants().mountpointMdPrefix; in makeBindMdName() 178 const auto markerPath = path::c_str(path::join(root, constants().readLogsDisabledMarkerName)); in checkReadLogsDisabledMarker() 197 incrementalService.mVold->unmountIncFs(path::join(root, constants().mount)); in ~IncFsMount() 206 base::StringAppendF(&name, "%.*s_%d_%d", int(constants().storagePrefix.size()), in makeStorage() 207 constants().storagePrefix.data(), id, no); in makeStorage() 208 auto fullName = path::join(root, constants().mount, name); in makeStorage() 266 rmDirContent(path::join(root, constants().backing).c_str()); in cleanupFilesystem() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | NonAbUpdateInstaller.java | 36 DevicePolicyConstants constants) { in NonAbUpdateInstaller() argument 37 super(context, updateFileDescriptor, callback, injector, constants); in NonAbUpdateInstaller()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 321 NetworkCapabilities capabilities, Constants constants) { in isInsane() argument 364 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed() argument 368 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed() 375 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied() argument 391 NetworkCapabilities capabilities, Constants constants) { in isRelaxedSatisfied() argument 403 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied() 411 NetworkCapabilities capabilities, Constants constants) { in isSatisfied() argument 416 if (isInsane(jobStatus, network, capabilities, constants)) return false; in isSatisfied() 419 if (isCongestionDelayed(jobStatus, network, capabilities, constants)) return false; in isSatisfied() 422 if (isStrictSatisfied(jobStatus, network, capabilities, constants)) return true; in isSatisfied() [all …]
|
/frameworks/base/core/java/android/net/metrics/ |
D | ValidationProbeEvent.java | 161 return Decoder.constants.get(probeType & 0xff, "PROBE_???"); in getProbeName() 165 return Decoder.constants.get(probeType & 0xff00, "UNKNOWN"); in getValidationStage() 185 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in ValidationProbeEvent.Decoder
|
D | IpReachabilityEvent.java | 95 String eventName = Decoder.constants.get(hi); in toString() 107 static final SparseArray<String> constants = field in IpReachabilityEvent.Decoder
|
D | DhcpErrorEvent.java | 115 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString() 119 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in DhcpErrorEvent.Decoder
|
D | IpManagerEvent.java | 104 Decoder.constants.get(eventType), durationMs); in toString() 116 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in IpManagerEvent.Decoder
|
D | NetworkEvent.java | 124 Decoder.constants.get(eventType), durationMs); in toString() 136 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in NetworkEvent.Decoder
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PendingIntentControllerTest.java | 85 ActivityManagerConstants constants = mock(ActivityManagerConstants.class); in setUp() local 86 constants.PENDINGINTENT_WARNING_THRESHOLD = 2000; in setUp() 88 mUserController, constants); in setUp()
|
/frameworks/base/core/proto/android/os/ |
D | enums.proto | 23 // These constants are defined in hardware/interfaces/health/1.0/types.hal 38 // Note that NONE is not in BatteryManager.java's constants. 48 // These constants are defined in hardware/interfaces/health/1.0/types.hal 59 // These constants are defined in hardware/interfaces/thermal/1.0/types.hal 82 // These constants are defined in hardware/interfaces/thermal/2.0/types.hal. 104 // These constants are defined in hardware/interfaces/thermal/2.0/types.hal.
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | EnumerateClient.java | 33 public EnumerateClient(Context context, Constants constants, in EnumerateClient() argument 37 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in EnumerateClient()
|
D | RemovalClient.java | 36 public RemovalClient(Context context, Constants constants, in RemovalClient() argument 40 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in RemovalClient()
|
D | EnrollClient.java | 43 public EnrollClient(Context context, Constants constants, in EnrollClient() argument 48 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in EnrollClient()
|
/frameworks/rs/script_api/ |
D | GenerateDocumentation.cpp | 289 static void writeSummaryTables(GeneratedFile* file, const map<string, Constant*>& constants, in writeSummaryTables() argument 294 for (auto e : constants) { in writeSummaryTables() 642 const auto& constants = specFile.getDocumentedConstants(); in writeDetailedDocumentationFile() local 646 writeSummaryTables(&file, constants, types, functions, NON_DEPRECATED_ONLY, false); in writeDetailedDocumentationFile() 647 writeSummaryTables(&file, constants, types, functions, DEPRECATED_ONLY, false); in writeDetailedDocumentationFile() 650 if (!constants.empty()) { in writeDetailedDocumentationFile() 652 for (auto i : constants) { in writeDetailedDocumentationFile()
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingService.java | 433 AppServiceConnection(Context context, int userId, AppBindingConstants constants, in AppServiceConnection() argument 437 constants.SERVICE_RECONNECT_BACKOFF_SEC, in AppServiceConnection() 438 constants.SERVICE_RECONNECT_BACKOFF_INCREASE, in AppServiceConnection() 439 constants.SERVICE_RECONNECT_MAX_BACKOFF_SEC, in AppServiceConnection() 440 constants.SERVICE_STABLE_CONNECTION_THRESHOLD_SEC); in AppServiceConnection() 442 mConstants = constants; in AppServiceConnection()
|