auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onCreate ( @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; preCallCoordinator = new com.android.dialer.precall.impl.PreCallCoordinatorImpl ( this ) ; preCallCoordinator.onCreate ( getIntent ( ) , savedInstanceState ) ; getWindow ( ) . addFlags ( LayoutParams.FLAG_SHOW_WHEN_LOCKED ) ; }

Target:
public void onCreate ( @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; preCallCoordinator = new com.android.dialer.precall.impl.PreCallCoordinatorImpl ( this ) ; preCallCoordinator.onCreate ( getIntent ( ) , savedInstanceState ) ; if ( getSystemService ( android.app.KeyguardManager.class ) . isKeyguardLocked ( ) ) { getWindow ( ) . addFlags ( LayoutParams.FLAG_SHOW_WHEN_LOCKED ) ; } }
Source:
public java.lang.Object getTag ( int key ) { android.util.SparseArray < java.lang.Object > tags = null ; synchronized ( android.view.View.sTagsLock ) { if ( ( android.view.View.sTags ) != null ) { tags = android.view.View.sTags.get ( this ) ; } } if ( tags != null ) return tags.get ( key ) ; return null ; }

Target:
private void setKeyedTag ( int key , java.lang.Object tag ) { if ( ( mKeyedTags ) == null ) { mKeyedTags = new android.util.SparseArray < java.lang.Object > ( ) ; } mKeyedTags.put ( key , tag ) ; }
Source:
public void onFailure ( int reason , java.lang.String description ) { android.util.Log.e ( com.android.server.wifi.WifiConnectivityManager.TAG , ( ( ( ( "PnoScanListener onFailure:" + " reason: " ) + reason ) + " description: " ) + description ) ) ; if ( ( ( mScanRestartCount ) ++ ) < ( com.android.server.wifi.WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED ) ) { scheduleDelayedConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.RESTART_SCAN_DELAY_MS ) ; } else { mScanRestartCount = 0 ; android.util.Log.e ( com.android.server.wifi.WifiConnectivityManager.TAG , ( ( "Failed to successfully start PNO scan for " + ( com.android.server.wifi.WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED ) ) + " times" ) ) ; } }

Target:
public void onFailure ( int reason , java.lang.String description ) { localLog ( ( ( ( ( "PnoScanListener onFailure:" + " reason: " ) + reason ) + " description: " ) + description ) ) ; if ( ( ( mScanRestartCount ) ++ ) < ( com.android.server.wifi.WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED ) ) { scheduleDelayedConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.RESTART_SCAN_DELAY_MS ) ; } else { mScanRestartCount = 0 ; localLog ( ( ( "Failed to successfully start PNO scan for " + ( com.android.server.wifi.WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED ) ) + " times" ) ) ; } }
Source:
public java.lang.String describeFirstNonRequestableCapability ( ) { if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED ) ) return "NET_CAPABILITY_VALIDATED" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL ) ) return "NET_CAPABILITY_CAPTIVE_PORTAL" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND ) ) return "NET_CAPABILITY_FOREGROUND" ; if ( ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) != 0 ) { return "unknown non-requestable capabilities " + ( java.lang.Long.toHexString ( mNetworkCapabilities ) ) ; } if ( ( ( mLinkUpBandwidthKbps ) != 0 ) || ( ( mLinkDownBandwidthKbps ) != 0 ) ) return "link bandwidth" ; if ( hasSignalStrength ( ) ) return "signalStrength" ; return null ; }

Target:
public boolean equalsUids ( android.net.NetworkCapabilities nc ) { java.util.Set < android.net.UidRange > comparedUids = nc.mUids ; if ( null == comparedUids ) return null == ( mUids ) ; if ( null == ( mUids ) ) return false ; final java.util.Set < android.net.UidRange > uids = new android.util.ArraySet ( mUids ) ; for ( android.net.UidRange range : comparedUids ) { if ( ! ( uids.contains ( range ) ) ) { return false ; } uids.remove ( range ) ; } return uids.isEmpty ( ) ; }
Source:
public void onViewHolderExpanded ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder expandedViewHolder ) { currentlyExpandedViewHolderId = expandedViewHolder.getViewHolderId ( ) ; for ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder viewHolder : newVoicemailViewHolderSet ) { if ( ! ( viewHolder.equals ( expandedViewHolder ) ) ) { viewHolder.collapseViewHolder ( ) ; } } }

