/frameworks/base/services/core/java/com/android/server/compat/ |
D | CompatConfig.java | 63 private final LongSparseArray<CompatChange> mChanges = new LongSparseArray<>(); field in CompatConfig 79 synchronized (mChanges) { in addChange() 80 mChanges.put(change.getId(), change); in addChange() 95 synchronized (mChanges) { in getDisabledChanges() 96 for (int i = 0; i < mChanges.size(); ++i) { in getDisabledChanges() 97 CompatChange c = mChanges.valueAt(i); in getDisabledChanges() 115 synchronized (mChanges) { in lookupChangeId() 116 for (int i = 0; i < mChanges.size(); ++i) { in lookupChangeId() 117 if (TextUtils.equals(mChanges.valueAt(i).getName(), name)) { in lookupChangeId() 118 return mChanges.keyAt(i); in lookupChangeId() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigBuilder.java | 28 private ArrayList<CompatChange> mChanges; field in CompatConfigBuilder 33 mChanges = new ArrayList<>(); in CompatConfigBuilder() 43 mChanges.add(new CompatChange(id, "", sdk, false, false, "")); in addTargetSdkChangeWithId() 48 mChanges.add(new CompatChange(id, "", sdk, true, false, "")); in addTargetSdkDisabledChangeWithId() 53 mChanges.add(new CompatChange(id, name, sdk, false, false, "")); in addTargetSdkChangeWithIdAndName() 59 mChanges.add(new CompatChange(id, "", sdk, false, false, description)); in addTargetSdkChangeWithIdAndDescription() 64 mChanges.add(new CompatChange(id, "", -1, false, false, "")); in addEnabledChangeWithId() 69 mChanges.add(new CompatChange(id, name, -1, false, false, "")); in addEnabledChangeWithIdAndName() 73 mChanges.add(new CompatChange(id, "", -1, false, false, description)); in addEnabledChangeWithIdAndDescription() 78 mChanges.add(new CompatChange(id, "", -1, true, false, "")); in addDisabledChangeWithId() [all …]
|
/frameworks/base/core/java/android/hardware/lights/ |
D | LightsRequest.java | 59 private final SparseArray<LightState> mChanges = new SparseArray<>(); field in LightsRequest.Builder 70 mChanges.put(light.getId(), state); in setLight() 81 mChanges.put(light.getId(), null); in clearLight() 92 return new LightsRequest(mChanges); in build()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 193 mChanges.emplace_back(false, timestamp, appName, uid, versionCode, newVersionString, in updateApp() 198 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in updateApp() 216 if (mChanges.size() > 0) { in ensureBytesUsedBelowLimit() 218 mChanges.pop_front(); in ensureBytesUsedBelowLimit() 247 mChanges.emplace_back(true, timestamp, app, uid, 0, "", prevVersion, prevVersionString); in removeApp() 251 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in removeApp() 292 mChanges.clear(); in clearOutput() 375 for (const ChangeRecord& record : mChanges) { in appendUidMap() 427 for (auto it_changes = mChanges.begin(); it_changes != mChanges.end();) { in appendUidMap() 430 it_changes = mChanges.erase(it_changes); in appendUidMap() [all …]
|
D | UidMap.h | 187 std::list<ChangeRecord> mChanges; variable
|
/frameworks/base/cmds/statsd/tests/ |
D | UidMap_test.cpp | 333 EXPECT_EQ(1U, m.mChanges.size()); in TEST() 339 EXPECT_EQ(1U, m.mChanges.size()); in TEST() 343 EXPECT_EQ(2U, m.mChanges.size()); in TEST() 351 EXPECT_EQ(2U, m.mChanges.size()); in TEST() 359 EXPECT_EQ(0U, m.mChanges.size()); in TEST() 417 EXPECT_EQ(1U, m.mChanges.size()); in TEST() 423 EXPECT_EQ(1U, m.mChanges.size()); in TEST()
|