auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isActiveDevice ( int bluetoothProfile ) { switch ( bluetoothProfile ) { case android.bluetooth.BluetoothProfile.A2DP : return mIsActiveDeviceA2dp ; case android.bluetooth.BluetoothProfile.HEADSET : return mIsActiveDeviceHeadset ; default : android.util.Log.w ( com.android.settingslib.bluetooth.CachedBluetoothDevice.TAG , ( "getActiveDevice: unknown profile " + bluetoothProfile ) ) ; break ; } return false ; }

Target:
public boolean isActiveDevice ( int bluetoothProfile ) { switch ( bluetoothProfile ) { case android.bluetooth.BluetoothProfile.A2DP : return mIsActiveDeviceA2dp ; case android.bluetooth.BluetoothProfile.HEADSET : return mIsActiveDeviceHeadset ; case android.bluetooth.BluetoothProfile.HEARING_AID : return mIsActiveDeviceHearingAid ; default : android.util.Log.w ( com.android.settingslib.bluetooth.CachedBluetoothDevice.TAG , ( "getActiveDevice: unknown profile " + bluetoothProfile ) ) ; break ; } return false ; }
Source:
public void test_dropSourceSpecific_twice_IPv4 ( ) throws java.lang.Exception { test_dropSourceSpecific_twice ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; }

