Home
last modified time | relevance | path

Searched refs:mMode (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
DPorterDuffColorFilter.java25 private PorterDuff.Mode mMode; field in PorterDuffColorFilter
39 mMode = mode; in PorterDuffColorFilter()
83 return mMode; in getMode()
97 mMode = mode; in setMode()
103 native_instance = native_CreatePorterDuffFilter(mColor, mMode.nativeInt); in update()
115 if (mColor != other.mColor || mMode != other.mMode) { in equals()
123 return 31 * mMode.hashCode() + mColor; in hashCode()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java32 int mMode; field in SubActivityScreen
40 mMode = getIntent().getIntExtra("mode", mMode); in onCreate()
47 if (mMode == PENDING_RESULT_MODE) { in onCreate()
57 } else if (mMode < CHILD_OFFSET) { in onCreate()
60 intent.putExtra("mode", CHILD_OFFSET+mMode); in onCreate()
79 if (mMode >= CHILD_OFFSET) { in onResume()
90 switch (mMode-CHILD_OFFSET) { in onResume()
118 switch (mMode) { in onActivityResult()
163 if (mMode == FINISH_SUB_MODE) { in handleBeforeStopping()
/frameworks/opt/net/voip/src/jni/rtp/
DAmrCodec.cpp62 int mMode; member in __anona83fb3cf0111::AmrCodec
78 mMode = 0; in set()
83 if (mode > mMode) { in set()
84 mMode = mode; in set()
90 mMode = 7; in set()
105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode, in encode()
108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) { in encode()
114 bytes[1] = (mMode << 3) | 0x04; in encode()
119 bytes[1] = 0xC0 | (mMode << 1) | 1; in encode()
126 length = (10 + gFrameBits[mMode] + 7) >> 3; in encode()
[all …]
DAudioGroup.cpp116 int mMode; member in __anon5fc701100111::AudioStream
172 mMode = mode; in set()
222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode); in set()
236 if (mMode == SEND_ONLY) { in mix()
281 if (mMode != RECEIVE_ONLY && mDtmfEvent != -1) { in encode()
305 if (mMode != RECEIVE_ONLY) { in encode()
336 if (mMode != RECEIVE_ONLY) { in encode()
363 if (mMode == SEND_ONLY) { in decode()
499 int mMode; member in __anon5fc701100111::AudioGroup
548 mMode = ON_HOLD; in AudioGroup()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBarTransitions.java58 private int mMode; field in BarTransitions
70 return mMode; in getMode()
82 if (mMode == mode) return; in transitionTo()
83 int oldMode = mMode; in transitionTo()
84 mMode = mode; in transitionTo()
87 onTransition(oldMode, mMode, animate); in transitionTo()
129 private int mMode = -1; field in BarTransitions.BarBackgroundDrawable
174 if (mMode == newMode) return; in applyModeBackground()
175 mMode = newMode; in applyModeBackground()
202 if (mMode == MODE_WARNING) { in draw()
[all …]
/frameworks/native/services/surfaceflinger/Effects/
DDaltonizer.cpp23 mType(deuteranomaly), mMode(simulation), mDirty(true) { in Daltonizer()
37 if (mode != mMode) { in setMode()
39 mMode = mode; in setMode()
155 if (mMode == Daltonizer::correction) in update()
161 if (mMode == Daltonizer::correction) in update()
167 if (mMode == Daltonizer::correction) in update()
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp136 mMode = INVALID; in start()
138 mMode = H264; in start()
140 mMode = H263; in start()
142 mMode = AMR_NB; in start()
144 mMode = AMR_WB; in start()
197 if (mMode == H264) { in onMessageReceived()
282 if (mMode == H264) { in onRead()
285 } else if (mMode == H263) { in onRead()
287 } else if (mMode == AMR_NB || mMode == AMR_WB) { in onRead()
458 if (mMode == H264 || mMode == H263) { in dumpSessionDesc()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPorterDuffXfermode_Delegate.java48 private final Mode mMode; field in PorterDuffXfermode_Delegate
53 return mMode; in getMode()
58 return PorterDuffUtility.getComposite(mMode, alpha); in getComposite()
84 mMode = getPorterDuffMode(mode); in PorterDuffXfermode_Delegate()
DPorterDuffColorFilter_Delegate.java52 private final Mode mMode; field in PorterDuffColorFilter_Delegate
64 return "PorterDuff Color Filter is not supported for mode: " + mMode.name() + "."; in getSupportMessage()
70 g.setComposite(getComposite(mMode, 0xFF)); in applyFilter()
88 mMode = getCompatibleMode(getPorterDuffMode(mode)); in PorterDuffColorFilter_Delegate()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp45 mMode(MODE_NARROW), in SoftAMR()
55 mMode = MODE_WIDE; in SoftAMR()
65 if (mMode == MODE_NARROW) { in ~SoftAMR()
93 mMode == MODE_NARROW in initPorts()
109 (mMode == MODE_NARROW ? kNumSamplesPerFrameNB : kNumSamplesPerFrameWB) in initPorts()
127 if (mMode == MODE_NARROW) { in initDecoder()
165 mMode == MODE_NARROW in internalGetParameter()
188 (mMode == MODE_NARROW) ? kSampleRateNB : kSampleRateWB; in internalGetParameter()
210 if (mMode == MODE_NARROW) { in internalSetParameter()
314 if (mMode == MODE_NARROW) { in onQueueFilled()
[all …]
/frameworks/base/core/java/android/widget/
DDialerFilter.java118 switch (mMode) { in onKeyDown()
152 switch (mMode) { in onKeyDown()
208 return mMode; in getMode()
249 int oldMode = mMode; in setMode()
250 mMode = newMode; in setMode()
313 if (mMode != DIGITS_ONLY) { in getFilterText()
321 switch (mMode) { in append()
372 if (mMode != DIGITS_ONLY) { in setFilterWatcher()
381 if (mMode != DIGITS_ONLY) { in removeFilterWatcher()
415 int mMode; field in DialerFilter
/frameworks/base/media/java/android/media/
DAudioGainConfig.java30 private final int mMode; field in AudioGainConfig
39 mMode = mode; in AudioGainConfig()
58 return mMode; in mode()
DAudioGain.java61 private final int mMode; field in AudioGain
76 mMode = mode; in AudioGain()
90 return mMode; in mode()
DClosedCaptionRenderer.java155 private int mMode = MODE_PAINT_ON; field in CCParser
192 switch (mMode) { in getMemory()
203 Log.w(TAG, "unrecoginized mode: " + mMode); in getMemory()
220 if (mMode == MODE_PAINT_ON || mMode == MODE_ROLL_UP) { in handleDisplayableChars()
240 if (mMode == MODE_ROLL_UP) { in handlePACCode()
266 mMode = MODE_POP_ON; in handleCtrlCode()
279 if (mMode != MODE_ROLL_UP) { in handleCtrlCode()
284 mMode = MODE_ROLL_UP; in handleCtrlCode()
291 mMode = MODE_PAINT_ON; in handleCtrlCode()
294 mMode = MODE_TEXT; in handleCtrlCode()
[all …]
/frameworks/av/media/libstagefright/wifi-display/
DMediaSender.cpp43 mMode(MODE_UNDEFINED), in MediaSender()
59 if (mMode != MODE_UNDEFINED) { in setHDCP()
69 if (mMode != MODE_UNDEFINED) { in addTrack()
97 if (mMode != MODE_UNDEFINED) { in initAsync()
153 mMode = MODE_TRANSPORT_STREAM; in initAsync()
159 if (mMode == MODE_TRANSPORT_STREAM) { in initAsync()
195 if (mMode == MODE_UNDEFINED) { in initAsync()
199 mMode = MODE_ELEMENTARY_STREAMS; in initAsync()
206 if (mMode == MODE_UNDEFINED) { in queueAccessUnit()
214 if (mMode == MODE_TRANSPORT_STREAM) { in queueAccessUnit()
/frameworks/opt/net/voip/src/java/android/net/rtp/
DRtpStream.java55 private int mMode = MODE_NORMAL; field in RtpStream
120 return mMode; in getMode()
139 mMode = mode; in setMode()
DAudioGroup.java95 private int mMode = MODE_ON_HOLD; field in AudioGroup
122 return mMode; in getMode()
139 mMode = mode; in setMode()
/frameworks/base/libs/hwui/
DVertexBuffer.h42 , mMode(kStandard) in VertexBuffer()
138 Mode getMode() const { return mMode; } in getMode()
141 void setMode(Mode mode) { mMode = mode; } in setMode()
169 Mode mMode; variable
DDeferredLayerUpdater.cpp40 mMode = mLayer->getMode(); in DeferredLayerUpdater()
51 OpenGLRenderer::getAlphaAndModeDirect(paint, &mAlpha, &mMode); in setPaint()
60 mLayer->setAlpha(mAlpha, mMode); in apply()
/frameworks/base/core/java/android/bluetooth/le/
DAdvertiseSettings.java159 private int mMode = ADVERTISE_MODE_LOW_POWER; field in AdvertiseSettings.Builder
178 mMode = advertiseMode; in setAdvertiseMode()
231 return new AdvertiseSettings(mMode, mTxPowerLevel, mConnectable, mTimeoutMillis); in build()
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
DOverlayBaseTest.java16 protected int mMode; // will be set by subclasses field in OverlayBaseTest
47 switch (mMode) { in getExpected()
61 switch (mMode) { in getExpected()
75 switch (mMode) { in getExpected()
89 switch (mMode) { in getExpected()
177 switch (mMode) { in testDrawable()
186 fail("Unknown mode " + mMode); in testDrawable()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp40 mMode(codingType == OMX_VIDEO_CodingVP8 ? MODE_VP8 : MODE_VP9), in SoftVPX()
44 const size_t kMinCompressionRatio = mMode == MODE_VP8 ? 2 : 4; in SoftVPX()
45 const char *mime = mMode == MODE_VP8 ? MEDIA_MIMETYPE_VIDEO_VP8 : MEDIA_MIMETYPE_VIDEO_VP9; in SoftVPX()
80 mMode == MODE_VP8 ? &vpx_codec_vp8_dx_algo : &vpx_codec_vp9_dx_algo, in initDecoder()
/frameworks/base/test-runner/src/android/test/
DTestRunner.java54 private int mMode = REGRESSION; field in TestRunner
267 mMode = mode; in setPerformanceMode()
302 if (mMode == PERFORMANCE) { in run()
304 } else if (mMode == PROFILING) { in run()
348 if (mMode == PERFORMANCE) { in run()
366 } else if (mMode == PROFILING) { in run()
409 if (mMode == REGRESSION && perftestcase.isPerformanceOnly()) return; in runInPerformanceMode()
508 if (mMode == PERFORMANCE) { in runSingleJunitTest()
522 } else if (mMode == PROFILING) { in runSingleJunitTest()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java949 private int mMode = MODE_NOTHING; field in EditStyledText.EditorManager
980 mEST.notifyStateChanged(mMode, mState); in onAction()
993 mMode = MODE_SELECT; in onStartSelect()
1001 mEST.notifyStateChanged(mMode, mState); in onStartSelect()
1011 mEST.notifyStateChanged(mMode, mState); in onCursorMoved()
1021 mEST.notifyStateChanged(mMode, mState); in onStartSelectAll()
1037 mEST.notifyStateChanged(mMode, mState); in onFixSelectedItem()
1042 mEST.notifyStateChanged(mMode, mState); in onInsertImage()
1047 mEST.notifyStateChanged(mMode, mState); in onInsertImage()
1073 mEST.notifyStateChanged(mMode, mState); in insertHorizontalLine()
[all …]
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java102 if (color != mColor || mode != mMode || onMS != mOnMS || offMS != mOffMS) { in setLightLocked()
106 mMode = mode; in setLightLocked()
120 private int mMode; field in LightsService.LightImpl

123