Target:
public void pauseViewHolder ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder expandedViewHolder ) { com.android.dialer.common.Assert.isNotNull ( getCurrentlyExpandedViewHolder ( ) , "cannot have pressed pause if the viewholder wasn't expanded" ) ; com.android.dialer.common.Assert.checkArgument ( getCurrentlyExpandedViewHolder ( ) . getViewHolderVoicemailUri ( ) . equals ( expandedViewHolder.getViewHolderVoicemailUri ( ) ) , ( "view holder whose pause button was pressed has to have been the expanded " + "viewholder being tracked by the adapter." ) ) ; mediaPlayer.pauseMediaPlayer ( expandedViewHolder.getViewHolderVoicemailUri ( ) ) ; expandedViewHolder.setPausedStateOfMediaPlayerView ( expandedViewHolder.getViewHolderVoicemailUri ( ) , mediaPlayer ) ; }
Source:
final void backgroundResourcesReleased ( android.os.IBinder token ) { mHandler.removeMessages ( com.android.server.am.ActivityStack.RELEASE_BACKGROUND_RESOURCES_TIMEOUT_MSG ) ; final com.android.server.am.ActivityRecord r = getVisibleBehindActivity ( ) ; if ( r != null ) { mStackSupervisor.mStoppingActivities.add ( r ) ; setVisibleBehindActivity ( null ) ; } mStackSupervisor.resumeTopActivitiesLocked ( ) ; }

Target:
final void backgroundResourcesReleased ( ) { mHandler.removeMessages ( com.android.server.am.ActivityStack.RELEASE_BACKGROUND_RESOURCES_TIMEOUT_MSG ) ; final com.android.server.am.ActivityRecord r = getVisibleBehindActivity ( ) ; if ( r != null ) { mStackSupervisor.mStoppingActivities.add ( r ) ; setVisibleBehindActivity ( null ) ; mStackSupervisor.scheduleIdleTimeoutLocked ( null ) ; } mStackSupervisor.resumeTopActivitiesLocked ( ) ; }
Source:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , "build/res/all/debug/drawable" ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; }

Target:
public void DISABLEDtestOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , "build/res/all/debug/drawable" ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; }
Source:
public android.icu.impl.SimplePatternFormatter getByVariant ( java.lang.String variant ) { java.lang.Integer idxObj = android.icu.text.QuantityFormatter.INDEX_MAP.get ( variant ) ; android.icu.impl.SimplePatternFormatter template = templates [ ( idxObj == null ? 0 : idxObj.intValue ( ) ) ] ; return template == null ? templates [ 0 ] : template ; }

Target:
public android.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = android.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; android.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }
Source:
public void libToExe ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception { java.util.List < java.lang.String > args = new java.util.ArrayList < java.lang.String > ( ) ; libToCommon ( args , getClasspathAsString ( ) , in ) ; if ( zipFile ) { args.add ( "--output-dex-zip" ) ; } else { args.add ( "--output-dex" ) ; } args.add ( out.getAbsolutePath ( ) ) ; run ( args ) ; }

Target:
public void libToExe ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception { java.util.List < java.lang.String > commandLine = new java.util.ArrayList < java.lang.String > ( ) ; libToCommon ( commandLine , getClasspathAsString ( ) , in ) ; if ( zipFile ) { commandLine.add ( "--output-dex-zip" ) ; } else { commandLine.add ( "--output-dex" ) ; } commandLine.add ( out.getAbsolutePath ( ) ) ; run ( commandLine ) ; }
Source:
public void setComment ( java.lang.String comment ) { if ( ( comment == null ) || ( ( comment.length ( ) ) <= 65535 ) ) { this . comment = comment ; } else { throw new java.lang.IllegalArgumentException ( ) ; } }

Target:
public void setComment ( java.lang.String comment ) { if ( ( comment != null ) && ( ( comment.length ( ) ) > 65535 ) ) { throw new java.lang.IllegalArgumentException ( ( "Comment too long: " + ( comment.length ( ) ) ) ) ; } this . comment = comment ; }
Source:
public void test1_findFirst1 ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 100 ; i ++ ) { assertEquals ( com.android.dx.util._tests.BitsTest.label ( i ) , ( - 1 ) , com.android.dx.util.Bits.findFirst ( bits , i ) ) ; } }

Target:
public void test1_findFirst1 ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 100 ; i ++ ) { assertEquals ( com.android.dx.util.BitsTest.label ( i ) , ( - 1 ) , com.android.dx.util.Bits.findFirst ( bits , i ) ) ; } }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { mStartId = startId ; if ( ( mAdapter ) == null ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "Stopping BluetoothPbapService: " + "device does not have BT or device is not ready" ) ) ; closeService ( ) ; } else { if ( intent != null ) { parseIntent ( intent ) ; } } return START_NOT_STICKY ; }