Target:
public void test_joinSourceSpecific_nonUnicastSourceAddress_IPv4 ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , ipv4NetworkInterface , libcore.java.nio.channels.DatagramChannelMulticastTest.BAD_MULTICAST_IPv4 ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } dc.close ( ) ; }
Source:
public void testSet2 ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "asdad" ) ; c.set ( 100 , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSet2 ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.set ( list.size ( ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > getPrivilegedConfiguredNetworks ( ) { enforceReadCredentialPermission ( ) ; enforceAccessPermission ( ) ; mLog.trace ( "getPrivilegedConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncGetPrivilegedConfiguredNetwork ( mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return null ; } }

Target:
public android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > getPrivilegedConfiguredNetworks ( ) { enforceReadCredentialPermission ( ) ; enforceAccessPermission ( ) ; mLog.trace ( "getPrivilegedConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { java.util.List < android.net.wifi.WifiConfiguration > configs = mWifiStateMachine.syncGetPrivilegedConfiguredNetwork ( mWifiStateMachineChannel ) ; if ( configs != null ) { return new android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > ( configs ) ; } } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; } return null ; }
Source:
private void setBtStatus ( ) { android.bluetooth.BluetoothAdapter bluetooth = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; android.preference.Preference btAddressPref = findPreference ( com.android.settings.deviceinfo.Status.KEY_BT_ADDRESS ) ; if ( bluetooth == null ) { getPreferenceScreen ( ) . removePreference ( btAddressPref ) ; } else { java.lang.String address = ( bluetooth.isEnabled ( ) ) ? bluetooth.getAddress ( ) : null ; btAddressPref.setSummary ( ( ! ( android.text.TextUtils.isEmpty ( address ) ) ? address : getString ( R.string.status_unavailable ) ) ) ; } }

Target:
private void setBtStatus ( ) { android.bluetooth.BluetoothAdapter bluetooth = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; if ( ( bluetooth != null ) && ( ( mBtAddress ) != null ) ) { java.lang.String address = ( bluetooth.isEnabled ( ) ) ? bluetooth.getAddress ( ) : null ; if ( ! ( android.text.TextUtils.isEmpty ( address ) ) ) { mBtAddress.setSummary ( address.toLowerCase ( ) ) ; } else { mBtAddress.setSummary ( mUnavailable ) ; } } }
Source:
public boolean enableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "ENABLE_NETWORK " + netId ) ) ; }

Target:
public boolean setNetworkExtra ( int netId , java.lang.String name , java.util.Map < java.lang.String , java.lang.String > values ) { java.lang.String encoded = com.android.server.wifi.WifiNative.createNetworkExtra ( values ) ; if ( encoded == null ) { return false ; } return setNetworkVariable ( netId , name , ( ( "\"" + encoded ) + "\"" ) ) ; }
Source:
void allPrintersLost ( ) { for ( com.android.bips.discovery.DiscoveredPrinter printer : mPrinters.values ( ) ) { for ( com.android.bips.discovery.Discovery.Listener listener : mListeners ) { listener.onPrinterLost ( printer ) ; } } mPrinters.clear ( ) ; }

Target:
public void start ( com.android.bips.discovery.Discovery.Listener listener ) { mListeners.add ( listener ) ; if ( ! ( mPrinters.isEmpty ( ) ) ) { if ( ! ( mListeners.contains ( listener ) ) ) { return ; } for ( com.android.bips.discovery.DiscoveredPrinter printer : new java.util.ArrayList ( mPrinters.values ( ) ) ) { listener.onPrinterFound ( printer ) ; } } start ( ) ; }
Source:
public static java.io.File getDataDirectory ( ) { java.lang.String envVariable = "ANDROID_DATA" ; java.lang.String defaultLoc = "/data" ; java.lang.String path = java.lang.System.getenv ( envVariable ) ; return path == null ? new java.io.File ( defaultLoc ) : new java.io.File ( path ) ; }

Target:
public static java.io.File getDataDirectory ( ) { try { return android.support.test.InstrumentationRegistry.getContext ( ) . getFilesDir ( ) ; } catch ( java.lang.IllegalStateException t ) { if ( ! ( t.getMessage ( ) . contains ( "No instrumentation registered!" ) ) ) { throw t ; } } java.lang.String envVariable = "ANDROID_DATA" ; java.lang.String defaultLoc = "/data" ; java.lang.String path = java.lang.System.getenv ( envVariable ) ; return path == null ? new java.io.File ( defaultLoc ) : new java.io.File ( path ) ; }
Source:
private void done ( com.android.captiveportallogin.CaptivePortalLoginActivity.Result result ) { if ( com.android.captiveportallogin.CaptivePortalLoginActivity.DBG ) { android.util.Log.d ( com.android.captiveportallogin.CaptivePortalLoginActivity.TAG , java.lang.String.format ( "Result %s for %s" , result.name ( ) , mUrl.toString ( ) ) ) ; } ensureNetworkCallbackUnregistered ( ) ; logMetricsEvent ( result.metricsEvent ) ; switch ( result ) { case DISMISSED : mCaptivePortal.reportCaptivePortalDismissed ( ) ; break ; case UNWANTED : mCaptivePortal.ignoreNetwork ( ) ; break ; case WANTED_AS_IS : mCaptivePortal.useNetwork ( ) ; break ; } finishAndRemoveTask ( ) ; }

Target:
private void done ( com.android.captiveportallogin.CaptivePortalLoginActivity.Result result ) { if ( isDone.getAndSet ( true ) ) { return ; } if ( com.android.captiveportallogin.CaptivePortalLoginActivity.DBG ) { android.util.Log.d ( com.android.captiveportallogin.CaptivePortalLoginActivity.TAG , java.lang.String.format ( "Result %s for %s" , result.name ( ) , mUrl.toString ( ) ) ) ; } logMetricsEvent ( result.metricsEvent ) ; switch ( result ) { case DISMISSED : mCaptivePortal.reportCaptivePortalDismissed ( ) ; break ; case UNWANTED : mCaptivePortal.ignoreNetwork ( ) ; break ; case WANTED_AS_IS : mCaptivePortal.useNetwork ( ) ; break ; } finishAndRemoveTask ( ) ; }
Source:
public final char char_literal ( ) throws org.jf.smali.RecognitionException { char value = 0 ; org.antlr.runtime.tree.CommonTree CHAR_LITERAL197 = null ; try { { CHAR_LITERAL197 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.CHAR_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_CHAR_LITERAL_in_char_literal3339 ) ) ) ; value = ( CHAR_LITERAL197 != null ? CHAR_LITERAL197.getText ( ) : null ) . charAt ( 1 ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL204 = null ; try { { INTEGER_LITERAL204 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3438 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL204 != null ? INTEGER_LITERAL204.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
protected void onResume ( ) { super . onResume ( ) ; int mask = 0 ; mask |= android.hardware.SensorManager.SENSOR_ACCELEROMETER ; mSensorManager.registerListener ( mListener , mask , SensorManager.SENSOR_DELAY_FASTEST ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getSystemService ( Context.SENSOR_SERVICE ) ) ) ; mSensor = mSensorManager.getDefaultSensor ( Sensor.TYPE_ACCELEROMETER ) ; mView = new com.example.android.apis.graphics.SensorTest.SampleView ( this ) ; setContentView ( mView ) ; if ( android.util.Config.LOGD ) android.util.Log.d ( TAG , ( "create " + ( mSensorManager ) ) ) ; }
Source:
private void setMicrophoneMuteNoCallerCheck ( boolean on , int userId ) { if ( com.android.server.audio.AudioService.DEBUG_VOL ) { android.util.Log.d ( com.android.server.audio.AudioService.TAG , java.lang.String.format ( "Mic mute %s, user=%d" , on , userId ) ) ; } if ( ( getCurrentUserId ( ) ) == userId ) { android.media.AudioSystem.muteMicrophone ( on ) ; } }

Target:
private void setMicrophoneMuteNoCallerCheck ( boolean on , int userId ) { if ( com.android.server.audio.AudioService.DEBUG_VOL ) { android.util.Log.d ( com.android.server.audio.AudioService.TAG , java.lang.String.format ( "Mic mute %s, user=%d" , on , userId ) ) ; } if ( ( getCurrentUserId ( ) ) == userId ) { final boolean currentMute = android.media.AudioSystem.isMicrophoneMuted ( ) ; android.media.AudioSystem.muteMicrophone ( on ) ; if ( on != currentMute ) { mContext.sendBroadcast ( new android.content.Intent ( android.media.AudioManager.ACTION_MICROPHONE_MUTE_CHANGED ) . setFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY ) ) ; } } }
Source:
private static com.android.server.wifi.WifiConfigStoreNew.StoreFile createFile ( java.io.File storeBaseDir ) { java.io.File storeDir = new java.io.File ( storeBaseDir , com.android.server.wifi.WifiConfigStoreNew.STORE_DIRECTORY_NAME ) ; if ( ! ( storeDir.exists ( ) ) ) { if ( ! ( storeDir.mkdir ( ) ) ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigStoreNew.TAG , ( "Could not create store directory " + storeDir ) ) ; return null ; } } return new com.android.server.wifi.WifiConfigStoreNew.StoreFile ( new java.io.File ( storeDir , com.android.server.wifi.WifiConfigStoreNew.STORE_FILE_NAME ) ) ; }

Target:
private static com.android.server.wifi.WifiConfigStore.StoreFile createFile ( java.io.File storeBaseDir ) { java.io.File storeDir = new java.io.File ( storeBaseDir , com.android.server.wifi.WifiConfigStore.STORE_DIRECTORY_NAME ) ; if ( ! ( storeDir.exists ( ) ) ) { if ( ! ( storeDir.mkdir ( ) ) ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigStore.TAG , ( "Could not create store directory " + storeDir ) ) ; return null ; } } return new com.android.server.wifi.WifiConfigStore.StoreFile ( new java.io.File ( storeDir , com.android.server.wifi.WifiConfigStore.STORE_FILE_NAME ) ) ; }
Source:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . deInitNan ( ) ; mUsageEnabled = true ; getCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendNanStateChangedBroadcast ( true ) ; }

Target:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . deInitNan ( ) ; mUsageEnabled = true ; queryCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendNanStateChangedBroadcast ( true ) ; }
Source:
public boolean retainAll ( final java.util.Collection < ? > c ) { com.google.common.base.Predicate < java.util.Map.Entry < K , java.util.Collection < V > > > removalPredicate = new com.google.common.base.Predicate < java.util.Map.Entry < K , java.util.Collection < V > > > ( ) { @ java.lang.Override public boolean apply ( java.util.Map.Entry < K , java.util.Collection < V > > entry ) { return ! ( c.contains ( entry.getValue ( ) ) ) ; } } ; return removeEntriesIf ( removalPredicate ) ; }

Target:
private static < K , V > com.google.common.collect.Multimap < K , V > filterFiltered ( com.google.common.collect.FilteredMultimap < K , V > multimap , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( multimap.entryPredicate ( ) , entryPredicate ) ; return new com.google.common.collect.FilteredEntryMultimap < K , V > ( multimap.unfiltered ( ) , predicate ) ; }
Source:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.ir.ast.MarkerCollectorTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.checkValidity ( new com.android.sched.util.RunnableHooks ( ) ) ; options.getConfigBuilder ( ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.ir.ast.MarkerCollectorTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; 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 ( ) ) ; }
Source:
private org.eclipse.core.resources.IFile getDependencyFileFor ( org.eclipse.core.resources.IFile sourceFile ) { org.eclipse.core.resources.IFolder depFolder = getDependencyFolder ( ) ; return depFolder.getFile ( sourceFile.getName ( ) . replaceAll ( AndroidConstants.RE_RS_EXT , AndroidConstants.DOT_DEP ) ) ; }

