Home
last modified time | relevance | path

Searched refs:active (Results 1 – 25 of 208) sorted by relevance

123456789

/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dpixel_format_f32.rsh10 // 2. When processing each layer, we use its field (active) to mark
12 // active or not active but "close enough" to an active pixel, a matte value is
24 // active, matte, and dilated_depth are reset. However, the field actual_depth
33 // active = 1: the pixel is on the target layer;
34 // active = 0: otherwise.
35 uchar active;
42 // For active pixels, dilated_depth is the same as actual depth;
44 // closest active pixels;
Dlayered_filter_fast_f32.rscript118 sharp->active = 0;
125 // Marks active pixels that are on the target layer.
126 // Initializes the matte of active pixels to be the dilation_radius+1, which is
128 // Initializes dilated_depth of active pixels and pixels that are close to
129 // active pixels to be actual depths.
141 // Marks this pixel as active.
142 sharp->active = 1;
147 // between active and inactive pixels
175 // Marks pixels near the boundary of active pixels to compute matte later.
213 if (sharp->active == 0 && sharp->dilated_depth) {
[all …]
Dlayered_filter_fast_d1new.rscript107 // Marks active pixels that are on the target layer.
108 // Initializes the matte of active pixels to be the dilation_radius+1, which is
110 // Initializes dilated_depth of active pixels and pixels that are close to
111 // active pixels to be actual depths.
122 // Marks this pixel as active.
130 // between active and inactive pixels
153 // Marks pixels near the boundary of active pixels to compute matte later.
184 // Marks this pixel as active.
189 // between active and inactive pixels
213 // Marks pixels near the boundary of active pixels to compute matte later.
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioIODescriptorInterface.h41 IoDescriptor& desc, Filter filter, bool& active, const DeviceVector& devices) in findPreferredDevice() argument
46 active = activeClients.size() > 0; in findPreferredDevice()
47 if (active && activeClients.size() == activeClientsWithRoute.size()) { in findPreferredDevice()
60 bool active; in findPreferredDevice() local
61 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
62 if (active && curDevice == nullptr) { in findPreferredDevice()
DClientDescriptor.h67 virtual void setActive(bool active) { mActive = active; } in setActive() argument
68 bool active() const { return mActive; } in active() function
112 void setActive(bool active) override in setActive() argument
114 int delta = active ? 1 : -1; in setActive()
245 LOG_ALWAYS_FATAL_IF(it->second->active(), in removeClient()
/frameworks/av/media/libaudioclient/tests/
Drecord_test_output_v1.0_ref_walleye.txt4 status(0), active(0), session Id(65)
13 status(0), active(0), session Id(73)
22 status(0), active(0), session Id(81)
31 status(0), active(0), session Id(89)
40 status(0), active(0), session Id(97)
49 status(0), active(0), session Id(105)
58 status(0), active(0), session Id(113)
67 status(0), active(0), session Id(121)
76 status(0), active(0), session Id(129)
85 status(0), active(0), session Id(137)
[all …]
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp50 ASSERT_FALSE(concurrentTimes->active.empty()); in TEST()
55 ASSERT_EQ(concurrentTimes->active.size(), policyEntries); in TEST()
68 ASSERT_LE(concurrentTime.active[i], policySum); in TestConcurrentTimesConsistent()
69 policySum -= concurrentTime.active[i]; in TestConcurrentTimesConsistent()
72 for (size_t i = 0; i < concurrentTime.active.size(); ++i) { in TestConcurrentTimesConsistent()
76 auto activeSum = concurrentTime.active[concurrentTime.active.size() - 1 - i]; in TestConcurrentTimesConsistent()
102 uint64_t activeSum = std::accumulate(concurrentTime.active.begin(), concurrentTime.active.end(), in TestUidTimesConsistent()
220 ASSERT_EQ(kv.second.active.size(), firstEntry.active.size()); in TEST()
259 ASSERT_NO_FATAL_FAILURE(TestCheckUpdate({(*map1)[uid].active},{newTimes.active})); in TEST()
274 for (uint32_t i = 0; i < times1.active.size(); ++i) { in TEST()
[all …]
Dcputimeinstate.cpp343 uint64_t activeSum = std::accumulate(ct.active.begin(), ct.active.end(), (uint64_t)0); in verifyConcurrentTimes()
359 concurrent_time_t ret = {.active = std::vector<uint64_t>(gNCpus, 0)}; in getUidConcurrentTimes()
371 auto activeBegin = ret.active.begin() + offset; in getUidConcurrentTimes()
372 auto activeEnd = nextOffset < gNCpus ? activeBegin + CPUS_PER_ENTRY : ret.active.end(); in getUidConcurrentTimes()
375 std::transform(activeBegin, activeEnd, std::begin(vals[cpu].active), activeBegin, in getUidConcurrentTimes()
420 concurrent_time_t retFormat = {.active = std::vector<uint64_t>(gNCpus, 0)}; in getUidsUpdatedConcurrentTimes()
439 activeBegin = ret[key.uid].active.begin(); in getUidsUpdatedConcurrentTimes()
440 activeEnd = nextOffset < gNCpus ? activeBegin + CPUS_PER_ENTRY : ret[key.uid].active.end(); in getUidsUpdatedConcurrentTimes()
443 std::transform(activeBegin, activeEnd, std::begin(vals[cpu].active), activeBegin, in getUidsUpdatedConcurrentTimes()
492 concurrent_val_t czeros = {.policy = {0}, .active = {0}}; in clearUidTimes()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java250 Object[] active = mActiveBroadcast; in beginBroadcast() local
251 if (active == null || active.length < N) { in beginBroadcast()
252 mActiveBroadcast = active = new Object[N]; in beginBroadcast()
255 active[i] = mCallbacks.valueAt(i); in beginBroadcast()
310 Object[] active = mActiveBroadcast; in finishBroadcast() local
311 if (active != null) { in finishBroadcast()
314 active[i] = null; in finishBroadcast()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java173 private boolean updateActives(int code, int uid, String packageName, boolean active) { in updateActives() argument
176 if (item == null && active) { in updateActives()
181 } else if (item != null && !active) { in updateActives()
198 boolean active; in removeNoted()
201 active = getAppOpItem(mActiveItems, code, uid, packageName) != null; in removeNoted()
203 if (!active) { in removeNoted()
269 public void onOpActiveChanged(int code, int uid, String packageName, boolean active) { in onOpActiveChanged() argument
272 Boolean.toString(active))); in onOpActiveChanged()
274 boolean activeChanged = updateActives(code, uid, packageName, active); in onOpActiveChanged()
285 mBGHandler.post(() -> notifySuscribers(code, uid, packageName, active)); in onOpActiveChanged()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_sonification_respectful.pfw6 # - If not in call AND a music stream is active remotely: Strategy sonification (that
8 # - if not in call and no music stream active remotely and music stream active): strategy
13 # Case of stream active handled programmatically
77 # SonificationRespectful follows media if music stream is active
104 # SonificationRespectful follows media if music stream is active
131 # SonificationRespectful follows media if music stream is active
249 # SonificationRespectful follows media if music stream is active
288 # SonificationRespectful follows media if music stream is active
327 # SonificationRespectful follows media if music stream is active
364 # SonificationRespectful follows media if music stream is active
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp130 if (client->active() && in isSourceActive()
156 if (activeOnly && !client->active()) { in getHighestPriorityClient()
194 if (client->active()) { in setPatchHandle()
286 if (client->active()) { in close()
316 void AudioInputDescriptor::setClientActive(const sp<RecordClientDescriptor>& client, bool active) in setClientActive() argument
320 if (active == client->active()) { in setClientActive()
326 if (!active && mGlobalActiveCount < 1) { in setClientActive()
331 const int delta = active ? 1 : -1; in setClientActive()
349 client->setActive(active); in setClientActive()
353 int event = active ? RECORD_CONFIG_EVENT_START : RECORD_CONFIG_EVENT_STOP; in setClientActive()
[all …]
DAudioOutputDescriptor.cpp88 void AudioOutputDescriptor::setClientActive(const sp<TrackClientDescriptor>& client, bool active) in setClientActive() argument
91 if (active == (clientIter != end(mActiveClients))) { in setClientActive()
93 client->toShortString().c_str(), active, in setClientActive()
97 if (active) { in setClientActive()
102 const int delta = active ? 1 : -1; in setClientActive()
109 if (!active && mGlobalActiveCount < 1) { in setClientActive()
123 client->setActive(active); in setClientActive()
219 if ((!activeOnly || client->active()) in clientsList()
360 void SwAudioOutputDescriptor::setClientActive(const sp<TrackClientDescriptor>& client, bool active) in setClientActive() argument
364 mOutput1->setClientActive(client, active); in setClientActive()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DOptimizingLineBreaker.java63 ArrayList<Integer> active = new ArrayList<Integer>(); in computeBreaks() local
64 active.add(0); in computeBreaks()
72 for (ListIterator<Integer> it = active.listIterator(); it.hasNext(); in computeBreaks()
103 active.clear(); in computeBreaks()
107 active.add(i); in computeBreaks()
110 if (active.isEmpty()) { in computeBreaks()
118 active.add(breakIndex); in computeBreaks()
/frameworks/base/services/core/jni/BroadcastRadio/
DTunerCallback.cpp114 virtual Return<void> trafficAnnouncement(bool active);
115 virtual Return<void> emergencyAnnouncement(bool active);
245 Return<void> NativeCallback::trafficAnnouncement(bool active) { in trafficAnnouncement() argument
246 ALOGV("%s(%d)", __func__, active); in trafficAnnouncement()
248 mCallbackThread.enqueue([this, active](JNIEnv *env) { in trafficAnnouncement()
249 env->CallVoidMethod(mJCallback, gjni.TunerCallback.onTrafficAnnouncement, active); in trafficAnnouncement()
255 Return<void> NativeCallback::emergencyAnnouncement(bool active) { in emergencyAnnouncement() argument
256 ALOGV("%s(%d)", __func__, active); in emergencyAnnouncement()
258 mCallbackThread.enqueue([this, active](JNIEnv *env) { in emergencyAnnouncement()
259 env->CallVoidMethod(mJCallback, gjni.TunerCallback.onEmergencyAnnouncement, active); in emergencyAnnouncement()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceSettings.java164 private void setActive(boolean active) { in setActive() argument
165 if (mActive == active) { in setActive()
169 Slog.d(TAG, "Active: " + active); in setActive()
171 mActive = active; in setActive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputQuickSettingsDisabler.java62 public void setRemoteInputActive(boolean active){ in setRemoteInputActive() argument
63 if(mRemoteInputActive != active){ in setRemoteInputActive()
64 mRemoteInputActive = active; in setRemoteInputActive()
/frameworks/base/core/proto/android/server/
Denums.proto24 // Device idle mode - not active.
26 // Device idle mode - active in lightweight mode.
28 // Device idle mode - active in full mode.
/frameworks/native/services/surfaceflinger/
DBufferStateLayer.cpp200 if (mCurrentState.active.transform.tx() == x && mCurrentState.active.transform.ty() == y && in setFrame()
201 mCurrentState.active.w == w && mCurrentState.active.h == h) { in setFrame()
208 mCurrentState.active.transform.set(x, y); in setFrame()
209 mCurrentState.active.w = w; in setFrame()
210 mCurrentState.active.h = h; in setFrame()
530 (s.active.w != bufferWidth || s.active.h != bufferHeight)) { in updateTexImage()
533 mName.string(), bufferWidth, bufferHeight, s.active.w, s.active.h); in updateTexImage()
/frameworks/base/core/java/android/accessibilityservice/
DFingerprintGestureController.java128 public void onGestureDetectionActiveChanged(boolean active) { in onGestureDetectionActiveChanged() argument
138 handler.post(() -> callback.onGestureDetectionAvailabilityChanged(active)); in onGestureDetectionActiveChanged()
140 callback.onGestureDetectionAvailabilityChanged(active); in onGestureDetectionActiveChanged()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTunerCallback.java127 public void onTrafficAnnouncement(boolean active) { in onTrafficAnnouncement() argument
128 dispatch(() -> mClientCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
132 public void onEmergencyAnnouncement(boolean active) { in onEmergencyAnnouncement() argument
133 dispatch(() -> mClientCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
/frameworks/base/core/java/android/hardware/radio/
DTunerCallbackAdapter.java169 public void onTrafficAnnouncement(boolean active) { in onTrafficAnnouncement() argument
170 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
174 public void onEmergencyAnnouncement(boolean active) { in onEmergencyAnnouncement() argument
175 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
DITunerCallback.aidl30 void onTrafficAnnouncement(boolean active); in onTrafficAnnouncement() argument
31 void onEmergencyAnnouncement(boolean active); in onEmergencyAnnouncement() argument
/frameworks/native/opengl/libagl/
Dtexture.cpp110 c->rasterizer.procs.activeTexture(c, c->textures.active); in ogles_validate_texture()
165 c->rasterizer.procs.activeTexture(c, c->textures.active); in ogles_unlock_textures()
304 const int active = c->textures.active; in getAndBindActiveTextureObject() local
305 const GLuint name = c->textures.tmu[active].name; in getAndBindActiveTextureObject()
308 texture_unit_t& u(c->textures.tmu[active]); in getAndBindActiveTextureObject()
331 invalidate_texture(c, active); in getAndBindActiveTextureObject()
373 const int active = c->textures.active; in createTextureSurface() local
374 EGLTextureObject* tex = c->textures.tmu[active].texture; in createTextureSurface()
609 const int active = c->textures.active; in generateMipmap() local
610 EGLTextureObject* tex = c->textures.tmu[active].texture; in generateMipmap()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeManager.java193 mInterfaceDestroyedListener.active = false; in releaseAware()
214 public boolean active = true; field in WifiAwareNativeManager.InterfaceDestroyedListener
220 + active); in onDestroyed()
222 if (active && mWifiNanIface != null) { in onDestroyed()

123456789