Target:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "stop()" ) ; if ( ! ( mIsRegistered ) ) { android.util.Log.i ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { mIsRegistered = false ; unregisterReceiver ( mPbapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Unable to unregister pbap receiver" , e ) ; } setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; closeService ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } return true ; }
Source:
public void enter ( ) { log ( ( "Enter Pending: " + ( getCurrentMessage ( ) . what ) ) ) ; if ( ( ( mTargetDevice ) != null ) && ( ( mIncomingDevice ) != null ) ) { loge ( ( ( ( ( ( "ERROR: enter() inconsistent state in Pending: current = " + ( mCurrentDevice ) ) + " target = " ) + ( mTargetDevice ) ) + " incoming = " ) + ( mIncomingDevice ) ) ) ; } }

Target:
public void enter ( ) { if ( com.android.bluetooth.a2dp.A2dpStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( "Enter Pending: " + ( getCurrentMessage ( ) . what ) ) ) ; } if ( ( ( mTargetDevice ) != null ) && ( ( mIncomingDevice ) != null ) ) { android.util.Log.e ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( ( ( "ERROR: enter() inconsistent state in Pending: current = " + ( mCurrentDevice ) ) + " target = " ) + ( mTargetDevice ) ) + " incoming = " ) + ( mIncomingDevice ) ) ) ; } }
Source:
public void TestRTCharMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( params.inclusion ) >= 9 ) { loopCount = 2000 ; } android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getCharacterInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "char" , seed , loopCount ) ; }

Target:
public void TestRTLineMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) >= 9 ) { loopCount = 2000 ; } logln ( "Line Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBILineMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBILineMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getLineInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "line" , seed , loopCount ) ; }
Source:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , mIsPhoneInEcmState ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "sendEmergencyCallbackModeChange" ) ; }