Target:
protected void loadOutputAndDependencies ( ) { java.util.Collection < com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle > bundles = getBundles ( ) ; for ( com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle bundle : bundles ) { if ( ( parseDependencyFileFor ( bundle.getSourceFile ( ) ) ) == false ) { addFileToCompile ( bundle.getSourceFile ( ) ) ; } } }
Source:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1.0 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 17.0.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: 20.0.0 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }

Target:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1.0 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 18.0.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: 20.0.0 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }
Source:
public void setScrollBarStyle ( int style ) { if ( style != ( ( mViewFlags ) & ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ) { mViewFlags = ( ( mViewFlags ) & ( ~ ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ) | ( style & ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ; computeOpaqueFlags ( ) ; recomputePadding ( ) ; } }

Target:
public void setScrollBarStyle ( int style ) { if ( style != ( ( mViewFlags ) & ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ) { mViewFlags = ( ( mViewFlags ) & ( ~ ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ) | ( style & ( android.view.View.SCROLLBARS_STYLE_MASK ) ) ; computeOpaqueFlags ( ) ; resolvePadding ( ) ; } }
Source:
public static int JumpsAndConditionals ( boolean cond ) { int a ; int b ; int c ; a = 5 ; b = 2 ; if ( cond ) c = a + b ; else c = a - b ; return c ; }

Target:
public static int JumpsAndConditionals ( boolean cond ) { int a ; int b ; int c ; a = Main.$inline$int ( 5 ) ; b = Main.$inline$int ( 2 ) ; if ( cond ) c = a + b ; else c = a - b ; return c ; }
Source:
public void testAlertWindowOomAdj ( ) throws java.lang.Exception { setAlertWindowPermission ( true ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; addAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; addAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; setAlertWindowPermission ( false ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; setAlertWindowPermission ( true ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; removeAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; removeAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; }

Target:
public void testAlertWindowOomAdj ( ) throws java.lang.Exception { if ( isRunningInVR ( ) ) { return ; } setAlertWindowPermission ( true ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; addAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; addAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; setAlertWindowPermission ( false ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; setAlertWindowPermission ( true ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; removeAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE ) ; removeAlertWindow ( ) ; assertPackageImportance ( android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE , android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26 ) ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
public void fileChanged ( org.eclipse.core.resources.IProject project , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file , int eventType ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags changeFlags = mProjectFlags.get ( project ) ; if ( ( changeFlags != null ) && ( changeFlags.isAllTrue ( ) ) ) { return ; } java.util.List < com.android.resources.ResourceType > resTypes = file.getResourceTypes ( ) ; if ( ( resTypes.size ( ) ) > 0 ) { if ( changeFlags == null ) { changeFlags = new com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags ( ) ; mProjectFlags.put ( project , changeFlags ) ; } changeFlags.resources = true ; } }

Target:
public void fileChanged ( org.eclipse.core.resources.IProject project , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file , int eventType ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags changeFlags = mProjectFlags.get ( project ) ; if ( ( changeFlags != null ) && ( changeFlags.isAllTrue ( ) ) ) { return ; } java.util.Collection < com.android.resources.ResourceType > resTypes = file.getResourceTypes ( ) ; if ( ( resTypes.size ( ) ) > 0 ) { if ( changeFlags == null ) { changeFlags = new com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags ( ) ; mProjectFlags.put ( project , changeFlags ) ; } changeFlags.resources = true ; } }
Source:
public void test_getValue ( ) { javax.net.ssl.SSLSession s = clientSession ; org.apache.harmony.tests.javax.net.ssl.SSLSessionTest.mySSLSessionBindingListener sbl = new org.apache.harmony.tests.javax.net.ssl.SSLSessionTest.mySSLSessionBindingListener ( ) ; try { s.getValue ( null ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( java.lang.IllegalArgumentException expected ) { } s.putValue ( "Name" , sbl ) ; java.lang.Object obj = s.getValue ( "Name" ) ; assertTrue ( ( obj instanceof javax.net.ssl.SSLSessionBindingListener ) ) ; }

Target:
public void test_getValue ( ) { javax.net.ssl.SSLSession s = clientSession ; org.apache.harmony.tests.javax.net.ssl.SSLSessionTest.mySSLSessionBindingListener sbl = new org.apache.harmony.tests.javax.net.ssl.SSLSessionTest.mySSLSessionBindingListener ( ) ; try { s.getValue ( null ) ; fail ( "Exception wasn't thrown" ) ; } catch ( java.lang.IllegalArgumentException | java.lang.NullPointerException expected ) { } s.putValue ( "Name" , sbl ) ; java.lang.Object obj = s.getValue ( "Name" ) ; assertTrue ( ( obj instanceof javax.net.ssl.SSLSessionBindingListener ) ) ; }
Source:
private void handleSystemReady ( ) { synchronized ( mLock ) { resetIfReadyAndConnectedLocked ( ) ; } com.android.server.MountServiceIdler.scheduleIdlePass ( mContext ) ; }

Target:
private static java.lang.String escapeNull ( java.lang.String arg ) { if ( android.text.TextUtils.isEmpty ( arg ) ) { return "!" ; } else { if ( ( ( arg.indexOf ( '' ) ) != ( - 1 ) ) || ( ( arg.indexOf ( ' ' ) ) != ( - 1 ) ) ) { throw new java.lang.IllegalArgumentException ( arg ) ; } return arg ; } }
Source:
public java.lang.Integer getBatteryLevel ( long freshnessMs ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { java.util.concurrent.Future < java.lang.Integer > futureBattery = getBattery ( freshnessMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; try { return futureBattery.get ( ) ; } catch ( java.lang.InterruptedException e ) { return null ; } catch ( java.util.concurrent.ExecutionException e ) { return null ; } }

Target:
public java.lang.Integer getBatteryLevel ( ) { if ( ( ( mBatteryLevel ) != null ) && ( ( mBatteryScale ) != null ) ) { return ( ( mBatteryLevel ) * 100 ) / ( mBatteryScale ) ; } return null ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.conscrypt.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; assertTrue ( ( time != 0 ) ) ; assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_byte.d.T_aput_byte_1 t = new dot.junit.opcodes.aput_byte.d.T_aput_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , ( - 1 ) , ( ( byte ) ( 100 ) ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aput_byte.d.T_aput_byte_5" , java.lang.VerifyError.class ) ; }
Source:
void startAppProblemLocked ( com.android.server.am.ProcessRecord app ) { app.errorReportReceiver = android.app.ApplicationErrorReport.getErrorReportReceiver ( mContext , app.info.packageName , app.info.flags ) ; skipCurrentReceiverLocked ( app ) ; }

Target:
void startAppProblemLocked ( com.android.server.am.ProcessRecord app ) { if ( ( app.userId ) == ( mCurrentUserId ) ) { app.errorReportReceiver = android.app.ApplicationErrorReport.getErrorReportReceiver ( mContext , app.info.packageName , app.info.flags ) ; } else { app.errorReportReceiver = null ; } skipCurrentReceiverLocked ( app ) ; }
Source:
public void notifyImsFeatureStatus ( int featureStatus ) throws android.os.RemoteException { android.util.Log.i ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "notifyImsFeatureStatus" ) ; sendImsFeatureStatusChanged ( mSlotId , mFeatureType , featureStatus ) ; }

Target:
public void notifyImsFeatureStatus ( int featureStatus ) throws android.os.RemoteException { android.util.Log.i ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( ( ( ( "notifyImsFeatureStatus: slot=" + ( mSlotId ) ) + ", feature=" ) + ( mFeatureType ) ) + ", status=" ) + featureStatus ) ) ; sendImsFeatureStatusChanged ( mSlotId , mFeatureType , featureStatus ) ; }
Source:
void setBeamShareActivityState ( boolean enabled ) { android.os.UserManager um = ( ( android.os.UserManager ) ( mContext.getSystemService ( Context.USER_SERVICE ) ) ) ; java.util.List < android.os.UserHandle > luh = um.getUserProfiles ( ) ; for ( android.os.UserHandle uh : luh ) { enforceBeamShareActivityPolicy ( mContext , uh , enabled ) ; } }

Target:
private void StopPresenceChecking ( ) { java.lang.Object [ ] objectValues = mObjectMap.values ( ) . toArray ( ) ; for ( java.lang.Object object : objectValues ) { if ( object instanceof com.android.nfc.DeviceHost.TagEndpoint ) { com.android.nfc.DeviceHost.TagEndpoint tag = ( ( com.android.nfc.DeviceHost.TagEndpoint ) ( object ) ) ; ( ( com.android.nfc.DeviceHost.TagEndpoint ) ( object ) ) . stopPresenceChecking ( ) ; } } }
Source:
public final void dumpSizes ( ) { for ( com.android.tools.perflib.heap.ClassObj theClass : mClassesById.values ( ) ) { int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : theClass.mInstances ) { size += instance.getCompositeSize ( ) ; } if ( size > 0 ) { java.lang.System.out.println ( ( ( ( ( theClass + ": base " ) + ( theClass.getSize ( ) ) ) + ", composite " ) + size ) ) ; } } }

Target:
public final void dumpSizes ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : theClass.mInstances ) { size += instance.getCompositeSize ( ) ; } if ( size > 0 ) { java.lang.System.out.println ( ( ( ( ( theClass + ": base " ) + ( theClass.getSize ( ) ) ) + ", composite " ) + size ) ) ; } } }
Source:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { super . stop ( context ) ; stopEditors ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.stop ( ) ; mRed.dispose ( ) ; synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { com.android.ide.eclipse.adt.AdtPlugin.sPlugin = null ; } }

Target:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { super . stop ( context ) ; stopEditors ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.stop ( ) ; org.eclipse.wb.internal.core.DesignerPlugin.dispose ( ) ; mRed.dispose ( ) ; synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { com.android.ide.eclipse.adt.AdtPlugin.sPlugin = null ; } }
Source:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { try ( com.android.sched.util.log.Event optEvent = tracer.open ( JackEventType.REMOVE_DEAD_CODE ) ) { removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }

Target:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { try ( com.android.sched.util.log.Event optEvent = tracer.open ( JackEventType.REMOVE_DEAD_CODE ) ) { tracer.getStatistic ( com.android.jack.cfg.CfgBuilder.CREATED_BASIC_BLOCK ) . incValue ( ( ( blocks.size ( ) ) + 1 ) ) ; removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId , method ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }
Source:
public java.lang.String createNetworkSpecifier ( @ android.annotation.Nullable android.net.wifi.aware.WifiAwareManager.PeerHandle peerHandle , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return null ; } int role = ( ( this ) instanceof android.net.wifi.aware.WifiAwareSubscribeDiscoverySession ) ? WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR : WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER ; return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , token ) ; } }

Target:
public java.lang.String createNetworkSpecifier ( @ android.annotation.Nullable android.net.wifi.aware.PeerHandle peerHandle , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return null ; } int role = ( ( this ) instanceof android.net.wifi.aware.SubscribeDiscoverySession ) ? WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR : WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER ; return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , token ) ; } }
Source:
public void update ( com.android.server.wifi.hotspot2.NetworkDetail network , java.util.Map < com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType , com.android.server.wifi.hotspot2.anqp.ANQPElement > anqpElements ) { com.android.server.wifi.hotspot2.AnqpCache.CacheKey key = com.android.server.wifi.hotspot2.AnqpCache.CacheKey.buildKey ( network , com.android.server.wifi.hotspot2.AnqpCache.STANDARD_ESS ) ; synchronized ( mANQPCache ) { com.android.server.wifi.hotspot2.ANQPData data = mANQPCache.get ( key ) ; if ( ( data != null ) && ( data.hasData ( ) ) ) { data.merge ( anqpElements ) ; } else { data = new com.android.server.wifi.hotspot2.ANQPData ( mClock , network , anqpElements ) ; mANQPCache.put ( key , data ) ; } } }

Target:
public void addEntry ( com.android.server.wifi.hotspot2.ANQPNetworkKey key , java.util.Map < com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType , com.android.server.wifi.hotspot2.anqp.ANQPElement > anqpElements ) { com.android.server.wifi.hotspot2.ANQPData data = new com.android.server.wifi.hotspot2.ANQPData ( mClock , anqpElements ) ; mANQPCache.put ( key , data ) ; }
Source:
public boolean overlayVerticalScrollbar ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return overlayVerticalScrollbar ( ) ; } } ) ; return ret ; } return mAwContents.overlayVerticalScrollbar ( ) ; }

Target:
public boolean overlayHorizontalScrollbar ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return overlayHorizontalScrollbar ( ) ; } } ) ; return ret ; } return mAwContents.overlayHorizontalScrollbar ( ) ; }
Source:
public java.util.Set < java.lang.String > getDensityFilters ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 1 ) ) ; for ( com.android.resources.Density value : values ) { if ( ( value != ( com.android.resources.Density.NODPI ) ) && ( value.isRecommended ( ) ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return density.getApplicableFilters ( fullList ) ; }

Target:
public java.util.Set < java.lang.String > getDensityFilters ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 1 ) ) ; for ( com.android.resources.Density value : values ) { if ( ( ( value != ( com.android.resources.Density.NODPI ) ) && ( value != ( com.android.resources.Density.ANYDPI ) ) ) && ( value.isRecommended ( ) ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return density.getApplicableFilters ( fullList ) ; }
Source:
public void testAesCbcHmacSha512Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; 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_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha512Udp4 ( ) 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 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void enableSystemApp ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName ) { throwIfParentInstance ( "enableSystemApp" ) ; if ( ( mService ) != null ) { try { mService.enableSystemApp ( admin , packageName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public void enableSystemApp ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName ) { throwIfParentInstance ( "enableSystemApp" ) ; if ( ( mService ) != null ) { try { mService.enableSystemApp ( admin , mContext.getPackageName ( ) , packageName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public void addImsServiceFeatureListener ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { synchronized ( mLock ) { mImsStatusCallbacks.add ( callback ) ; } }

Target:
public void addImsServiceFeatureCallback ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { mImsStatusCallbacks.add ( callback ) ; synchronized ( mLock ) { if ( ( ( mImsFeatures ) == null ) || ( mImsFeatures.isEmpty ( ) ) ) { return ; } try { for ( android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair i : mImsFeatures ) { callback.imsFeatureCreated ( i.slotId , i.featureType ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeatureCallback: exception notifying callback" ) ; } } }
Source:
private java.lang.String getBrowseServiceName ( java.lang.String packageName ) { java.lang.String browseServiceName = "" ; synchronized ( mBrowsePlayerInfoList ) { int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { browseServiceName = mBrowsePlayerInfoList.get ( browseInfoID ) . serviceClass ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseServiceName for packageName: " + packageName ) + ", browseServiceName = " ) + browseServiceName ) ) ; return browseServiceName ; }

Target:
public void start ( ) { mBrowsePlayerInfoList.clear ( ) ; cleanup ( ) ; android.content.Intent intent = new android.content.Intent ( android.service.media.MediaBrowserService.SERVICE_INTERFACE ) ; mWaiting = mPackageManager.queryIntentServices ( intent , PackageManager.MATCH_ALL ) ; connectNextPlayer ( ) ; }
Source:
protected void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { switch ( requestCode ) { case com.android.keychain.KeyChainActivity.REQUEST_UNLOCK : mState = com.android.keychain.KeyChainActivity.State.INITIAL ; if ( mKeyStore.isUnlocked ( ) ) { showCertChooserDialog ( ) ; } else { finish ( null ) ; } return ; default : throw new java.lang.AssertionError ( ) ; } }

Target:
protected void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { switch ( requestCode ) { case com.android.keychain.KeyChainActivity.REQUEST_UNLOCK : if ( mKeyStore.isUnlocked ( ) ) { mState = com.android.keychain.KeyChainActivity.State.INITIAL ; showCertChooserDialog ( ) ; } else { mState = com.android.keychain.KeyChainActivity.State.UNLOCK_CANCELED ; } return ; default : throw new java.lang.AssertionError ( ) ; } }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback callOnDropMove ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , java.lang.String fqcn , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropMove ( targetNode , fqcn , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropMove() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback callOnDropMove ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropMove ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropMove() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table ) { android.database.Cursor cursor = db.query ( table , android.database.DatabaseUtils.countProjection , null , null , null , null , null ) ; try { cursor.moveToFirst ( ) ; return cursor.getLong ( 0 ) ; } finally { cursor.close ( ) ; } }

Target:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table ) { return android.database.DatabaseUtils.queryNumEntries ( db , table , null , null ) ; }
Source:
private java.util.List < java.lang.String > _getAllProvidersLocked ( ) { if ( com.android.server.LocationManagerService.LOCAL_LOGV ) { android.util.Slog.v ( com.android.server.LocationManagerService.TAG , "getAllProviders" ) ; } java.util.ArrayList < java.lang.String > out = new java.util.ArrayList < java.lang.String > ( mProviders.size ( ) ) ; for ( int i = ( mProviders.size ( ) ) - 1 ; i >= 0 ; i -- ) { com.android.server.location.LocationProviderInterface p = mProviders.get ( i ) ; out.add ( p.getName ( ) ) ; } return out ; }

Target:
public boolean providerMeetsCriteria ( java.lang.String provider , android.location.Criteria criteria ) { com.android.server.location.LocationProviderInterface p = mProvidersByName.get ( provider ) ; if ( p == null ) { throw new java.lang.IllegalArgumentException ( ( "provider=" + provider ) ) ; } boolean result = android.location.LocationProvider.propertiesMeetCriteria ( p.getName ( ) , p.getProperties ( ) , criteria ) ; if ( com.android.server.LocationManagerService.D ) android.util.Log.d ( com.android.server.LocationManagerService.TAG , ( ( ( ( ( "providerMeetsCriteria(" + provider ) + ", " ) + criteria ) + ")=" ) + result ) ) ; return result ; }
Source:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL193 = null ; try { { SHORT_LITERAL193 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3277 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL193 != null ? SHORT_LITERAL193.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final long long_literal ( ) throws org.jf.smali.RecognitionException { long value = 0 ; org.antlr.runtime.tree.CommonTree LONG_LITERAL192 = null ; try { { LONG_LITERAL192 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.LONG_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_LONG_LITERAL_in_long_literal3264 ) ) ) ; value = org.jf.smali.LiteralTools.parseLong ( ( LONG_LITERAL192 != null ? LONG_LITERAL192.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private void recordFeatureAcknowledgement ( ) { preferences.edit ( ) . putInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_DIALER_FEATURE_VERSION_ACKNOWLEDGED_KEY , com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_VOICEMAIL_FEATURE_VERSION ) . apply ( ) ; }

Target:
private void recordTosAcceptance ( ) { if ( isVvm3 ( ) ) { preferences.edit ( ) . putInt ( VoicemailVersionConstants.PREF_VVM3_TOS_VERSION_ACCEPTED_KEY , VoicemailVersionConstants.CURRENT_VVM3_TOS_VERSION ) . apply ( ) ; } else { preferences.edit ( ) . putInt ( VoicemailVersionConstants.PREF_DIALER_TOS_VERSION_ACCEPTED_KEY , VoicemailVersionConstants.CURRENT_DIALER_TOS_VERSION ) . apply ( ) ; } android.telecom.PhoneAccountHandle handle = new android.telecom.PhoneAccountHandle ( android.content.ComponentName.unflattenFromString ( status.phoneAccountComponentName ) , status.phoneAccountId ) ; com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) . onTosAccepted ( context , handle ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.dialer.common.LogUtil.enterBlock ( "MainActivity.onCreate" ) ; activePeer = getNewPeer ( ) ; activePeer.onActivityCreate ( savedInstanceState ) ; showBlockReportSpamDialogReceiver = new com.android.dialer.blockreportspam.ShowBlockReportSpamDialogReceiver ( getFragmentManager ( ) ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.dialer.common.LogUtil.enterBlock ( "MainActivity.onCreate" ) ; activePeer = getNewPeer ( ) ; activePeer.onActivityCreate ( savedInstanceState ) ; showBlockReportSpamDialogReceiver = new com.android.dialer.blockreportspam.ShowBlockReportSpamDialogReceiver ( getFragmentManager ( ) ) ; placeDuoCallReceiver = new com.android.dialer.duo.PlaceDuoCallReceiver ( this ) ; }