Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 224) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/android/text/util/
DLinkifyTest.java62 TextView tv; in testNothing() local
64 tv = new TextView(createUsEnglishContext()); in testNothing()
65 tv.setText("Hey, foo@google.com, call 415-555-1212."); in testNothing()
67 assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod); in testNothing()
68 assertTrue(tv.getUrls().length == 0); in testNothing()
73 TextView tv; in testNormal() local
75 tv = new TextView(createUsEnglishContext()); in testNormal()
76 tv.setAutoLinkMask(Linkify.ALL); in testNormal()
77 tv.setText("Hey, foo@google.com, call 415-555-1212."); in testNormal()
79 assertTrue(tv.getMovementMethod() instanceof LinkMovementMethod); in testNormal()
[all …]
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java70 TypedValue tv = a.peekValue( in ScaleAnimation() local
73 if (tv != null) { in ScaleAnimation()
74 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation()
76 mFromX = tv.getFloat(); in ScaleAnimation()
78 mFromXType = tv.type; in ScaleAnimation()
79 mFromXData = tv.data; in ScaleAnimation()
82 tv = a.peekValue( in ScaleAnimation()
85 if (tv != null) { in ScaleAnimation()
86 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation()
88 mToX = tv.getFloat(); in ScaleAnimation()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DActiveSourceHandler.java64 HdmiCecLocalDeviceTv tv = mSource; in process() local
67 tv.startNewDeviceAction(newActive, deviceType); in process()
70 if (!tv.isProhibitMode()) { in process()
71 ActiveSource old = ActiveSource.of(tv.getActiveSource()); in process()
72 tv.updateActiveSource(newActive); in process()
75 tv.setPrevPortId(tv.getActivePortId()); in process()
77 tv.updateActiveInput(newActive.physicalAddress, notifyInputChange); in process()
83 ActiveSource current = tv.getActiveSource(); in process()
88 tv.updateActiveSource(current); in process()
91 tv.startRoutingControl(newActive.physicalAddress, current.physicalAddress, true, in process()
DSystemAudioAutoInitiationAction.java19 import android.hardware.tv.cec.V1_0.SendMessageResult;
53 tv().setSystemAudioMode(false); in sendGiveSystemAudioModeStatus()
83 boolean targetSystemAudioMode = tv().isSystemAudioControlFeatureEnabled(); in handleSystemAudioModeStatusMessage()
87 new SystemAudioActionFromTv(tv(), mAvrAddress, targetSystemAudioMode, null)); in handleSystemAudioModeStatusMessage()
91 tv().setSystemAudioMode(targetSystemAudioMode); in handleSystemAudioModeStatusMessage()
117 addAndStartAction(new SystemAudioActionFromTv(tv(), mAvrAddress, in handleSystemAudioModeStatusTimeout()
118 tv().isSystemAudioControlFeatureEnabled(), null)); in handleSystemAudioModeStatusTimeout()
123 return !(tv().hasAction(SystemAudioActionFromTv.class) in canChangeSystemAudio()
124 || tv().hasAction(SystemAudioActionFromAvr.class)); in canChangeSystemAudio()
DHotplugDetectionAction.java118 if (tv().isSystemAudioActivated()) { in pollDevices()
151 BitSet currentInfos = infoListToBitSet(tv().getDeviceInfoList(false), audioOnly); in checkHotplug()
159 HdmiDeviceInfo avr = tv().getAvrDeviceInfo(); in checkHotplug()
160 if (avr != null && tv().isConnected(avr.getPortId())) { in checkHotplug()
228 tv().removeCecDevice(removedAddress); in removeDevice()
232 HdmiDeviceInfo info = tv().getCecDeviceInfo(address); in mayChangeRoutingPath()
234 tv().handleRemoveActiveRoutingPath(info.getPhysicalAddress()); in mayChangeRoutingPath()
265 tv().setSystemAudioMode(false); in mayDisableSystemAudioAndARC()
266 if (tv().isArcEstablished()) { in mayDisableSystemAudioAndARC()
267 tv().enableAudioReturnChannel(false); in mayDisableSystemAudioAndARC()
DHdmiControlService.java48 import android.hardware.tv.cec.V1_0.OptionKey;
49 import android.hardware.tv.cec.V1_0.SendMessageResult;
51 import android.media.tv.TvInputManager;
52 import android.media.tv.TvInputManager.TvInputCallback;
464 mCecController.setOption(OptionKey.WAKEUP, tv().getAutoWakeup()); in onInitializeCecComplete()
516 tv().setAutoWakeup(enabled); in onChange()
531 tv().setSystemAudioControlFeatureEnabled(enabled); in onChange()
641 tv().setSelectRequestBuffer(mSelectRequestBuffer); in notifyAddressAllocated()
781 return tv() == null ? null : tv().getCecDeviceInfo(logicalAddress); in getDeviceInfo()
977 if (!isTvDeviceEnabled() || !tv().isSystemAudioActivated()) { in setAudioStatus()
[all …]
DRoutingControlAction.java131 HdmiCecLocalDeviceTv tv = tv(); in updateActiveInput() local
132 tv.setPrevPortId(tv.getActivePortId()); in updateActiveInput()
133 tv.updateActiveInput(mCurrentRoutingPath, mNotifyInputChange); in updateActiveInput()
137 return tv().getPowerStatus(); in getTvPowerStatus()
163 HdmiDeviceInfo device = tv().getDeviceInfoByPath(mCurrentRoutingPath); in handleTimerEvent()
DSystemAudioStatusAction.java22 import android.hardware.tv.cec.V1_0.SendMessageResult;
69 tv().setAudioStatus(false, Constants.UNKNOWN_VOLUME); in handleSendGiveAudioStatusFailure()
72 HdmiCecKeycode.getMuteKey(!tv().isSystemAudioActivated())); in handleSendGiveAudioStatusFailure()
97 tv().setAudioStatus(mute, volume); in handleReportAudioStatus()
99 if (!(tv().isSystemAudioActivated() ^ mute)) { in handleReportAudioStatus()
DSelectRequestBuffer.java55 protected HdmiCecLocalDeviceTv tv() { in tv() method in SelectRequestBuffer.SelectRequest
56 return mService.tv(); in tv()
60 if (tv() == null) { in isLocalDeviceReady()
94 tv().deviceSelect(mId, mCallback); in process()
108 tv().doManualPortSwitching(mId, mCallback); in process()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java181 TextView tv = new TextView(mContext); in set() local
182 tv.setText("Effect "+ position); in set()
183 addView(tv, new LinearLayout.LayoutParams( in set()
185 tv = new TextView(mContext); in set()
186 tv.setText(" type: "+ effectUuidToString(mDescriptors[position].type)); in set()
187 addView(tv, new LinearLayout.LayoutParams( in set()
189 tv = new TextView(mContext); in set()
190 tv.setText(" uuid: "+ mDescriptors[position].uuid.toString()); in set()
191 addView(tv, new LinearLayout.LayoutParams( in set()
193 tv = new TextView(mContext); in set()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackAnimationHelper.java150 TaskView tv = taskViews.get(i); in prepareForEnterAnimation() local
151 Task task = tv.getTask(); in prepareForEnterAnimation()
164 tv.setVisibility(View.INVISIBLE); in prepareForEnterAnimation()
167 tv.onPrepareLaunchTargetForEnterAnimation(); in prepareForEnterAnimation()
172 mStackView.updateTaskViewToTransform(tv, mTmpTransform, in prepareForEnterAnimation()
174 tv.setClipViewInStack(false); in prepareForEnterAnimation()
180 mStackView.updateTaskViewToTransform(tv, mTmpTransform, AnimationProps.IMMEDIATE); in prepareForEnterAnimation()
187 mStackView.updateTaskViewToTransform(tv, mTmpTransform, AnimationProps.IMMEDIATE); in prepareForEnterAnimation()
225 final TaskView tv = taskViews.get(i); in startEnterAnimation() local
226 Task task = tv.getTask(); in startEnterAnimation()
[all …]
DTaskStackView.java308 TaskView tv = taskViews.get(i); in TaskStackView()
309 tv.startNoUserInteractionAnimation(); in TaskStackView()
433 TaskView tv = taskViews.get(i); in getFrontMostTaskView() local
434 Task task = tv.getTask(); in getFrontMostTaskView()
438 return tv; in getFrontMostTaskView()
450 TaskView tv = taskViews.get(i); in getChildViewForTask() local
451 if (tv.getTask() == t) { in getChildViewForTask()
452 return tv; in getChildViewForTask()
607 TaskView tv = taskViews.get(i); in bindVisibleTaskViews() local
608 Task task = tv.getTask(); in bindVisibleTaskViews()
[all …]
DTaskStackViewTouchHandler.java199 TaskView tv = taskViews.get(i); in cancelNonDismissTaskAnimations() local
201 if (mSv.isIgnoredTask(tv.getTask())) { in cancelNonDismissTaskAnimations()
205 tv.cancelTransformAnimation(); in cancelNonDismissTaskAnimations()
206 mSv.getStackAlgorithm().addUnfocusedTaskOverride(tv, mTargetStackScroll); in cancelNonDismissTaskAnimations()
441 TaskView tv = findViewAtPoint((int) ev.getX(), (int) ev.getY()); in getChildAtPosition() local
442 if (tv != null && canChildBeDismissed(tv)) { in getChildAtPosition()
443 return tv; in getChildAtPosition()
451 TaskView tv = (TaskView) v; in canChildBeDismissed() local
452 Task task = tv.getTask(); in canChildBeDismissed()
468 TaskView tv = (TaskView) v; in onBeginDrag() local
[all …]
DTaskViewTransform.java68 public void fillIn(TaskView tv) { in fillIn() argument
69 translationZ = tv.getTranslationZ(); in fillIn()
70 scale = tv.getScaleX(); in fillIn()
71 alpha = tv.getAlpha(); in fillIn()
73 dimAlpha = tv.getDimAlpha(); in fillIn()
74 viewOutlineAlpha = tv.getViewBounds().getAlpha(); in fillIn()
75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom()); in fillIn()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DStringPresenter.java29 TextView tv = new TextView(parent.getContext()); in onCreateViewHolder() local
30 tv.setFocusable(true); in onCreateViewHolder()
31 tv.setFocusableInTouchMode(true); in onCreateViewHolder()
32 tv.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 200)); in onCreateViewHolder()
33 tv.setBackgroundColor(Color.CYAN); in onCreateViewHolder()
34 tv.setTextColor(Color.BLACK); in onCreateViewHolder()
35 return new ViewHolder(tv); in onCreateViewHolder()
/frameworks/base/media/java/android/media/tv/
DITvInputManager.aidl17 package android.media.tv;
23 import android.media.tv.DvbDeviceInfo;
24 import android.media.tv.ITvInputClient;
25 import android.media.tv.ITvInputHardware;
26 import android.media.tv.ITvInputHardwareCallback;
27 import android.media.tv.ITvInputManagerCallback;
28 import android.media.tv.TvContentRatingSystemInfo;
29 import android.media.tv.TvInputHardwareInfo;
30 import android.media.tv.TvInputInfo;
31 import android.media.tv.TvStreamConfig;
[all …]
DITvInputService.aidl17 package android.media.tv;
20 import android.media.tv.ITvInputServiceCallback;
21 import android.media.tv.ITvInputSessionCallback;
22 import android.media.tv.TvInputHardwareInfo;
/frameworks/native/cmds/bugreportz/
Dmain.cpp91 struct timeval tv; in main() local
92 tv.tv_sec = 10 * 60; in main()
93 tv.tv_usec = 0; in main()
94 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in main()
/frameworks/support/design/src/android/support/design/widget/
DSnackbar.java209 final TextView tv = contentLayout.getMessageView(); in setText() local
210 tv.setText(message); in setText()
244 final TextView tv = contentLayout.getActionView(); in setAction() local
247 tv.setVisibility(View.GONE); in setAction()
248 tv.setOnClickListener(null); in setAction()
250 tv.setVisibility(View.VISIBLE); in setAction()
251 tv.setText(text); in setAction()
252 tv.setOnClickListener(new View.OnClickListener() { in setAction()
271 final TextView tv = contentLayout.getActionView(); in setActionTextColor() local
272 tv.setTextColor(colors); in setActionTextColor()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/
DTemplateLayoutTest.java55 TextView tv = new TextView(mContext); in testAddView() local
56 tv.setId(R.id.test_view_id); in testAddView()
57 layout.addView(tv); in testAddView()
59 assertSame("The view added should be the same text view", tv, view); in testAddView()
78 TextView tv = new TextView(mContext); in testTemplate() local
79 tv.setId(R.id.test_view_id); in testTemplate()
80 layout.addView(tv); in testTemplate()
85 assertSame("The view added should be the same text view", tv, contentView); in testTemplate()
/frameworks/native/cmds/bugreport/
Dbugreport.cpp58 struct timeval tv; in main() local
59 tv.tv_sec = 3 * 60; in main()
60 tv.tv_usec = 0; in main()
61 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in main()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DStringPresenter.java30 TextView tv = new TextView(context); in onCreateViewHolder() local
31 tv.setFocusable(true); in onCreateViewHolder()
32 tv.setFocusableInTouchMode(true); in onCreateViewHolder()
33 tv.setBackground(ResourcesCompat.getDrawable(context.getResources(), R.drawable.text_bg, in onCreateViewHolder()
35 return new ViewHolder(tv); in onCreateViewHolder()
/frameworks/base/media/mca/filterfw/native/core/
Dtime_util.cpp31 struct timeval tv; in getTimeUs() local
33 gettimeofday(&tv, 0); in getTimeUs()
35 basesec = tv.tv_sec; in getTimeUs()
37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + in getTimeUs()
38 (uint64_t)tv.tv_usec; in getTimeUs()
/frameworks/base/media/mca/filterpacks/native/base/
Dtime_util.cpp31 struct timeval tv; in getTimeUs() local
33 gettimeofday(&tv, 0); in getTimeUs()
35 basesec = tv.tv_sec; in getTimeUs()
37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + in getTimeUs()
38 (uint64_t)tv.tv_usec; in getTimeUs()
/frameworks/base/core/jni/
Dandroid_os_SystemClock.cpp76 struct timeval tv; in android_os_SystemClock_currentTimeMicro() local
78 gettimeofday(&tv, NULL); in android_os_SystemClock_currentTimeMicro()
79 return tv.tv_sec * 1000000LL + tv.tv_usec; in android_os_SystemClock_currentTimeMicro()

123456789