Target:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , isInEcm ( ) ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "sendEmergencyCallbackModeChange" ) ; }
Source:
private static void testUnload ( ) throws java.lang.Exception { Main.CHAUnloaderRetType result = Main.doUnloadLoader ( ) ; java.lang.ref.WeakReference < java.lang.ClassLoader > loader = result.cl ; long methodPtr = result.methodPtr ; java.lang.System.out.println ( loader.get ( ) ) ; boolean ret = Main.tryReuseArenaOfMethod ( methodPtr , 10 ) ; java.lang.System.out.println ( ret ) ; Main.ensureJitCompiled ( Main.class , "targetMethodForJit" ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
private static void testUnload ( ) throws java.lang.Exception { Main.CHAUnloaderRetType result = Main.doUnloadLoader ( ) ; java.lang.ref.WeakReference < java.lang.ClassLoader > loader = result.cl ; long methodPtr = result.methodPtr ; if ( ( loader.get ( ) ) != null ) { throw new java.lang.Error ( "Expected class loader to be unloaded" ) ; } Main.reuseArenaOfMethod ( methodPtr ) ; Main.ensureJitCompiled ( Main.class , "targetMethodForJit" ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
public boolean equals ( java.lang.Object thatObject ) { if ( ( this ) == thatObject ) { return true ; } else if ( ( thatObject == null ) || ( ( getClass ( ) ) != ( thatObject.getClass ( ) ) ) ) { return false ; } com.android.server.wifi.IMSIParameter that = ( ( com.android.server.wifi.IMSIParameter ) ( thatObject ) ) ; return ( ( mPrefix ) == ( that.mPrefix ) ) && ( mImsi.equals ( that.mImsi ) ) ; }

Target:
public boolean equals ( java.lang.Object thatObject ) { if ( ( this ) == thatObject ) { return true ; } if ( ! ( thatObject instanceof com.android.server.wifi.IMSIParameter ) ) { return false ; } com.android.server.wifi.IMSIParameter that = ( ( com.android.server.wifi.IMSIParameter ) ( thatObject ) ) ; return ( ( mPrefix ) == ( that.mPrefix ) ) && ( android.text.TextUtils.equals ( mImsi , that.mImsi ) ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { super . visitMethodInsn ( opcode , owner , name , desc ) ; if ( ( ( owner.equals ( "android/content/res/Resources" ) ) && ( name.equals ( "getIdentifier" ) ) ) && ( desc.equals ( "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I" ) ) ) { mFoundGetIdentifier = true ; } if ( ( owner.equals ( "android/webkit/WebView" ) ) && ( name.startsWith ( "load" ) ) ) { mFoundWebContent = true ; } }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; if ( ( ( owner.equals ( "android/content/res/Resources" ) ) && ( name.equals ( "getIdentifier" ) ) ) && ( desc.equals ( "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I" ) ) ) { mFoundGetIdentifier = true ; } if ( ( owner.equals ( "android/webkit/WebView" ) ) && ( name.startsWith ( "load" ) ) ) { mFoundWebContent = true ; } }
Source:
public void testConstructor_WithMethodName ( ) throws java.lang.Exception { java.lang.String methodName = "testMethodName" ; vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( methodName ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + ( "Warning: Arguments are invalid for Caliper: " + "Extra stuff, did not expect non-option arguments: [" ) ) + methodName ) + "]\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#" ) + methodName ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }

Target:
public void testConstructor_Main ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.Main.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }
Source:
public void testConfigurationStarted ( java.lang.String configurationName ) { myConfiguration = configurationName ; com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.GoogleCloudTestingUtils.TEST_CONFIGURATION_STARTED ) ; builder.addAttribute ( "name" , configurationName ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }

Target:
public void testConfigurationStarted ( java.lang.String configurationName ) { myConfiguration = configurationName ; com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.CloudTestingUtils.TEST_CONFIGURATION_STARTED ) ; builder.addAttribute ( "name" , configurationName ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }
Source:
private static java.lang.String getImsServiceName ( int phoneId ) { return com.android.ims.ImsManager.IMS_SERVICE ; }

Target:
private android.telephony.ims.ImsServiceProxyCompat getServiceProxyCompat ( ) { android.os.IBinder binder = android.os.ServiceManager.checkService ( com.android.ims.ImsManager.IMS_SERVICE ) ; if ( binder != null ) { try { binder.linkToDeath ( mDeathRecipient , 0 ) ; } catch ( android.os.RemoteException e ) { } } return new android.telephony.ims.ImsServiceProxyCompat ( mPhoneId , binder ) ; }
Source:
private com.android.server.wifi.ScanDetailCache getOrCreateScanDetailCacheForNetwork ( android.net.wifi.WifiConfiguration config ) { if ( config == null ) return null ; com.android.server.wifi.ScanDetailCache cache = getScanDetailCacheForNetwork ( config.networkId ) ; if ( ( cache == null ) && ( ( config.networkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) { cache = new com.android.server.wifi.ScanDetailCache ( config , com.android.server.wifi.WifiConfigManager.SCAN_CACHE_ENTRIES_MAX_SIZE , com.android.server.wifi.WifiConfigManager.SCAN_CACHE_ENTRIES_TRIM_SIZE ) ; mScanDetailCaches.put ( config.networkId , cache ) ; } return cache ; }

Target:
public com.android.server.wifi.ScanDetailCache getScanDetailCacheForNetwork ( int networkId ) { return mScanDetailCaches.get ( networkId ) ; }
Source:
public boolean enable ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT is already enabled..!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enable ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT already enabled!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public void sendScreenViewForCurrentPosition ( ) { if ( ! ( isResumed ( ) ) ) { return ; } com.android.dialer.logging.ScreenEvent.Type screenType ; switch ( getCurrentTabIndex ( ) ) { case com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_SPEED_DIAL : screenType = ScreenEvent.Type.SPEED_DIAL ; break ; case com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_HISTORY : screenType = ScreenEvent.Type.CALL_LOG ; break ; case com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_ALL_CONTACTS : screenType = ScreenEvent.Type.ALL_CONTACTS ; break ; case com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_VOICEMAIL : screenType = ScreenEvent.Type.VOICEMAIL_LOG ; break ; default : return ; } com.android.dialer.logging.Logger.get ( getActivity ( ) ) . logScreenView ( screenType , getActivity ( ) ) ; }

Target:
public void sendScreenViewForCurrentPosition ( ) { if ( ! ( isResumed ( ) ) ) { return ; } com.android.dialer.logging.ScreenEvent.Type screenType ; switch ( getCurrentTabIndex ( ) ) { case DialtactsPagerAdapter.TAB_INDEX_SPEED_DIAL : screenType = ScreenEvent.Type.SPEED_DIAL ; break ; case DialtactsPagerAdapter.TAB_INDEX_HISTORY : screenType = ScreenEvent.Type.CALL_LOG ; break ; case DialtactsPagerAdapter.TAB_INDEX_ALL_CONTACTS : screenType = ScreenEvent.Type.ALL_CONTACTS ; break ; case DialtactsPagerAdapter.TAB_INDEX_VOICEMAIL : screenType = ScreenEvent.Type.VOICEMAIL_LOG ; break ; default : return ; } com.android.dialer.logging.Logger.get ( getActivity ( ) ) . logScreenView ( screenType , getActivity ( ) ) ; }
Source:
public void testGetInputState ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } assertEquals ( mManager.getInputState ( mStubId ) , TvInputManager.INPUT_STATE_CONNECTED ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } mManager = ( ( android.media.tv.TvInputManager ) ( getActivity ( ) . getSystemService ( Context.TV_INPUT_SERVICE ) ) ) ; mStubId = android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) . getId ( ) ; }
Source:
public void from ( android.net.wifi.ScanResult.InformationElement ie ) { if ( ( ie.id ) != ( android.net.wifi.ScanResult.InformationElement.EID_VHT_OPERATION ) ) { throw new java.lang.IllegalArgumentException ( ( "Element id is not VHT_OPERATION, : " + ( ie.id ) ) ) ; } channelMode = ( ie.bytes [ 0 ] ) & ( com.android.server.wifi.anqp.Constants.BYTE_MASK ) ; centerFreqIndex1 = ( ie.bytes [ 1 ] ) & ( com.android.server.wifi.anqp.Constants.BYTE_MASK ) ; centerFreqIndex2 = ( ie.bytes [ 2 ] ) & ( com.android.server.wifi.anqp.Constants.BYTE_MASK ) ; }

Target:
public void from ( android.net.wifi.ScanResult.InformationElement ie ) { if ( ( ie.id ) != ( android.net.wifi.ScanResult.InformationElement.EID_VHT_OPERATION ) ) { throw new java.lang.IllegalArgumentException ( ( "Element id is not VHT_OPERATION, : " + ( ie.id ) ) ) ; } channelMode = ( ie.bytes [ 0 ] ) & ( com.android.server.wifi.hotspot2.anqp.Constants.BYTE_MASK ) ; centerFreqIndex1 = ( ie.bytes [ 1 ] ) & ( com.android.server.wifi.hotspot2.anqp.Constants.BYTE_MASK ) ; centerFreqIndex2 = ( ie.bytes [ 2 ] ) & ( com.android.server.wifi.hotspot2.anqp.Constants.BYTE_MASK ) ; }
Source:
static void normalize ( java.lang.StringBuilder number ) { java.lang.String normalizedNumber = com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( number.toString ( ) ) ; number.replace ( 0 , number.length ( ) , normalizedNumber ) ; }

Target:
static java.lang.StringBuilder normalize ( java.lang.StringBuilder number ) { java.util.regex.Matcher m = com.google.i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN.matcher ( number ) ; if ( m.matches ( ) ) { number.replace ( 0 , number.length ( ) , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeHelper ( number , com.google.i18n.phonenumbers.PhoneNumberUtil.ALPHA_PHONE_MAPPINGS , true ) ) ; } else { number.replace ( 0 , number.length ( ) , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly ( number ) ) ; } return number ; }
Source:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.setEncapType ( android.net.IpSecTransform.ENCAP_ESPINUDP ) ; mConfig.setEncapSocketResourceId ( localSocket.getResourceId ( ) ) ; mConfig.setEncapRemotePort ( remotePort ) ; return this ; }

Target:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.setEncapType ( android.net.IpSecTransform.ENCAP_ESPINUDP ) ; if ( ( localSocket.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid UdpEncapsulationSocket" ) ; } mConfig.setEncapSocketResourceId ( localSocket.getResourceId ( ) ) ; mConfig.setEncapRemotePort ( remotePort ) ; return this ; }
Source:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityWcdma ci = new android.telephony.CellIdentityWcdma ( com.android.internal.telephony.CellIdentityWcdmaTest.LAC , com.android.internal.telephony.CellIdentityWcdmaTest.CID , com.android.internal.telephony.CellIdentityWcdmaTest.PSC , com.android.internal.telephony.CellIdentityWcdmaTest.UARFCN , com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }

Target:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityWcdma ci = new android.telephony.CellIdentityWcdma ( com.android.internal.telephony.CellIdentityWcdmaTest.LAC , com.android.internal.telephony.CellIdentityWcdmaTest.CID , com.android.internal.telephony.CellIdentityWcdmaTest.PSC , com.android.internal.telephony.CellIdentityWcdmaTest.UARFCN , com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , ci.getMccString ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncString ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }
Source:
public static int frequency ( java.util.Iterator < ? > iterator , @ javax.annotation.Nullable java.lang.Object element ) { int result = 0 ; if ( element == null ) { while ( iterator.hasNext ( ) ) { if ( ( iterator.next ( ) ) == null ) { result ++ ; } } } else { while ( iterator.hasNext ( ) ) { if ( element.equals ( iterator.next ( ) ) ) { result ++ ; } } } return result ; }

Target:
public static int frequency ( java.util.Iterator < ? > iterator , @ javax.annotation.Nullable java.lang.Object element ) { return com.google.common.collect.Iterators.size ( com.google.common.collect.Iterators.filter ( iterator , com.google.common.base.Predicates.equalTo ( element ) ) ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeParcelable ( ipAddress , flags ) ; android.net.NetworkUtils.parcelInetAddress ( dest , gateway , flags ) ; dest.writeInt ( dnsServers.size ( ) ) ; for ( java.net.InetAddress dnsServer : dnsServers ) { android.net.NetworkUtils.parcelInetAddress ( dest , dnsServer , flags ) ; } }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeParcelable ( ipAddress , flags ) ; android.net.NetworkUtils.parcelInetAddress ( dest , gateway , flags ) ; dest.writeInt ( dnsServers.size ( ) ) ; for ( java.net.InetAddress dnsServer : dnsServers ) { android.net.NetworkUtils.parcelInetAddress ( dest , dnsServer , flags ) ; } dest.writeString ( domains ) ; }
Source:
private void populateDefaultJsonFields ( org.json.JSONObject jsonObject , java.lang.String testCaseDataDir ) throws java.io.IOException , org.json.JSONException { com.android.tradefed.log.LogUtil.CLog.i ( "Populating default fields to json object from %s" , com.android.tradefed.testtype.VtsMultiDeviceTest.DEFAULT_TESTCASE_CONFIG_PATH ) ; java.lang.String content = com.android.tradefed.util.FileUtil.readStringFromFile ( new java.io.File ( mTestCaseDataDir , com.android.tradefed.testtype.VtsMultiDeviceTest.DEFAULT_TESTCASE_CONFIG_PATH ) ) ; org.json.JSONObject defaultJsonObject = new org.json.JSONObject ( content ) ; com.android.tradefed.util.JsonUtil.deepMergeJsonObjects ( jsonObject , defaultJsonObject ) ; }

Target:
private void populateDefaultJsonFields ( org.json.JSONObject jsonObject , java.lang.String testCaseDataDir ) throws java.io.IOException , org.json.JSONException { com.android.tradefed.log.LogUtil.CLog.d ( "Populating default fields to json object from %s" , com.android.tradefed.testtype.VtsMultiDeviceTest.DEFAULT_TESTCASE_CONFIG_PATH ) ; java.lang.String content = com.android.tradefed.util.FileUtil.readStringFromFile ( new java.io.File ( mTestCaseDataDir , com.android.tradefed.testtype.VtsMultiDeviceTest.DEFAULT_TESTCASE_CONFIG_PATH ) ) ; org.json.JSONObject defaultJsonObject = new org.json.JSONObject ( content ) ; com.android.tradefed.util.JsonUtil.deepMergeJsonObjects ( jsonObject , defaultJsonObject ) ; }
Source:
public void onCallRemoved ( android.telecom.Call call ) { com.googlecode.android_scripting.Log.d ( ( "onCallRemoved: " + ( call.toString ( ) ) ) ) ; java.lang.String id = com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.getCallId ( call ) ; com.googlecode.android_scripting.Log.d ( ( "Removing " + id ) ) ; com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.mCallContainerMap.remove ( id ) ; if ( ( com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.mCallContainerMap.size ( ) ) == 0 ) { com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.mService = null ; } }

Target:
public void onCallRemoved ( android.telecom.Call call ) { com.googlecode.android_scripting.Log.d ( ( "onCallRemoved: " + ( call.toString ( ) ) ) ) ; java.lang.String id = com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.getCallId ( call ) ; com.googlecode.android_scripting.Log.d ( ( "Removing " + id ) ) ; com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.mCallContainerMap.remove ( id ) ; com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.CallListener.onCallRemoved ( id , call ) ; if ( ( com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.mCallContainerMap.size ( ) ) == 0 ) { com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.sService = null ; } }
Source:
public void testOutgoingCallSelectPhoneAccountVideo ( ) throws java.lang.Exception { startOutgoingPhoneCallPendingCreateConnection ( "650-555-1212" , null , mConnectionServiceFixtureA , java.lang.Process.myUserHandle ( ) , VideoProfile.STATE_BIDIRECTIONAL ) ; android.telecom.com.android.server.telecom.Call call = mTelecomSystem.getCallsManager ( ) . getCalls ( ) . iterator ( ) . next ( ) ; assert call.isVideoCallingSupported ( ) ; assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; call.setTargetPhoneAccount ( mPhoneAccountA1.getAccountHandle ( ) ) ; assert call.isVideoCallingSupported ( ) ; assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; }

Target:
public void testOutgoingCallSelectPhoneAccountNoVideo ( ) throws java.lang.Exception { startOutgoingPhoneCallPendingCreateConnection ( "650-555-1212" , null , mConnectionServiceFixtureA , java.lang.Process.myUserHandle ( ) , VideoProfile.STATE_BIDIRECTIONAL ) ; android.telecom.com.android.server.telecom.Call call = mTelecomSystem.getCallsManager ( ) . getCalls ( ) . iterator ( ) . next ( ) ; assert call.isVideoCallingSupported ( ) ; org.junit.Assert.assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; call.setTargetPhoneAccount ( mPhoneAccountA2.getAccountHandle ( ) ) ; assert ! ( call.isVideoCallingSupported ( ) ) ; org.junit.Assert.assertEquals ( VideoProfile.STATE_AUDIO_ONLY , call.getVideoState ( ) ) ; }
Source:
android.bluetooth.BluetoothDevice [ ] getBondedDevices ( ) { android.bluetooth.BluetoothDevice [ ] bondedDeviceList = new android.bluetooth.BluetoothDevice [ 0 ] ; try { bondedDeviceList = mBondedDevices.toArray ( bondedDeviceList ) ; } catch ( java.lang.ArrayStoreException ee ) { errorLog ( "Error retrieving bonded device array" ) ; } infoLog ( ( "getBondedDevices: length=" + ( bondedDeviceList.length ) ) ) ; return bondedDeviceList ; }

Target:
android.bluetooth.BluetoothDevice [ ] getBondedDevices ( ) { android.bluetooth.BluetoothDevice [ ] bondedDeviceList = new android.bluetooth.BluetoothDevice [ 0 ] ; try { bondedDeviceList = mBondedDevices.toArray ( bondedDeviceList ) ; } catch ( java.lang.ArrayStoreException ee ) { com.android.bluetooth.btservice.AdapterProperties.errorLog ( "Error retrieving bonded device array" ) ; } com.android.bluetooth.btservice.AdapterProperties.infoLog ( ( "getBondedDevices: length=" + ( bondedDeviceList.length ) ) ) ; return bondedDeviceList ; }
Source:
public static void sendRunMessage ( org.chromium.mojo.system.Core core , org.chromium.mojo.bindings.MessageReceiverWithResponder receiver , org.chromium.mojo.bindings.interfacecontrol.RunMessageParams params , org.chromium.mojo.bindings.Callbacks.Callback1 < org.chromium.mojo.bindings.interfacecontrol.RunResponseMessageParams > callback ) { org.chromium.mojo.bindings.Message message = params.serializeWithHeader ( core , new org.chromium.mojo.bindings.MessageHeader ( org.chromium.mojo.bindings.interfacecontrol.InterfaceControlMessagesConstants.RUN_MESSAGE_ID , MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG , 0 ) ) ; receiver.acceptWithResponder ( message , new org.chromium.mojo.bindings.InterfaceControlMessagesHelper.RunResponseForwardToCallback ( callback ) ) ; }

Target:
public static void sendRunMessage ( org.chromium.mojo.system.Core core , org.chromium.mojo.bindings.MessageReceiverWithResponder receiver , org.chromium.mojo.bindings.RunMessageParams params , org.chromium.mojo.bindings.Callbacks.Callback1 < org.chromium.mojo.bindings.RunResponseMessageParams > callback ) { org.chromium.mojo.bindings.Message message = params.serializeWithHeader ( core , new org.chromium.mojo.bindings.MessageHeader ( InterfaceControlMessagesConstants.RUN_MESSAGE_ID , MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG , 0 ) ) ; receiver.acceptWithResponder ( message , new org.chromium.mojo.bindings.InterfaceControlMessagesHelper.RunResponseForwardToCallback ( callback ) ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; int id = android.content.res.Resources.getSystem ( ) . getIdentifier ( "config_noHomeScreen" , "bool" , "android" ) ; boolean support = android.content.res.Resources.getSystem ( ) . getBoolean ( id ) ; android.util.Log.i ( getClass ( ) . getSimpleName ( ) , "HEAD=OK" ) ; android.util.Log.i ( getClass ( ) . getSimpleName ( ) , ( "config_noHomeScreen=" + support ) ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; boolean support = false ; try { int id = android.content.res.Resources.getSystem ( ) . getIdentifier ( "config_noHomeScreen" , "bool" , "android" ) ; support = android.content.res.Resources.getSystem ( ) . getBoolean ( id ) ; } catch ( android.server.app.android.content e ) { } android.util.Log.i ( getClass ( ) . getSimpleName ( ) , "HEAD=OK" ) ; android.util.Log.i ( getClass ( ) . getSimpleName ( ) , ( "config_noHomeScreen=" + support ) ) ; }
Source:
public void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { toolbarShadow.setVisibility ( savedInstanceState.getInt ( com.android.dialer.main.impl.MainSearchController.KEY_TOOLBAR_SHADOW_VISIBILITY ) ) ; if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , false ) ) { fab.hide ( ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , false ) ) { toolbar.expand ( false , com.google.common.base.Optional.absent ( ) ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , false ) ) { toolbar.slideUp ( false ) ; } }

Target:
public void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { toolbarShadow.setVisibility ( savedInstanceState.getInt ( com.android.dialer.main.impl.MainSearchController.KEY_TOOLBAR_SHADOW_VISIBILITY ) ) ; if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , false ) ) { fab.hide ( ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , false ) ) { toolbar.expand ( false , com.google.common.base.Optional.absent ( ) ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , false ) ) { toolbar.slideUp ( false , fragmentContainer ) ; } }
Source:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.jack.ConditionalTest.hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( com.android.jack.ConditionalTest.hooks ) ; options.getConfigBuilder ( com.android.jack.ConditionalTest.hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
public void testInterfaceCountersUdp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
void onScanResponseDataSet ( int advertiser_id , int status ) throws java.lang.Exception { logd ( ( ( ( "onScanResponseDataSet() advertiser_id=" + advertiser_id ) + ", status=" ) + status ) ) ; java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiser_id ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onScanResponseDataSet() - bad advertiser_id " + advertiser_id ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onScanResponseDataSet ( advertiser_id , status ) ; }

Target:
void onScanResponseDataSet ( int advertiser_id , int status ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.AdvertiseManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( ( ( "onScanResponseDataSet() advertiser_id=" + advertiser_id ) + ", status=" ) + status ) ) ; java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiser_id ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onScanResponseDataSet() - bad advertiser_id " + advertiser_id ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onScanResponseDataSet ( advertiser_id , status ) ; }
Source:
public void testSetSsidPostfix_exception ( ) throws java.lang.Exception { java.lang.String ssid = "\"SSID POSTFIX\"" ; executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ssid ) ) ) ) . thenThrow ( mRemoteException ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; assertFalse ( mDut.isInitializationComplete ( ) ) ; }

Target:
public void testSetSsidPostfix_exception ( ) throws java.lang.Exception { java.lang.String ssid = "SSID POSTFIX" ; executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ( ( "\"" + ssid ) + "\"" ) ) ) ) ) . thenThrow ( mRemoteException ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; assertFalse ( mDut.isInitializationComplete ( ) ) ; }
Source:
public void forEach ( android.support.v8.renderscript.Allocation aout ) { forEach ( 0 , ( ( android.support.v8.renderscript.Allocation ) ( null ) ) , aout , null ) ; }

Target:
public void forEach ( android.support.v8.renderscript.Allocation aout ) { if ( ( aout.getType ( ) . getY ( ) ) == 0 ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Output is a 1D Allocation" ) ; } forEach ( 0 , ( ( android.support.v8.renderscript.Allocation ) ( null ) ) , aout , null ) ; }
Source:
public org.eclipse.core.resources.IFile getFile ( ) { java.lang.String reference = mId ; if ( ! ( reference.contains ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) ) { reference = ( ( com.android.sdklib.SdkConstants.FD_LAYOUT ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + reference ; } java.lang.String projectPath = ( ( ( ( com.android.sdklib.SdkConstants.FD_RESOURCES ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + reference ) + '.' ) + ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML ) ; org.eclipse.core.resources.IResource member = mProject.findMember ( projectPath ) ; if ( member instanceof org.eclipse.core.resources.IFile ) { return ( ( org.eclipse.core.resources.IFile ) ( member ) ) ; } return null ; }

Target:
public org.eclipse.core.resources.IFile getFile ( ) { java.lang.String reference = mId ; if ( ! ( reference.contains ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) ) { reference = ( ( com.android.AndroidConstants.FD_RES_LAYOUT ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + reference ; } java.lang.String projectPath = ( ( ( ( com.android.sdklib.SdkConstants.FD_RESOURCES ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + reference ) + '.' ) + ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML ) ; org.eclipse.core.resources.IResource member = mProject.findMember ( projectPath ) ; if ( member instanceof org.eclipse.core.resources.IFile ) { return ( ( org.eclipse.core.resources.IFile ) ( member ) ) ; } return null ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.used1 ) ; com.android.tests.shrink.ResourceReferences.referenceResources ( this ) ; java.lang.System.out.println ( R.layout.used7 ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.used1 ) ; com.android.tests.shrink.ResourceReferences.referenceResources ( this ) ; java.lang.System.out.println ( R.layout.used7 ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType1.class , null ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType2.class , null ) ; for ( int id : com.android.tests.shrink.RootActivity.layout_ids ) { java.lang.System.out.println ( id ) ; } }
Source:
public java.io.File getSkinPath ( java.lang.String skinName , com.android.sdklib.IAndroidTarget target ) { java.lang.String path = target.getPath ( IAndroidTarget.SKINS ) ; java.io.File skin = new java.io.File ( path , skinName ) ; if ( ( ( skin.exists ( ) ) == false ) && ( ( target.isPlatform ( ) ) == false ) ) { target = target.getParent ( ) ; path = target.getPath ( IAndroidTarget.SKINS ) ; skin = new java.io.File ( path , skinName ) ; } return skin ; }

Target:
private java.io.File getSkinFolder ( java.lang.String skinName , com.android.sdklib.IAndroidTarget target ) { java.lang.String path = target.getPath ( IAndroidTarget.SKINS ) ; java.io.File skin = new java.io.File ( path , skinName ) ; if ( ( ( skin.exists ( ) ) == false ) && ( ( target.isPlatform ( ) ) == false ) ) { target = target.getParent ( ) ; path = target.getPath ( IAndroidTarget.SKINS ) ; skin = new java.io.File ( path , skinName ) ; } return skin ; }
Source:
public com.android.ide.common.api.IViewRule loadRule ( java.lang.String fqcn ) { return this . loadRule ( fqcn , fqcn ) ; }

Target:
private com.android.ide.common.api.IViewRule initializeRule ( com.android.ide.common.api.IViewRule rule , java.lang.String targetFqcn ) { try { if ( rule.onInitialize ( targetFqcn , new com.android.ide.eclipse.adt.internal.editors.layout.gre.ClientRulesEngine ( this , targetFqcn ) ) ) { mRulesCache.put ( targetFqcn , rule ) ; return rule ; } else { rule.onDispose ( ) ; } } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "%s.onInit() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } return null ; }